mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-23 05:05:30 -04:00
plugin system: first demo version
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@970 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
02f08644ac
commit
79e45e7d37
21 changed files with 2066 additions and 0 deletions
32
retroshare-gui/src/gui/plugins/PluginInterface.h
Normal file
32
retroshare-gui/src/gui/plugins/PluginInterface.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
#ifndef _PLUGIN_INTERFACE_H_
|
||||
#define _PLUGIN_INTERFACE_H_
|
||||
|
||||
#include <QtPlugin>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QString;
|
||||
class QWidget;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
//
|
||||
class PluginInterface
|
||||
{
|
||||
public:
|
||||
virtual ~PluginInterface() {}
|
||||
|
||||
public slots:
|
||||
virtual QString pluginDescription() const = 0;
|
||||
virtual QString pluginName() const = 0;
|
||||
|
||||
virtual QWidget* pluginWidget(QWidget * parent = 0) = 0;
|
||||
};
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
Q_DECLARE_INTERFACE(PluginInterface,
|
||||
"com.beardog.retroshare.PluginInterface/1.0")
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue