configmanager.h
00001 /* -*- c++ -*- 00002 configmanager.h 00003 00004 KMail, the KDE mail client. 00005 Copyright (c) 2002 the KMail authors. 00006 See file AUTHORS for details 00007 00008 This program is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU General Public License, 00010 version 2.0, as published by the Free Software Foundation. 00011 You should have received a copy of the GNU General Public License 00012 along with this program; if not, write to the Free Software Foundation, 00013 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US 00014 */ 00015 00016 00017 #ifndef _KMAIL_CONFIGMANAGER_H_ 00018 #define _KMAIL_CONFIGMANAGER_H_ 00019 00020 #include <tqobject.h> 00021 00022 #include <kdepimmacros.h> 00023 00024 class KMKernel; 00025 00026 namespace KPIM { 00027 00032 class KDE_EXPORT ConfigManager : public TQObject { 00033 Q_OBJECT 00034 TQ_OBJECT 00035 public: 00037 virtual void commit() = 0; 00039 virtual void rollback() = 0; 00040 00042 virtual bool hasPendingChanges() const = 0; 00043 00044 signals: 00046 void changed(); 00047 00048 protected: 00049 ConfigManager( TQObject * parent=0, const char * name=0 ); 00050 virtual ~ConfigManager(); 00051 }; 00052 00053 } 00054 00055 #endif // _KMAIL_CONFIGMANAGER_H_