summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/ui/todayconfigwidget.h
blob: 5048998aaf5a1fe835f7bdd9011debd709183f69 (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

#ifndef CONFIG_WIDGET_H
#define CONFIG_WIDGET_H

#include <qwidget.h>

/**
 * A base class for all Today Config Widgets.
 * This will let a Today plugin to add the possibility of configuration.
 * Plugins need to inherit from this class and need to implement
 * the pure virtual method to control configuration.
 * The Plugin should read its configuration during creation of the Widget
 *
 *
 * @author Maximilian Reiß
 * @short base class of all today config widgets
 */
class TodayConfigWidget : public QWidget {
    Q_OBJECT

public:

    /**
     * This will construct the widget. The widget gets deleted once the parent
     * gets deleted as in any Qt application
     *
     * @param parent The parent of the widget
     * @param name The name of the object
     */
    TodayConfigWidget( QWidget *parent,  const char *name = 0, WFlags fl = 0 );
    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