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/>.
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef PM_WATCHER_H
|
|
|
|
#define PM_WATCHER_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
namespace ExtensionSystem
|
|
|
|
{
|
|
|
|
class IPluginManager;
|
|
|
|
}
|
|
|
|
|
|
|
|
class SplashScreen;
|
|
|
|
class PluginManager;
|
|
|
|
|
2014-06-04 23:57:13 +00:00
|
|
|
class PluginManagerWatcher : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2014-06-07 15:23:06 +00:00
|
|
|
|
2014-06-04 23:57:13 +00:00
|
|
|
PluginManagerWatcher(){
|
|
|
|
sp = NULL;
|
|
|
|
pm = NULL;
|
2014-06-07 15:23:06 +00:00
|
|
|
pluginCount = 0;
|
2014-06-04 23:57:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
~PluginManagerWatcher(){
|
|
|
|
sp = NULL;
|
|
|
|
pm = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
void setSplashScreen( SplashScreen *s ){ sp = s; }
|
|
|
|
void setPluginManager( ExtensionSystem::IPluginManager *m ){ pm = m; }
|
|
|
|
|
|
|
|
void connect();
|
|
|
|
void disconnect();
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void onPluginLoading( const char *plugin );
|
|
|
|
void onPluginInitializing( const char *plugin );
|
|
|
|
void onPluginStarting( const char *plugin );
|
|
|
|
|
2014-06-07 15:23:06 +00:00
|
|
|
void onPluginsLoaded();
|
|
|
|
void onPluginsInitialized();
|
|
|
|
void onPluginsStarted();
|
|
|
|
|
|
|
|
void onPluginCount( int count );
|
|
|
|
|
2014-06-04 23:57:13 +00:00
|
|
|
private:
|
|
|
|
SplashScreen *sp;
|
|
|
|
ExtensionSystem::IPluginManager *pm;
|
2014-06-07 15:23:06 +00:00
|
|
|
int pluginCount;
|
2014-06-07 14:41:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|