LicenseManager Class Reference

#include <LicenseManager.hh>

Inheritance diagram for LicenseManager:
Inheritance graph
[legend]
Collaboration diagram for LicenseManager:
Collaboration graph
[legend]

List of all members.

Public Slots

bool authenticate ()

Public Member Functions

void blockSignals (bool _state)
bool authenticated ()

Protected Member Functions

void connectNotify (const char *)

Private Member Functions

virtual QString name ()=0
virtual QString pluginFileName ()

Private Attributes

bool authenticated_
 This flag is true if authentication was successfull.

Detailed Description

The salt file has to be provided for each plugin. It can be the same for all plugins. See example for details on how this file has to be setup

Definition at line 65 of file LicenseManager.hh.


Member Function Documentation

bool LicenseManager::authenticate (  )  [slot]

Call this function for plugin authentication. If it returns true, the authentication has been successfull. 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 183 of file LicenseManager.cc.

References authenticated_, name(), and pluginFileName().

bool LicenseManager::authenticated (  ) 

Return if the plugin has successfully passed the authentication

Reimplemented from SecurityInterface.

Definition at line 329 of file LicenseManager.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 171 of file LicenseManager.cc.

References authenticated().

Referenced by connectNotify().

void LicenseManager::connectNotify ( const char *   )  [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 333 of file LicenseManager.cc.

References authenticated(), and blockSignals().

virtual QString LicenseManager::name (  )  [private, pure virtual]

This is used to get the plugins Name from derived classes The glugin name is the usual name of the glugin

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 343 of file LicenseManager.cc.

Referenced by authenticate().


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

acg pic Project OpenFlipper, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .