summaryrefslogtreecommitdiff
path: root/core/pim/datebook2/stringmanager.h
Unidiff
Diffstat (limited to 'core/pim/datebook2/stringmanager.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook2/stringmanager.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/core/pim/datebook2/stringmanager.h b/core/pim/datebook2/stringmanager.h
new file mode 100644
index 0000000..a11bd2a
--- a/dev/null
+++ b/core/pim/datebook2/stringmanager.h
@@ -0,0 +1,46 @@
1#ifndef OPIE_STRING_DATEBOOK_MANAGER_H
2#define OPIE_STRING_DATEBOOK_MANAGER_H
3
4#include <qstring.h>
5
6#include "managertemplate.h"
7
8namespace Datebook {
9 /**
10 * StringManager is a generic manager
11 * whick keeps track of strings
12 * It'll be used with the Location
13 * and the Description Manager
14 */
15 class StringManager : public ManagerTemplate<QString> {
16 public:
17 /**
18 * baseName is used for storing
19 */
20 StringManager(const QString& baseName);
21 ~StringManager();
22
23 /**
24 * override the add implementation
25 * cause we do not have a value :)
26 */
27 void add( const QString& );
28 private:
29 void doLoad();
30 void doSave();
31 };
32
33 /**
34 * A Generic Editor for StringManager
35 */
36 class StringManagerDialog : public QDialog {
37 Q_OBJECT
38 public:
39 StringManagerDialog( const StringManager& );
40 ~StringManager();
41
42 StringManager manager()const;
43 };
44}
45
46#endif