calendarwidgetplugin/inc/widgetlayouthandler.txt
changeset 0 db1bf15cefff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/calendarwidgetplugin/inc/widgetlayouthandler.txt	Tue Jul 06 11:55:49 2010 +0300
@@ -0,0 +1,22 @@
+class IWidgetLayoutHandler
+{
+    // OPTIONAL: turns on/off the layout handler
+    Q_PROPERTY(bool enable RW)
+    // OPTIONAL: returns the enabled state of the layout handler
+    Q_PROPERTY(bool isEnabled R)
+public: // public invokable methods
+public signals:
+    // OPTIONAL: emited by the handler when the widget must update its content
+    void updateWidget();
+    // OPTIONAL: update widget
+    void updateLayout(const QString &layoutFile);
+public slots:
+    // MANDATORY: the slot initializes the layout handler internals and connects to the owner
+    void initializeLayout(const HbDocumentLoader &layoutLoader, QObject *owner);
+    // MANDATORY: updates the layout content
+    void updateLayout();
+    //OPTIONAL: reacts on gestures
+    void onTap(QPointF& point);
+    // OPTIONAL: updates the layout upon theme change
+    void onThemeChange();
+};
\ No newline at end of file