summaryrefslogtreecommitdiff
path: root/core/pim/datebook2/editor.h
Unidiff
Diffstat (limited to 'core/pim/datebook2/editor.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook2/editor.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/core/pim/datebook2/editor.h b/core/pim/datebook2/editor.h
new file mode 100644
index 0000000..53e8718
--- a/dev/null
+++ b/core/pim/datebook2/editor.h
@@ -0,0 +1,36 @@
1#ifndef OPIE_DATEBOOK_EDITOR_H
2#define OPIE_DATEBOOK_EDITOR_H
3
4#include <qdialog.h>
5
6#include <opie/oevent.h>
7
8#include "descriptionmanager.h"
9#include "locationmanager.h"
10
11namespace Datebook {
12 class MainWindow;
13 /**
14 * This is the editor interface
15 */
16 class Editor {
17 public:
18 Editor( MainWindow*, QWidget* parent );
19 virtual Editor();
20
21 bool newEvent( const QDate& );
22 bool newEvent( const QDateTime& start, const QDateTime& end );
23 bool edit( const OEvent& );
24
25 OEvent event()const;
26
27 protected:
28 DescriptionManager descriptions()const;
29 LocationManager locations()const;
30 void setDescriptions( const DescriptionManager& );
31 void setLocations( const LocationManager& );
32
33 };
34}
35
36#endif