-rw-r--r-- | libopie2/opiecore/opluginloader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiecore/opluginloader.h b/libopie2/opiecore/opluginloader.h index 740551c..7582d29 100644 --- a/libopie2/opiecore/opluginloader.h +++ b/libopie2/opiecore/opluginloader.h | |||
@@ -1,68 +1,68 @@ | |||
1 | /* | 1 | /* |
2 | * LGPLv2 or later | 2 | * LGPLv2 or later |
3 | * zecke@handhelds.org | 3 | * zecke@handhelds.org |
4 | */ | 4 | */ |
5 | #ifndef ODP_CORE_OPLUGIN_LOADER_H | 5 | #ifndef ODP_CORE_OPLUGIN_LOADER_H |
6 | #define ODP_CORE_OPLUGIN_LOADER_H | 6 | #define ODP_CORE_OPLUGIN_LOADER_H |
7 | 7 | ||
8 | #include <qpe/qlibrary.h> | 8 | #include <qpe/qlibrary.h> |
9 | 9 | ||
10 | #include <qptrdict.h> | 10 | #include <qptrdict.h> |
11 | #include <qstringlist.h> | 11 | #include <qstringlist.h> |
12 | 12 | ||
13 | namespace Opie { | 13 | namespace Opie { |
14 | namespace Core { | 14 | namespace Core { |
15 | class OConfig; | 15 | class OConfig; |
16 | namespace Internal { | 16 | namespace Internal { |
17 | class OPluginLibraryHolder; | 17 | class OPluginLibraryHolder; |
18 | } | 18 | } |
19 | 19 | ||
20 | template class QPtrDict<QLibrary>; | 20 | // template class QPtrDict<QLibrary>; |
21 | 21 | ||
22 | /** | 22 | /** |
23 | * \brief A small item representing the Plugin Information | 23 | * \brief A small item representing the Plugin Information |
24 | * This class contains the information about a Plugin. It contains | 24 | * This class contains the information about a Plugin. It contains |
25 | * a translated name if available to the system, a config key, | 25 | * a translated name if available to the system, a config key, |
26 | * and the path location. | 26 | * and the path location. |
27 | * | 27 | * |
28 | * @since 1.2 | 28 | * @since 1.2 |
29 | * | 29 | * |
30 | */ | 30 | */ |
31 | class OPluginItem { | 31 | class OPluginItem { |
32 | public: | 32 | public: |
33 | typedef QValueList<OPluginItem> List; | 33 | typedef QValueList<OPluginItem> List; |
34 | OPluginItem(); | 34 | OPluginItem(); |
35 | OPluginItem( const QString& name, const QString& path, bool enabled = true, int pos = -1 ); | 35 | OPluginItem( const QString& name, const QString& path, bool enabled = true, int pos = -1 ); |
36 | ~OPluginItem(); | 36 | ~OPluginItem(); |
37 | 37 | ||
38 | bool isEmpty()const; | 38 | bool isEmpty()const; |
39 | 39 | ||
40 | bool operator==( const OPluginItem& )const; | 40 | bool operator==( const OPluginItem& )const; |
41 | bool operator!=( const OPluginItem& )const; | 41 | bool operator!=( const OPluginItem& )const; |
42 | 42 | ||
43 | 43 | ||
44 | QString name()const; | 44 | QString name()const; |
45 | QString path()const; | 45 | QString path()const; |
46 | bool isEnabled()const; | 46 | bool isEnabled()const; |
47 | int position()const; | 47 | int position()const; |
48 | 48 | ||
49 | void setName( const QString& ); | 49 | void setName( const QString& ); |
50 | void setPath( const QString& ); | 50 | void setPath( const QString& ); |
51 | void setEnabled( bool ); | 51 | void setEnabled( bool ); |
52 | void setPosition( int ); | 52 | void setPosition( int ); |
53 | 53 | ||
54 | private: | 54 | private: |
55 | QString m_name; | 55 | QString m_name; |
56 | QString m_path; | 56 | QString m_path; |
57 | bool m_enabled : 1; | 57 | bool m_enabled : 1; |
58 | int m_pos; | 58 | int m_pos; |
59 | struct Private; | 59 | struct Private; |
60 | Private *d; | 60 | Private *d; |
61 | }; | 61 | }; |
62 | 62 | ||
63 | /** | 63 | /** |
64 | * \brief A generic class to easily load and manage plugins | 64 | * \brief A generic class to easily load and manage plugins |
65 | * | 65 | * |
66 | * This is the generic non sepcialised loader for plugins. Normally | 66 | * This is the generic non sepcialised loader for plugins. Normally |
67 | * you would prefer using the OPluginLoader directly. This class | 67 | * you would prefer using the OPluginLoader directly. This class |
68 | * exists to minimize the application binary size due the usage | 68 | * exists to minimize the application binary size due the usage |