summaryrefslogtreecommitdiff
path: root/core/pim/datebook2/editor.h
blob: 53e8718604f3f73c79f452c74470b1eebc58a73c (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_EDITOR_H
#define OPIE_DATEBOOK_EDITOR_H

#include <qdialog.h>

#include <opie/oevent.h>

#include "descriptionmanager.h"
#include "locationmanager.h"

namespace Datebook {
    class MainWindow;
    /**
     * This is the editor interface
     */
    class Editor {
    public:
        Editor( MainWindow*, QWidget* parent );
        virtual Editor();

        bool newEvent( const QDate& );
        bool newEvent( const QDateTime& start, const QDateTime& end );
        bool edit( const OEvent& );

        OEvent event()const;

    protected:
        DescriptionManager descriptions()const;
        LocationManager locations()const;
        void setDescriptions( const DescriptionManager& );
        void setLocations( const LocationManager& );

    };
}

#endif