summaryrefslogtreecommitdiff
path: root/core/pim/datebook2/templatemanager.h
blob: f88567781c9c55254f2a4098946a69361b8977b6 (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
#ifndef OPIE_DATEBOOK_TEMPLATE_MANAGER_ZECKE_H_RANDOM_CAUSE_BJARNE
#define OPIE_DATEBOOK_TEMPLATE_MANAGER_ZECKE_H_RANDOM_CAUSE_BJARNE

#include <qobject.h>

#include <opie/oevent.h>

#include "managertemplate.h"

namespace Datebook {
    /**
     * The OEvent Template Manager
     */
    class TemplateManager : public ManagerTemplate<OEvent> {
    public:
        TemplateManager();
        ~TemplateManager();

    private:
        virtual bool doSave();
        virtual bool doLoad();
    };
    /**
     * a QDialog for editing it
     */
    class TemplateDialog : public QDialog {
        Q_OBJECT
    public:
        TemplateDialog(const TemplateManager& man);
        ~TemplateDialog();

        virtual TemplateManager manager()const;
    };
}

#endif