Diffstat (limited to 'libopie2/opiecore/opluginloader.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/opluginloader.h | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/libopie2/opiecore/opluginloader.h b/libopie2/opiecore/opluginloader.h index a7df4a8..421d1f6 100644 --- a/libopie2/opiecore/opluginloader.h +++ b/libopie2/opiecore/opluginloader.h @@ -9,2 +9,3 @@ +#include <qptrdict.h> #include <qstringlist.h> @@ -33,3 +34,3 @@ public: OPluginItem(); - OPluginItem( const QString& name, const QCString& confopt, const QString& path, int pos = -1 ); + OPluginItem( const QString& name, const QString& path, int pos = -1 ); ~OPluginItem(); @@ -41,3 +42,2 @@ public: QString name()const; - QCString configKey()const; QString path()const; @@ -46,3 +46,2 @@ public: void setName( const QString& ); - void setConfigKey( const QCString& ); void setPath( const QString& ); @@ -52,3 +51,2 @@ private: QString m_name; - QCString m_conf; QString m_path; @@ -92,3 +90,3 @@ public: protected: - virtual void readConfig(); + void readConfig(); virtual List plugins( const QString& dir, bool sorted, bool disabled )const; @@ -96,9 +94,8 @@ protected: void setPluginDir( const QString& ); - bool &isSafeMode()const; - bool &isSorted()const; - void readConfig()const; - void setSafeMode(bool b = false); + bool isSorted()const; + void setSafeMode(const QString& app = QString::null, bool b = false); + static QString unlibify( const QString& str ); private: - QString languageList(); + QStringList languageList(); void installTranslators(const QString& type); @@ -109,3 +106,2 @@ private: bool m_isSafeMode : 1; - bool m_readConfig : 1; bool m_isSorted : 1; @@ -141,5 +137,5 @@ public: - temlate<class IFace> + template<class IFace> IFace* load( const QString& name, const QUuid& ); - temlate<class IFace> + template<class IFace> IFace* load( const OPluginItem& item, const QUuid& ); |