KDevelop API Documentation

src/plugincontroller.h

Go to the documentation of this file.
00001 #ifndef __PLUGINCONTROLLER_H__ 00002 #define __PLUGINCONTROLLER_H__ 00003 00004 #include <qobject.h> 00005 #include <qdict.h> 00006 00007 #include <kservice.h> 00008 00009 class KXMLGUIClient; 00010 class KService; 00011 class KDevPlugin; 00012 class KDialogBase; 00013 00014 class PluginController : public QObject 00015 { 00016 Q_OBJECT 00017 00018 public: 00019 00020 ~PluginController(); 00021 00022 static void createInstance(); 00023 static PluginController *getInstance(); 00024 00025 static KService::List pluginServices( const QString &scope = QString::null ); 00026 00027 static KDevPlugin *loadPlugin( const KService::Ptr &service ); 00028 00029 static QStringList argumentsFromService( const KService::Ptr &service ); 00030 00031 QString currentProfile() const { return m_profile; } 00032 QString currentProfilePath() const { return m_profilePath; } 00033 00034 void loadInitialPlugins(); 00035 00036 void integratePart(KXMLGUIClient *part); 00037 void removePart(KXMLGUIClient* part); 00038 00039 const QDict<KDevPlugin>& globalParts() { return m_globalParts; } 00040 00041 signals: 00042 void loadingPlugin(const QString &plugin); 00043 00044 protected: 00045 PluginController(); 00046 00047 private slots: 00048 void slotConfigWidget( KDialogBase* ); 00049 void loadGlobalPlugins(); 00050 void loadCorePlugins(); 00051 void unloadGlobalPlugins(); 00052 00053 private: 00054 void loadDefaultParts(); 00055 00056 QDict<KDevPlugin> m_globalParts; 00057 QString m_profile; 00058 QString m_profilePath; 00059 QString m_defaultProfile; 00060 QString m_defaultProfilePath; 00061 00062 static PluginController *s_instance; 00063 00064 }; 00065 00066 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:13 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003