blob: a11bd2aa87e8a0ef1db72b4d2a5436dd2ed17780 (
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
37
38
39
40
41
42
43
44
45
46
|
#ifndef OPIE_STRING_DATEBOOK_MANAGER_H
#define OPIE_STRING_DATEBOOK_MANAGER_H
#include <qstring.h>
#include "managertemplate.h"
namespace Datebook {
/**
* StringManager is a generic manager
* whick keeps track of strings
* It'll be used with the Location
* and the Description Manager
*/
class StringManager : public ManagerTemplate<QString> {
public:
/**
* baseName is used for storing
*/
StringManager(const QString& baseName);
~StringManager();
/**
* override the add implementation
* cause we do not have a value :)
*/
void add( const QString& );
private:
void doLoad();
void doSave();
};
/**
* A Generic Editor for StringManager
*/
class StringManagerDialog : public QDialog {
Q_OBJECT
public:
StringManagerDialog( const StringManager& );
~StringManager();
StringManager manager()const;
};
}
#endif
|