Diffstat (limited to 'core/pim/datebook2/stringmanager.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook2/stringmanager.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/core/pim/datebook2/stringmanager.h b/core/pim/datebook2/stringmanager.h index ac0d4bd..2eee43f 100644 --- a/core/pim/datebook2/stringmanager.h +++ b/core/pim/datebook2/stringmanager.h | |||
@@ -2,12 +2,13 @@ | |||
2 | #define OPIE_STRING_DATEBOOK_MANAGER_H | 2 | #define OPIE_STRING_DATEBOOK_MANAGER_H |
3 | 3 | ||
4 | #include <qstring.h> | 4 | #include <qstring.h> |
5 | 5 | ||
6 | #include "managertemplate.h" | 6 | #include "managertemplate.h" |
7 | 7 | ||
8 | class QListView; | ||
8 | namespace Datebook { | 9 | namespace Datebook { |
9 | /** | 10 | /** |
10 | * StringManager is a generic manager | 11 | * StringManager is a generic manager |
11 | * whick keeps track of strings | 12 | * whick keeps track of strings |
12 | * It'll be used with the Location | 13 | * It'll be used with the Location |
13 | * and the Description Manager | 14 | * and the Description Manager |
@@ -22,26 +23,35 @@ namespace Datebook { | |||
22 | 23 | ||
23 | /** | 24 | /** |
24 | * override the add implementation | 25 | * override the add implementation |
25 | * cause we do not have a value :) | 26 | * cause we do not have a value :) |
26 | */ | 27 | */ |
27 | void add( const QString& ); | 28 | void add( const QString& ); |
29 | bool load(); | ||
30 | bool save(); | ||
31 | QString baseName()const; | ||
28 | private: | 32 | private: |
29 | QString m_base; | 33 | QString m_base; |
30 | bool doLoad(); | ||
31 | bool doSave(); | ||
32 | }; | 34 | }; |
33 | 35 | ||
34 | /** | 36 | /** |
35 | * A Generic Editor for StringManager | 37 | * A Generic Editor for StringManager |
36 | */ | 38 | */ |
37 | class StringManagerDialog : public QDialog { | 39 | class StringManagerDialog : public QDialog { |
38 | Q_OBJECT | 40 | Q_OBJECT |
39 | public: | 41 | public: |
40 | StringManagerDialog( const StringManager&); | 42 | StringManagerDialog( const StringManager&); |
41 | ~StringManagerDialog(); | 43 | ~StringManagerDialog(); |
42 | 44 | ||
43 | StringManager manager()const; | 45 | StringManager manager()const; |
46 | private slots: | ||
47 | void init( const StringManager& ); | ||
48 | void slotAdd(); | ||
49 | void slotRemove(); | ||
50 | void slotRename(); | ||
51 | private: | ||
52 | QListView* m_view; | ||
53 | QString m_base; | ||
44 | }; | 54 | }; |
45 | } | 55 | } |
46 | 56 | ||
47 | #endif | 57 | #endif |