summaryrefslogtreecommitdiff
path: root/examples/todayplugin/exampleplugin.h
blob: 94f5b37dbd29a9dafdeead35c646ccb5d6211f88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * exampleplugin.h
 *
 * email       : harlekin@handhelds.org
 *
 */


#ifndef EXAMPLE_PLUGIN_H
#define EXAMPLE_PLUGIN_H

#include <qwidget.h>
#include <qguardedptr.h>

#include <opie2/todayplugininterface.h>
#include <opie2/todayconfigwidget.h>

#include "examplepluginwidget.h"

// implementation of the today plugin interface
class ExamplePlugin : public TodayPluginObject {

public:
    ExamplePlugin();
    ~ExamplePlugin();

    QString pluginName()  const;
    double versionNumber() const;
    QString pixmapNameWidget() const;
    QWidget* widget(QWidget *);
    QString pixmapNameConfig() const;
    TodayConfigWidget* configWidget(QWidget *);
    QString appName() const;
    bool excludeFromRefresh() const;
    void refresh();
    void reinitialize();

 private:
   QGuardedPtr<ExamplePluginWidget> m_widget;
};

#endif