From 2c2fbd828ca474671bb9e03681b30b115d8d6035 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 6 Nov 2011 15:57:02 -0600 Subject: Actually move the kde files that were renamed in the last commit --- libtdepim/configmanager.h | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 libtdepim/configmanager.h (limited to 'libtdepim/configmanager.h') diff --git a/libtdepim/configmanager.h b/libtdepim/configmanager.h new file mode 100644 index 000000000..832a0f70f --- /dev/null +++ b/libtdepim/configmanager.h @@ -0,0 +1,55 @@ +/* -*- c++ -*- + configmanager.h + + KMail, the KDE mail client. + Copyright (c) 2002 the KMail authors. + See file AUTHORS for details + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License, + version 2.0, as published by the Free Software Foundation. + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US +*/ + + +#ifndef _KMAIL_CONFIGMANAGER_H_ +#define _KMAIL_CONFIGMANAGER_H_ + +#include + +#include + +class KMKernel; + +namespace KPIM { + +/** + * @short Class for managing a set of config options. + * @author Marc Mutz + **/ +class KDE_EXPORT ConfigManager : public TQObject { + Q_OBJECT + TQ_OBJECT +public: + /** Commit changes to disk and emit changed() if necessary. */ + virtual void commit() = 0; + /** Re-read the config from disk and forget changes. */ + virtual void rollback() = 0; + + /** Check whether there are any unsaved changes. */ + virtual bool hasPendingChanges() const = 0; + +signals: + /** Emitted whenever a commit changes any configure option */ + void changed(); + +protected: + ConfigManager( TQObject * parent=0, const char * name=0 ); + virtual ~ConfigManager(); +}; + +} + +#endif // _KMAIL_CONFIGMANAGER_H_ -- cgit v1.2.1