summaryrefslogtreecommitdiff
path: root/libopie
authorharlekin <harlekin>2002-09-22 23:00:48 (UTC)
committer harlekin <harlekin>2002-09-22 23:00:48 (UTC)
commit452a124385fbc8162e03ee6cc9020ebeb2133a7f (patch) (side-by-side diff)
treebbd5264d551ecf3652bf1b7e3ea3754b9d0ccde2 /libopie
parenta26d188b7b91f9bdce1e6a44c40ce874cd50abde (diff)
downloadopie-452a124385fbc8162e03ee6cc9020ebeb2133a7f.zip
opie-452a124385fbc8162e03ee6cc9020ebeb2133a7f.tar.gz
opie-452a124385fbc8162e03ee6cc9020ebeb2133a7f.tar.bz2
interfaces now in libopie
Diffstat (limited to 'libopie') (more/less context) (show whitespace changes)
-rw-r--r--libopie/todayconfigwidget.h21
-rw-r--r--libopie/todayplugininterface.h79
2 files changed, 100 insertions, 0 deletions
diff --git a/libopie/todayconfigwidget.h b/libopie/todayconfigwidget.h
new file mode 100644
index 0000000..48cf379
--- a/dev/null
+++ b/libopie/todayconfigwidget.h
@@ -0,0 +1,21 @@
+
+#ifndef CONFIG_WIDGET_H
+#define CONFIG_WIDGET_H
+
+
+class TodayConfigWidget : public QWidget {
+
+
+public:
+
+ 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
diff --git a/libopie/todayplugininterface.h b/libopie/todayplugininterface.h
new file mode 100644
index 0000000..becb79c
--- a/dev/null
+++ b/libopie/todayplugininterface.h
@@ -0,0 +1,79 @@
+
+#ifndef TODAY_PLUGIN_INTERFACE
+#define TODAY_PLUGIN_INTERFACE
+
+#include <qpe/qcom.h>
+#include "todayconfigwidget.h"
+
+class QString;
+class QWidget;
+
+#ifndef IID_TodayPluginInterface
+#define IID_TodayPluginInterface QUuid( 0x70481804, 0x2b50, 0x4fba, 0x80, 0xbb, 0x0b, 0xf8, 0xdc, 0x72, 0x04, 0x14)
+#endif
+
+/**
+ *
+ *
+ *
+ */
+class TodayPluginObject {
+
+ Q_OBJECT
+
+public:
+
+ virtual ~TodayPluginObject() {};
+
+ /**
+ * The name if the plugin
+ */
+ virtual QString pluginName() const = 0;
+
+ /**
+ * Version numbering
+ */
+ virtual double versionNumber() const = 0;
+
+
+ virtual QString pixmapNameWidget() const = 0;
+
+ /** widget for the today view
+ * It _needs_ a parent here.
+ */
+ virtual QWidget* widget( QWidget * ) = 0;
+
+ /**
+ * Pixmap used in the config widget
+ */
+ virtual QString pixmapNameConfig() const = 0;
+
+ /**
+ * Config plugin widget - optional
+ * If the plugin has a config widget, it _needs_ a parent here.
+ */
+ virtual TodayConfigWidget* configWidget( QWidget * ) = 0;
+
+ /**
+ * The application that should be assigned to the button (pixmap)
+ */
+ virtual QString appName() const = 0;
+
+ /**
+ * minimum height the plugin at least should have
+ */
+ // virtual int minHeight() const = 0;
+
+ /**
+ * maximum height that should be used before starting scrolling
+ */
+ // virtual int maxHeight() const = 0;
+
+};
+
+
+struct TodayPluginInterface : public QUnknownInterface {
+ virtual TodayPluginObject *guiPart() = 0;
+};
+
+#endif