libtdepim

configmanager.h
1/*
2 configmanager.h
3
4 KMail, the KDE mail client.
5 Copyright (c) 2002 the KMail authors.
6 See file AUTHORS for details
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License,
10 version 2.0, as published by the Free Software Foundation.
11 You should have received a copy of the GNU General Public License
12 along with this program; if not, write to the Free Software Foundation,
13 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
14*/
15
16
17#ifndef _KMAIL_CONFIGMANAGER_H_
18#define _KMAIL_CONFIGMANAGER_H_
19
20#include <tqobject.h>
21
22#include <tdemacros.h>
23
24class KMKernel;
25
26namespace KPIM {
27
32class TDE_EXPORT ConfigManager : public TQObject {
33 TQ_OBJECT
34
35public:
37 virtual void commit() = 0;
39 virtual void rollback() = 0;
40
42 virtual bool hasPendingChanges() const = 0;
43
44signals:
46 void changed();
47
48protected:
49 ConfigManager( TQObject * parent=0, const char * name=0 );
50 virtual ~ConfigManager();
51};
52
53}
54
55#endif // _KMAIL_CONFIGMANAGER_H_
Class for managing a set of config options.
Definition: configmanager.h:32
virtual void rollback()=0
Re-read the config from disk and forget changes.
virtual void commit()=0
Commit changes to disk and emit changed() if necessary.
virtual bool hasPendingChanges() const =0
Check whether there are any unsaved changes.
void changed()
Emitted whenever a commit changes any configure option.
TDEPIM classes for drag and drop of mails.