Line | |
---|
1 | #ifndef __PLUGINMAN_H |
---|
2 | #define __PLUGINMAN_H |
---|
3 | |
---|
4 | #include <vector> |
---|
5 | #include <string> |
---|
6 | using namespace std; |
---|
7 | |
---|
8 | |
---|
9 | class LuDocument; |
---|
10 | |
---|
11 | struct PluginInfo |
---|
12 | { |
---|
13 | HMODULE handle; |
---|
14 | std::string name; |
---|
15 | std::string extensions; |
---|
16 | std::string description; |
---|
17 | }; |
---|
18 | |
---|
19 | typedef vector<PluginInfo> PluginInfoList; |
---|
20 | |
---|
21 | class PluginManager |
---|
22 | { |
---|
23 | private: |
---|
24 | PluginInfoList *plugins; |
---|
25 | void loadPlugin( const char *dllname ); |
---|
26 | public: |
---|
27 | PluginManager(); |
---|
28 | ~PluginManager(); |
---|
29 | PluginInfoList *getPluginsList() { return plugins; } |
---|
30 | LuDocument *createDocumentForExt( const char *ext ); |
---|
31 | std::string getExtsMask(); |
---|
32 | }; |
---|
33 | |
---|
34 | #endif // __PLUGINMAN_H |
---|
Note: See
TracBrowser
for help on using the repository browser.