Commit 964d9f80 authored by Jan Möbius's avatar Jan Möbius

Renamed License Manager


git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11471 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2330ad75
......@@ -86,6 +86,8 @@ LicenseManager::~LicenseManager()
LicenseManager::LicenseManager()
{
std::cerr << "Constructor " << std::endl;
authenticated_ = false;
// On startup, block all signals by default until the plugin is authenticated!
......@@ -96,6 +98,8 @@ LicenseManager::LicenseManager()
// the function will always block the signals automatically
void LicenseManager::blockSignals( bool _state) {
std::cerr << "Block " << std::endl;
if ( !authenticated() ) {
QObject::blockSignals( true );
} else {
......@@ -107,6 +111,8 @@ void LicenseManager::blockSignals( bool _state) {
// Plugin authentication function.
bool LicenseManager::authenticate() {
std::cerr << "Authenticate" << std::endl;
// Construct license string (will be cleaned up if license valid)
authstring_ = "==\n";
authstring_ += "PluginName: " + pluginFileName() + "\n";
......@@ -449,6 +455,7 @@ bool LicenseManager::authenticated() {
}
void LicenseManager::connectNotify ( const char * /*signal*/ ) {
std::cerr << "Notify " << std::endl;
// if the plugin is not authenticated and something wants to connect, we block all signals and force a direct disconnect
// here, rendering all signal/slot connections useless.
......
......@@ -51,8 +51,6 @@
*
*/
#ifdef WITH_LICENSE_MANAGER
/* 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
*/
......@@ -128,14 +126,4 @@ Q_INTERFACES(SecurityInterface)
};
#else
class LicenseManager : public QObject {
Q_OBJECT
};
#endif
#endif // LICENSEMANAGER_HH
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment