Diffstat (limited to 'noncore/apps/opie-console/profileeditorplugins.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profileeditorplugins.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/profileeditorplugins.h b/noncore/apps/opie-console/profileeditorplugins.h new file mode 100644 index 0000000..7e0219b --- a/dev/null +++ b/noncore/apps/opie-console/profileeditorplugins.h | |||
@@ -0,0 +1,37 @@ | |||
1 | #ifndef PROFILE_EDITOR_PLUGINS_H | ||
2 | #define PROFILE_EDITOR_PLUGINS_H | ||
3 | |||
4 | #include "profile.h" | ||
5 | |||
6 | class QWidget; | ||
7 | |||
8 | class ProfileEditorPlugin | ||
9 | { | ||
10 | public: | ||
11 | ProfileEditorPlugin(QWidget *parent, Profile p); | ||
12 | |||
13 | virtual ~ProfileEditorPlugin(); | ||
14 | |||
15 | virtual void save() = 0; | ||
16 | |||
17 | virtual QWidget *widget() = 0; | ||
18 | |||
19 | protected: | ||
20 | QWidget *m_parent, *m_widget; | ||
21 | Profile m_profile; | ||
22 | }; | ||
23 | |||
24 | //#ifdef __cplusplus | ||
25 | //extern "C" { | ||
26 | //#endif | ||
27 | |||
28 | ProfileEditorPlugin *factory_serial(QWidget *parent, const Profile& p); | ||
29 | ProfileEditorPlugin *factory_irda(QWidget *parent, const Profile& p); | ||
30 | ProfileEditorPlugin *factory_modem(QWidget *parent, const Profile& p); | ||
31 | |||
32 | //#ifdef __cplusplus | ||
33 | //} | ||
34 | //#endif | ||
35 | |||
36 | #endif | ||
37 | |||