From 657434a5ec73229ba4211127dce4eef6ff1a8bc9 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 12 Mar 2009 15:45:54 +0000 Subject: general plugin api documentation git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@842 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/general.h | 57 ++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 42 insertions(+), 15 deletions(-) (limited to 'src/qmmpui/general.h') 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 #include #include - #include "generalfactory.h" -class Control; - -/** - @author Ilya Kotov -*/ +/*! @brief The General class provides the basic functionality for the general plugin objects + * @author Ilya Kotov + */ 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 *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 m_strValues; QMap m_numValues; - }; #endif -- cgit v1.2.3-13-gbd6f