summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/profileeditorplugins.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-console/profileeditorplugins.h') (more/less context) (show 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
+