mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 14:45:12 -04:00
ccc
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1031 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
98911955d5
commit
b94e6f6386
7 changed files with 486 additions and 623 deletions
|
@ -8,16 +8,32 @@ class QString;
|
|||
class QWidget;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
//
|
||||
//! a base class for plugins
|
||||
|
||||
//! All plugin classes must inherite this class and QObject.
|
||||
class PluginInterface
|
||||
{
|
||||
public:
|
||||
virtual ~PluginInterface() {}
|
||||
|
||||
public slots:
|
||||
//! A description of the plugin
|
||||
|
||||
//! A description of the plugin. Is not used in current version.
|
||||
virtual QString pluginDescription() const = 0;
|
||||
|
||||
//! The plugin's name
|
||||
|
||||
//! A name serves like an unique ID. The name is used in all operations
|
||||
//! such as installing, removing, receiving a widget
|
||||
virtual QString pluginName() const = 0;
|
||||
|
||||
//! plugin's widget.
|
||||
|
||||
//! Returns the widget, which is actually a plugin. Main application must
|
||||
//! delete the widget; usually, a parent widget does it. If you want to use
|
||||
//! the widget as top-level (i.e. parent==0), please, set
|
||||
//! Qt::WA_DeleteOnClose flag .
|
||||
virtual QWidget* pluginWidget(QWidget * parent = 0) = 0;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue