License management base class. More...
#include <OpenFlipper/LicenseManager/LicenseManagerActive.hh>


Public Slots | |
| bool | authenticate () |
| QString | licenseError () |
Public Member Functions | |
| void | blockSignals (bool _state) |
| bool | authenticated () |
Protected Member Functions | |
| void | connectNotify (const char *signal) |
Private Member Functions | |
| virtual QString | name ()=0 |
| virtual QString | pluginFileName () |
Private Attributes | |
| bool | authenticated_ |
| This flag is true if authentication was successful. | |
| QString | authstring_ |
| License information string. | |
License management base class.
See Security/License Interface for Details on how to use it.
The class is used by plugins to integrate license management. It will check the license, generate license requests and prevent the plugin from loading if an invalid license or no license is found.
Definition at line 67 of file LicenseManagerActive.hh.
| bool LicenseManager::authenticate | ( | ) | [slot] |
Call this function for plugin authentication. If it returns true, the authentication has been successful. Otherwise the core will stop loading the plugin. Additionally the plugin will make itself unusable by not allowing any signal slot connections.
Reimplemented from SecurityInterface.
Definition at line 109 of file LicenseManagerActive.cc.
References authenticated_, authstring_, blockSignals(), name(), and pluginFileName().
| bool LicenseManager::authenticated | ( | ) |
Return if the plugin has successfully passed the authentication.
Reimplemented from SecurityInterface.
Definition at line 447 of file LicenseManagerActive.cc.
References authenticated_.
Referenced by blockSignals(), and connectNotify().
| void LicenseManager::blockSignals | ( | bool | _state | ) |
This function is overloaded and will not allow to unblock signals if the plugin is not authenticated.
Definition at line 98 of file LicenseManagerActive.cc.
References authenticated().
Referenced by authenticate(), and connectNotify().
| void LicenseManager::connectNotify | ( | const char * | signal | ) | [protected] |
This function is overloaded in the security interface. If the plugin is not authenticated, all connections will be automatically removed again.
Definition at line 452 of file LicenseManagerActive.cc.
References authenticated(), and blockSignals().
| QString LicenseManager::licenseError | ( | ) | [slot] |
if authenticate returns false, this string will contain the license information required to generate a license request and the error that caused the failure.
Reimplemented from SecurityInterface.
Definition at line 443 of file LicenseManagerActive.cc.
References authstring_.
| virtual QString LicenseManager::name | ( | ) | [private, pure virtual] |
This is used to get the plugins Name from derived classes The plugin name is the usual name of the plugin
Referenced by authenticate().
| QString LicenseManager::pluginFileName | ( | ) | [private, virtual] |
This function is special to the LicenseManager. It is used to find the plugin when checking its hash value.
Definition at line 463 of file LicenseManagerActive.cc.
Referenced by authenticate().
1.6.3