summaryrefslogtreecommitdiff
path: root/examples/todayplugin/exampleplugin.h
blob: 90d34855c805a63f98a1c7a1b5e61265160e109b (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
/*
 * exampleplugin.h
 *
 * email       : harlekin@handhelds.org
 *
 */


#ifndef EXAMPLE_PLUGIN_H
#define EXAMPLE_PLUGIN_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:    
    ExamplePluginWidget *m_widget;
};

#endif