Documents > BPS V2 C++ API
BpsAccessPlugin Class Reference

Virtual class for application plugin of BPS Workplace. More...

#include <bpsaccessplugin.h>

List of all members.

Public Member Functions

virtual BpsAccessWidgetcreateWidget (QWidget *aParent=0)=0
 Create the widget application main window and return a pointer to it.
virtual bool init (BpsDatastore *aDatastore)=0
 Initialize the plugin.
virtual ~BpsAccessPlugin ()
 Virtual destructor.

Detailed Description

Virtual class for application plugin of BPS Workplace.

Place the dynamic library in the plugins/bpsacc folder.


Member Function Documentation

virtual BpsAccessWidget* BpsAccessPlugin::createWidget ( QWidget *  aParent = 0) [pure virtual]

Create the widget application main window and return a pointer to it.

The widget will be deleted by the application when no longer used.

Parameters:
aParentThe parent widget.
Returns:
Pointer to the new widget.
virtual bool BpsAccessPlugin::init ( BpsDatastore aDatastore) [pure virtual]

Initialize the plugin.

This method will be called at first after loading the plugin to check if the plugin shall be included in groups application. It is not recommended to do comprehensive initializations here, because the user might never use the plugin during the session. Instead you should defer such activities until createWidget() is called, or if applicable even later in the methods of the widget.

Parameters:
[in]aDatastoreThe datastore object used by the application.
Returns:
True if plugin is ok to be used. False when plugin is not active, for example because of missing user permission or a unlicensed product.

The documentation for this class was generated from the following file: