kalarmd Library API Documentation

alarmdaemoniface.h

00001 /*
00002     This file is part of the KDE alarm daemon.
00003     Copyright (c) 1997-1999 Preston Brown
00004     Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
00005     Copyright (c) 2001 David Jarvie <software@astrojar.org.uk>
00006 
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Library General Public
00009     License as published by the Free Software Foundation; either
00010     version 2 of the License, or (at your option) any later version.
00011 
00012     This library 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 GNU
00015     Library General Public License for more details.
00016 
00017     You should have received a copy of the GNU Library General Public License
00018     along with this library; see the file COPYING.LIB.  If not, write to
00019     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00020     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 ALARMDAEMONIFACE_H
00027 #define ALARMDAEMONIFACE_H
00028 // $Id: alarmdaemoniface.h,v 1.12 2003/02/11 00:48:01 faure Exp $
00029 
00030 #include <dcopobject.h>
00031 #include <qstringlist.h>
00032 
00033 class AlarmDaemonIface : virtual public DCOPObject
00034 {
00035     K_DCOP
00036   k_dcop:
00037     virtual ASYNC enableAutoStart(bool enable) = 0;
00038     virtual ASYNC enableCal(const QString& urlString, bool enable) = 0;
00039     virtual ASYNC addCal(const QCString& appname, const QString& urlString) = 0;
00040     virtual ASYNC addMsgCal(const QCString& appname, const QString& urlString) = 0;
00041     virtual ASYNC reloadCal(const QCString& appname, const QString& urlString) = 0;
00042     virtual ASYNC reloadMsgCal(const QCString& appname, const QString& urlString) = 0;
00043     virtual ASYNC removeCal(const QString& urlString) = 0;
00044     virtual ASYNC resetMsgCal(const QCString& appname, const QString& urlString) = 0;
00045     virtual ASYNC registerApp(const QCString& appName, const QString& appTitle,
00046                               const QCString& dcopObject, int notificationType,
00047                               bool displayCalendarName) = 0;
00048     virtual ASYNC reregisterApp(const QCString& appName, const QString& appTitle,
00049                               const QCString& dcopObject, int notificationType,
00050                               bool displayCalendarName) = 0;
00051     virtual ASYNC registerGui(const QCString& appName, const QCString& dcopObject) = 0;
00052     virtual ASYNC readConfig() = 0;
00053     virtual ASYNC quit() = 0;
00054 
00055     virtual ASYNC forceAlarmCheck() = 0;
00056     virtual ASYNC dumpDebug() = 0;
00057     virtual QStringList dumpAlarms() = 0;
00058 };
00059 
00060 enum AlarmGuiChangeType    // parameters to GUI client notification
00061 {
00062   CHANGE_STATUS,           // change of alarm daemon or calendar status
00063   CHANGE_CLIENT,           // change to client application list
00064   CHANGE_GUI,              // change to GUI client list
00065   ADD_CALENDAR,            // addition to calendar list (KOrganizer-type calendar)
00066   ADD_MSG_CALENDAR,        // addition to calendar list (KAlarm-type calendar)
00067   DELETE_CALENDAR,         // deletion from calendar list
00068   ENABLE_CALENDAR,         // calendar is now being monitored
00069   DISABLE_CALENDAR,        // calendar is available but not being monitored
00070   CALENDAR_UNAVAILABLE     // calendar is unavailable for monitoring
00071 };
00072 
00073 #endif
KDE Logo
This file is part of the documentation for kalarmd Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:38:04 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003