BPS C++ API  2.24.4
bpsaccessplugin.h
Go to the documentation of this file.
1 
4 #ifndef BPSACCESSPLUGIN_H
5 #define BPSACCESSPLUGIN_H
6 
7 #include <QtPlugin>
8 
9 class BpsAccessWidget;
10 class BpsDatastore;
11 
17 {
18 public:
22  virtual ~BpsAccessPlugin() {}
23 
36  virtual bool init(BpsDatastore* aDatastore) = 0;
37 
44  virtual BpsAccessWidget* createWidget(QWidget* aParent = nullptr) = 0;
45 };
46 
50 #define BpsAccessPlugin_IID "com.ibk-software.BPS2.BpsAccessPlugin/1.0"
51 
52 Q_DECLARE_INTERFACE(BpsAccessPlugin, BpsAccessPlugin_IID)
53 
54 #endif // BPSACCESSPLUGIN_H
Virtual class for application plugin of BPS Workplace.
Definition: bpsaccessplugin.h:17
virtual BpsAccessWidget * createWidget(QWidget *aParent=nullptr)=0
Create the widget application main window and return a pointer to it.
virtual bool init(BpsDatastore *aDatastore)=0
Initialize the plugin.
#define BpsAccessPlugin_IID
IID of the plugin.
Definition: bpsaccessplugin.h:50
virtual ~BpsAccessPlugin()
Virtual destructor.
Definition: bpsaccessplugin.h:22
Widget for access plugins of the groups module.
Definition: bpsaccesswidget.h:16
BPS datastore class.
Definition: bpsdatastore.h:61