Diffstat (limited to 'libopie2/opiecore/opluginloader.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/opluginloader.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libopie2/opiecore/opluginloader.h b/libopie2/opiecore/opluginloader.h index d97f586..ee47733 100644 --- a/libopie2/opiecore/opluginloader.h +++ b/libopie2/opiecore/opluginloader.h | |||
@@ -43,49 +43,50 @@ public: | |||
43 | QString path()const; | 43 | QString path()const; |
44 | bool isEnabled()const; | 44 | bool isEnabled()const; |
45 | int position()const; | 45 | int position()const; |
46 | 46 | ||
47 | void setName( const QString& ); | 47 | void setName( const QString& ); |
48 | void setPath( const QString& ); | 48 | void setPath( const QString& ); |
49 | void setEnabled( bool ); | 49 | void setEnabled( bool ); |
50 | void setPosition( int ); | 50 | void setPosition( int ); |
51 | 51 | ||
52 | private: | 52 | private: |
53 | QString m_name; | 53 | QString m_name; |
54 | QString m_path; | 54 | QString m_path; |
55 | bool m_enabled : 1; | 55 | bool m_enabled : 1; |
56 | int m_pos; | 56 | int m_pos; |
57 | struct Private; | 57 | struct Private; |
58 | Private *d; | 58 | Private *d; |
59 | }; | 59 | }; |
60 | 60 | ||
61 | /** | 61 | /** |
62 | * \brief A generic class to easily load and manage plugins | 62 | * \brief A generic class to easily load and manage plugins |
63 | * | 63 | * |
64 | * This is the generic non sepcialised loader for plugins. Normally | 64 | * This is the generic non sepcialised loader for plugins. Normally |
65 | * you would prefer using the OPluginLoader directly. This class | 65 | * you would prefer using the OPluginLoader directly. This class |
66 | * exists to minimize the application binary size due the usage | 66 | * exists to minimize the application binary size due the usage |
67 | * of templates in the specialized API | 67 | * of templates in the specialized API. |
68 | * | ||
68 | * | 69 | * |
69 | * @since 1.2 | 70 | * @since 1.2 |
70 | * @see OPluginLoader | 71 | * @see OPluginLoader |
71 | */ | 72 | */ |
72 | class OGenericPluginLoader { | 73 | class OGenericPluginLoader { |
73 | public: | 74 | public: |
74 | typedef OPluginItem::List List; | 75 | typedef OPluginItem::List List; |
75 | OGenericPluginLoader( const QString &name, bool isSorted = false ); | 76 | OGenericPluginLoader( const QString &name, bool isSorted = false ); |
76 | virtual ~OGenericPluginLoader(); | 77 | virtual ~OGenericPluginLoader(); |
77 | 78 | ||
78 | void setAutoDelete( bool ); | 79 | void setAutoDelete( bool ); |
79 | bool autoDelete()const; | 80 | bool autoDelete()const; |
80 | void clear(); | 81 | void clear(); |
81 | 82 | ||
82 | QString name()const; | 83 | QString name()const; |
83 | bool isSorted()const; | 84 | bool isSorted()const; |
84 | bool isInSafeMode()const; | 85 | bool isInSafeMode()const; |
85 | 86 | ||
86 | 87 | ||
87 | List allAvailable(bool sorted = false )const; | 88 | List allAvailable(bool sorted = false )const; |
88 | List filtered(bool sorted = false )const; | 89 | List filtered(bool sorted = false )const; |
89 | 90 | ||
90 | 91 | ||
91 | virtual QUnknownInterface* load( const OPluginItem& item, const QUuid& ); | 92 | virtual QUnknownInterface* load( const OPluginItem& item, const QUuid& ); |