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) (side-by-side diff)
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 @@
+#ifndef PROFILE_EDITOR_PLUGINS_H
+#define PROFILE_EDITOR_PLUGINS_H
+
+#include "profile.h"
+
+class QWidget;
+
+class ProfileEditorPlugin
+{
+ public:
+ ProfileEditorPlugin(QWidget *parent, Profile p);
+
+ virtual ~ProfileEditorPlugin();
+
+ virtual void save() = 0;
+
+ virtual QWidget *widget() = 0;
+
+ protected:
+ QWidget *m_parent, *m_widget;
+ Profile m_profile;
+};
+
+//#ifdef __cplusplus
+//extern "C" {
+//#endif
+
+ProfileEditorPlugin *factory_serial(QWidget *parent, const Profile& p);
+ProfileEditorPlugin *factory_irda(QWidget *parent, const Profile& p);
+ProfileEditorPlugin *factory_modem(QWidget *parent, const Profile& p);
+
+//#ifdef __cplusplus
+//}
+//#endif
+
+#endif
+