summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/ui/todayconfigwidget.h
authorharlekin <harlekin>2004-03-01 15:42:38 (UTC)
committer harlekin <harlekin>2004-03-01 15:42:38 (UTC)
commit01abceaeb00bc35fa9bf5792eb51aa70b68f110d (patch) (side-by-side diff)
tree8d67e1f14c2343882ac95befc56deac7267c8ef5 /libopie2/opiepim/ui/todayconfigwidget.h
parent7a819ad4bc09aa88521044bfbb06ab37a4c2ef66 (diff)
downloadopie-01abceaeb00bc35fa9bf5792eb51aa70b68f110d.zip
opie-01abceaeb00bc35fa9bf5792eb51aa70b68f110d.tar.gz
opie-01abceaeb00bc35fa9bf5792eb51aa70b68f110d.tar.bz2
fixed opiepim to depend on opiedb2 and also add the forgotten today interface files
Diffstat (limited to 'libopie2/opiepim/ui/todayconfigwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/ui/todayconfigwidget.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/libopie2/opiepim/ui/todayconfigwidget.h b/libopie2/opiepim/ui/todayconfigwidget.h
new file mode 100644
index 0000000..f3501a1
--- a/dev/null
+++ b/libopie2/opiepim/ui/todayconfigwidget.h
@@ -0,0 +1,39 @@
+
+#ifndef CONFIG_WIDGET_H
+#define CONFIG_WIDGET_H
+
+
+/**
+ * A base class for all Today Config Widgets.
+ * This will let a Today plugin to add the possibility of configuration.
+ * Plugins need to inherit from this class and need to implement
+ * the pure virtual method to control configuration.
+ * The Plugin should read its configuration during creation of the Widget
+ *
+ *
+ * @author Maximilian Reiß
+ * @short base class of all today config widgets
+ */
+class TodayConfigWidget : public QWidget {
+
+
+public:
+
+ /**
+ * This will construct the widget. The widget gets deleted once the parent
+ * gets deleted as in any Qt application
+ *
+ * @param parent The parent of the widget
+ * @param name The name of the object
+ */
+ TodayConfigWidget( QWidget *parent, const char *name ) : QWidget( parent, name ) {} ;
+ virtual ~TodayConfigWidget() {};
+
+ /**
+ * Plugins need to reimplement this in the config widget
+ * Used when the config dialog is closed to write config stuff
+ */
+ virtual void writeConfig() = 0;
+};
+
+#endif