summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/profileeditorplugins.h
authorjosef <josef>2002-10-06 18:34:28 (UTC)
committer josef <josef>2002-10-06 18:34:28 (UTC)
commitaa8332baeebf7056d81fc245399477c7feaa1235 (patch) (unidiff)
tree4b23429bcad955d02df24b40144cf5b7b6ffe0f3 /noncore/apps/opie-console/profileeditorplugins.h
parent6da8cac26f1d610d458c91bc2daad018cf9cf887 (diff)
downloadopie-aa8332baeebf7056d81fc245399477c7feaa1235.zip
opie-aa8332baeebf7056d81fc245399477c7feaa1235.tar.gz
opie-aa8332baeebf7056d81fc245399477c7feaa1235.tar.bz2
- more factorization (is nearly complete now ;)
- move config plugins into separate file (3 classes and virtual superclass) - first stub for save function
Diffstat (limited to 'noncore/apps/opie-console/profileeditorplugins.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/profileeditorplugins.h37
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
6class QWidget;
7
8class 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
28ProfileEditorPlugin *factory_serial(QWidget *parent, const Profile& p);
29ProfileEditorPlugin *factory_irda(QWidget *parent, const Profile& p);
30ProfileEditorPlugin *factory_modem(QWidget *parent, const Profile& p);
31
32//#ifdef __cplusplus
33//}
34//#endif
35
36#endif
37