korganizer/korgac Library API Documentation

koalarmclient.h

00001 /*
00002     KOrganizer Alarm Daemon Client.
00003 
00004     This file is part of KOrganizer.
00005 
00006     Copyright (c) 2002,2003 Cornelius Schumacher
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 KOALARMCLIENT_H
00027 #define KOALARMCLIENT_H
00028 
00029 #include "alarmclientiface.h"
00030 
00031 #include <qtimer.h>
00032 
00033 class AlarmDialog;
00034 class AlarmDockWindow;
00035 
00036 namespace KCal {
00037 class CalendarResources;
00038 }
00039 
00040 class KOAlarmClient : public QObject, virtual public AlarmClientIface
00041 {
00042     Q_OBJECT
00043   public:
00044     KOAlarmClient( QObject *parent = 0, const char *name = 0 );
00045     ~KOAlarmClient();
00046 
00047     // DCOP interface
00048     void quit();
00049     void forceAlarmCheck();
00050     void dumpDebug();
00051     QStringList dumpAlarms();
00052 
00053     void debugShowDialog();
00054 
00055   public slots:
00060     void suspend( int minutes );
00061 
00062   protected slots:
00063     void showAlarmDialog();
00064     void checkAlarms();    
00065 
00066   private:
00067     AlarmDockWindow *mDocker;  // the panel icon
00068     AlarmDialog *mAlarmDialog;
00069     QTimer mSuspendTimer;
00070 
00071     KCal::CalendarResources *mCalendar;
00072 
00073     QTimer mCheckTimer;
00074 };
00075 
00076 #endif
KDE Logo
This file is part of the documentation for korganizer/korgac Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:38:41 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003