summaryrefslogtreecommitdiffstats
path: root/libtdepim/configmanager.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 15:57:02 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 15:57:02 -0600
commit2c2fbd828ca474671bb9e03681b30b115d8d6035 (patch)
tree526a9da418f8d3d7ccf515c37048d3dfc80f2843 /libtdepim/configmanager.h
parentf0610eece3676b6fe99f42cf4ef2b19a39a5c4e8 (diff)
downloadtdepim-2c2fbd828ca474671bb9e03681b30b115d8d6035.tar.gz
tdepim-2c2fbd828ca474671bb9e03681b30b115d8d6035.zip
Actually move the kde files that were renamed in the last commit
Diffstat (limited to 'libtdepim/configmanager.h')
-rw-r--r--libtdepim/configmanager.h55
1 files changed, 55 insertions, 0 deletions
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 <tqobject.h>
+
+#include <tdepimmacros.h>
+
+class KMKernel;
+
+namespace KPIM {
+
+/**
+ * @short Class for managing a set of config options.
+ * @author Marc Mutz <mutz@kde.org>
+ **/
+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_