kalarmd Library API Documentation

adcalendar_gui.h

00001 /*
00002     Calendar access for KDE Alarm Daemon GUI.
00003 
00004     This file is part of the GUI interface for 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., 675 Mass Ave, Cambridge, MA 02139, 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 
00026 #ifndef ADCALENDAR_GUI_H
00027 #define ADCALENDAR_GUI_H
00028 
00029 #include <kapplication.h>
00030 #include <kaboutdata.h>
00031 
00032 #include "adcalendarbase.h"
00033 
00034 // Alarm Daemon GUI calendar access
00035 class ADCalendarGui : public ADCalendarBase
00036 {
00037   public:
00038     ADCalendarGui(const QString& url, const QCString& appname, Type);
00039     ~ADCalendarGui()  { }
00040 
00041     bool           loadFile() { return loadFile_(kapp->aboutData()->appName()); }
00042 
00043     void setEnabled( bool e ) { mEnabled = e; }
00044     bool enabled() const { return mEnabled; }
00045     
00046     void setAvailable( bool a ) { mAvailable = a; }
00047     bool available() const { return mAvailable; }
00048 
00049     void setEventHandled(const Event*, const QValueList<QDateTime> &) {}
00050     bool eventHandled(const Event*, const QValueList<QDateTime> &) { return false; }
00051 
00052     void setEventPending(const QString&) {}
00053     bool getEventPending(QString&) { return false; }
00054 
00055   private:
00056     bool           mAvailable;     // calendar is available for monitoring
00057     bool           mEnabled;       // monitoring is currently manually enabled
00058 };
00059 
00060 class ADCalendarGuiFactory : public ADCalendarBaseFactory
00061 {
00062   public:
00063     ADCalendarGui *create(const QString& url, const QCString& appname,
00064                           ADCalendarBase::Type);
00065 };
00066 
00067 
00068 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:40:55 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001