calendarwidgetplugin/inc/widgetlayouthandler.txt
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 06 Jul 2010 11:55:49 +0300
changeset 0 db1bf15cefff
permissions -rw-r--r--
Revision: 201027

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();
};