kalarmd Library API Documentation

adconfigdatarw.h

00001 /* 00002 KDE Alarm Daemon. 00003 00004 This file is part of the KDE alarm daemon. 00005 Copyright (c) 2001 David Jarvie <software@astrojar.org.uk> 00006 Based on the original, (c) 1998, 1999 Preston Brown 00007 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 2 of the License, or 00011 (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this program; if not, write to the Free Software 00020 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00021 00022 As a special exception, permission is given to link this program 00023 with any edition of Qt, and distribute the resulting executable, 00024 without including the source code for Qt in the source distribution. 00025 */ 00026 #ifndef ADCONFIGDATARW_H 00027 #define ADCONFIGDATARW_H 00028 00029 #include <ksimpleconfig.h> 00030 00031 #include "clientinfo.h" 00032 #include "adcalendar.h" 00033 #include "adconfigdatabase.h" 00034 00035 // Provides read-write access to the Alarm Daemon config files 00036 class ADConfigDataRW : public ADConfigDataBase 00037 { 00038 public: 00039 ADConfigDataRW() : ADConfigDataBase(true) { } 00040 virtual ~ADConfigDataRW() {} 00041 void readDaemonData(bool sessionStarting); 00042 void writeConfigClient(const QCString& appName, const ClientInfo&); 00043 void writeConfigClientGui(const QCString& appName, const QString& dcopObject); 00044 void addConfigClient(KSimpleConfig&, const QCString& appName, const QString& key); 00045 void addConfigCalendar(const QCString& appName, ADCalendarBase*); 00046 void writeConfigCalendar(const ADCalendarBase*); 00047 virtual void deleteConfigCalendar(const ADCalendarBase*); 00048 void sync(); 00049 00050 typedef QMap<QCString, QCString> GuiMap; // maps GUI client names against DCOP object names 00051 00052 GuiMap mGuis; // client GUI application names and data 00053 00054 private: 00055 void writeConfigCalendar(const ADCalendarBase*, KSimpleConfig&); 00056 }; 00057 00058 #endif
KDE Logo
This file is part of the documentation for kalarmd Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 21 19:46:30 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003