2014-06-07 14:41:39 +00:00
|
|
|
// Ryzom Core - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
|
|
|
// Copyright (C) 2010 Winch Gate Property Limited
|
|
|
|
//
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU Affero General Public License as
|
|
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU Affero General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
|
|
#include "pm_watcher.h"
|
|
|
|
#include "extension_system\iplugin_manager.h"
|
|
|
|
#include "splash_screen.h"
|
|
|
|
|
|
|
|
void PluginManagerWatcher::connect()
|
2014-06-04 23:57:13 +00:00
|
|
|
{
|
|
|
|
QObject::connect( pm, SIGNAL( pluginLoading( const char * ) ), this, SLOT( onPluginLoading( const char * ) ) );
|
2014-06-07 14:41:39 +00:00
|
|
|
QObject::connect( pm, SIGNAL( pluginInitializing( const char * ) ), this, SLOT( onPluginInitializing( const char * ) ) );
|
|
|
|
QObject::connect( pm, SIGNAL( pluginStarting( const char * ) ), this, SLOT( onPluginStarting( const char * ) ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
void PluginManagerWatcher::disconnect()
|
2014-06-04 23:57:13 +00:00
|
|
|
{
|
|
|
|
QObject::disconnect( pm, SIGNAL( pluginLoading( const char * ) ), this, SLOT( onPluginLoading( const char * ) ) );
|
2014-06-07 14:41:39 +00:00
|
|
|
QObject::disconnect( pm, SIGNAL( pluginInitializing( const char * ) ), this, SLOT( onPluginInitializing( const char * ) ) );
|
|
|
|
QObject::disconnect( pm, SIGNAL( pluginStarting( const char * ) ), this, SLOT( onPluginStarting( const char * ) ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
void PluginManagerWatcher::onPluginLoading( const char *plugin )
|
|
|
|
{
|
|
|
|
QString s = "Loading plugin ";
|
|
|
|
s += plugin;
|
|
|
|
s += "...";
|
|
|
|
sp->setText( s );
|
|
|
|
}
|
|
|
|
|
|
|
|
void PluginManagerWatcher::onPluginInitializing( const char *plugin )
|
|
|
|
{
|
|
|
|
QString s = "Initializing plugin ";
|
|
|
|
s += plugin;
|
|
|
|
s += "...";
|
|
|
|
sp->setText( s );
|
|
|
|
}
|
|
|
|
|
|
|
|
void PluginManagerWatcher::onPluginStarting( const char *plugin )
|
|
|
|
{
|
|
|
|
QString s = "Starting plugin ";
|
|
|
|
s += plugin;
|
|
|
|
s += "...";
|
|
|
|
sp->setText( s );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|