aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/general.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-03-12 15:45:54 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-03-12 15:45:54 +0000
commit657434a5ec73229ba4211127dce4eef6ff1a8bc9 (patch)
treecb5883539633f6b99dc926bdd563d18e34ab44fd /src/qmmpui/general.h
parent765b3a9ba1a59ec3248c8948d4cf5a53f92b40d5 (diff)
downloadqmmp-657434a5ec73229ba4211127dce4eef6ff1a8bc9.tar.gz
qmmp-657434a5ec73229ba4211127dce4eef6ff1a8bc9.tar.bz2
qmmp-657434a5ec73229ba4211127dce4eef6ff1a8bc9.zip
general plugin api documentation
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@842 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/general.h')
-rw-r--r--src/qmmpui/general.h57
1 files changed, 42 insertions, 15 deletions
diff --git a/src/qmmpui/general.h b/src/qmmpui/general.h
index ae94288e2..e4f636354 100644
--- a/src/qmmpui/general.h
+++ b/src/qmmpui/general.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008 by Ilya Kotov *
+ * Copyright (C) 2008-2009 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -23,40 +23,67 @@
#include <QObject>
#include <QStringList>
#include <QMap>
-
#include "generalfactory.h"
-class Control;
-
-/**
- @author Ilya Kotov <forkotov02@hotmail.ru>
-*/
+/*! @brief The General class provides the basic functionality for the general plugin objects
+ * @author Ilya Kotov <forkotov02@hotmail.ru>
+ */
class General : public QObject
{
Q_OBJECT
public:
+ /*!
+ * Object constructor,
+ * @param parent Parent object
+ */
General(QObject *parent = 0);
-
+ /*!
+ * Destructor
+ */
~General();
-
- //static methods
+ /*!
+ * Returns a list of the loaded general plugin factories.
+ */
static QList<GeneralFactory*> *generalFactories();
+ /*!
+ * Returns a list of the loaded general plugin files.
+ */
static QStringList generalFiles();
+ /*!
+ * Sets whether the general plugin is enabled.
+ * @param factory General plugin factory.
+ * @param enabled Plugin enable state (\b true - enable, \b false - disable)
+ */
static void setEnabled(GeneralFactory* factory, bool enable = TRUE);
+ /*!
+ * Return \b true if general plugin is enabled, otherwise \b false
+ * @param factory General plugin factory.
+ */
static bool isEnabled(GeneralFactory* factory);
-public slots:
- void exit();
- void toggleVisibility();
-
signals:
+ /*!
+ * Emited when exit() slot is called.
+ */
void exitCalled();
+ /*!
+ * Emited when toggleVisibility() slot is called.
+ */
void toggleVisibilityCalled();
+public slots:
+ /*!
+ * Tells the player to exit.
+ */
+ void exit();
+ /*!
+ * Toggles player window visibility.
+ */
+ void toggleVisibility();
+
private:
QMap <uint, QString> m_strValues;
QMap <uint, uint> m_numValues;
-
};
#endif