4 KMail, the KDE mail client.
5 Copyright (c) 2002 the KMail authors.
6 See file AUTHORS for details
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US
17 #ifndef _KMAIL_CONFIGMANAGER_H_
18 #define _KMAIL_CONFIGMANAGER_H_
27 * @short Class for managing a set of config options.
28 * @author Marc Mutz <mutz@kde.org>
30 class ConfigManager
: public QObject
{
33 /** Commit changes to disk and emit changed() if necessary. */
34 virtual void commit() = 0;
35 /** Re-read the config from disk and forget changes. */
36 virtual void rollback() = 0;
38 /** Check whether there are any unsaved changes. */
39 virtual bool hasPendingChanges() const = 0;
42 /** Emitted whenever a commit changes any configure option */
46 ConfigManager( QObject
* parent
=0, const char * name
=0 );
47 virtual ~ConfigManager();
52 #endif // _KMAIL_CONFIGMANAGER_H_