kalarmd Library API Documentation

adcalendar.h

00001 /* 00002 Calendar access for 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 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 2 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program; if not, write to the Free Software 00019 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00020 00021 As a special exception, permission is given to link this program 00022 with any edition of Qt, and distribute the resulting executable, 00023 without including the source code for Qt in the source distribution. 00024 */ 00025 #ifndef ADCALENDAR_H 00026 #define ADCALENDAR_H 00027 00028 #include "adcalendarbase.h" 00029 00030 // Alarm Daemon calendar access 00031 class ADCalendar : public ADCalendarBase 00032 { 00033 public: 00034 ADCalendar(const QString& url, const QCString& appname, Type); 00035 ~ADCalendar() { } 00036 ADCalendar *create(const QString& url, const QString& appname, Type); 00037 00038 void setEnabled( bool enabled ) { enabled_ = enabled; } 00039 bool enabled() const { return enabled_ && !unregistered(); } 00040 00041 void setAvailable( bool ) {} 00042 bool available() const { return loaded() && !unregistered(); } 00043 00044 bool eventHandled(const Event*, const QValueList<QDateTime> &); 00045 void setEventHandled(const Event*, 00046 const QValueList<QDateTime> &); 00047 static void clearEventsHandled(const QString& calendarURL); 00048 00049 bool loadFile() { return loadFile_(); } 00050 00051 public: 00052 bool available_; 00053 bool enabled_; // events are currently manually enabled 00054 }; 00055 00056 class ADCalendarFactory : public ADCalendarBaseFactory 00057 { 00058 public: 00059 ADCalendar *create(const QString& url, const QCString& appname, ADCalendarBase::Type); 00060 }; 00061 00062 #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