libkdepim

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 <qobject.h>
00021 
00022 #include <kdepimmacros.h>
00023 
00024 class KMKernel;
00025 
00026 namespace KPIM {
00027 
00032 class KDE_EXPORT ConfigManager : public QObject {
00033   Q_OBJECT
00034 public:
00036   virtual void commit() = 0;
00038   virtual void rollback() = 0;
00039 
00041   virtual bool hasPendingChanges() const = 0;
00042 
00043 signals:
00045   void changed();
00046 
00047 protected:
00048   ConfigManager( QObject * parent=0, const char * name=0 );
00049   virtual ~ConfigManager();
00050 };
00051 
00052 }
00053 
00054 #endif // _KMAIL_CONFIGMANAGER_H_
KDE Home | KDE Accessibility Home | Description of Access Keys