Diffstat (limited to 'microkde/kresources/factory.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | microkde/kresources/factory.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/microkde/kresources/factory.h b/microkde/kresources/factory.h index f391bb3..ad67ab3 100644 --- a/microkde/kresources/factory.h +++ b/microkde/kresources/factory.h | |||
@@ -31,12 +31,21 @@ | |||
31 | 31 | ||
32 | 32 | ||
33 | #include "resource.h" | 33 | #include "resource.h" |
34 | 34 | ||
35 | namespace KRES { | 35 | namespace KRES { |
36 | 36 | ||
37 | //US | ||
38 | struct PluginInfo | ||
39 | { | ||
40 | QString library; | ||
41 | QString nameLabel; | ||
42 | QString descriptionLabel; | ||
43 | }; | ||
44 | |||
45 | |||
37 | /** | 46 | /** |
38 | * Class for loading resource plugins. | 47 | * Class for loading resource plugins. |
39 | * Do not use this class directly. Use ResourceManager instead | 48 | * Do not use this class directly. Use ResourceManager instead |
40 | * | 49 | * |
41 | * Example: | 50 | * Example: |
42 | * | 51 | * |
@@ -53,12 +62,13 @@ namespace KRES { | |||
53 | * </pre> | 62 | * </pre> |
54 | */ | 63 | */ |
55 | class Factory | 64 | class Factory |
56 | { | 65 | { |
57 | public: | 66 | public: |
58 | 67 | ||
68 | |||
59 | /** | 69 | /** |
60 | * Returns the global resource factory. | 70 | * Returns the global resource factory. |
61 | */ | 71 | */ |
62 | static Factory *self( const QString& resourceFamily ); | 72 | static Factory *self( const QString& resourceFamily ); |
63 | 73 | ||
64 | ~Factory(); | 74 | ~Factory(); |
@@ -103,11 +113,12 @@ class Factory | |||
103 | 113 | ||
104 | private: | 114 | private: |
105 | static QDict<Factory> *mSelves; | 115 | static QDict<Factory> *mSelves; |
106 | 116 | ||
107 | QString mResourceFamily; | 117 | QString mResourceFamily; |
108 | //US QMap<QString, KService::Ptr> mTypeMap; | 118 | //US QMap<QString, KService::Ptr> mTypeMap; |
109 | QMap<QString, PluginFactoryBase*> mTypeMap; | 119 | //US lets store the pluginfo struct as value instead of a KService |
120 | QMap<QString, PluginInfo*> mTypeMap; | ||
110 | }; | 121 | }; |
111 | 122 | ||
112 | } | 123 | } |
113 | #endif | 124 | #endif |