kalarm
kalarmiface.h
Go to the documentation of this file.00001 /* 00002 * kalarmiface.h - D-Bus interface to KAlarm 00003 * Program: kalarm 00004 * Copyright © 2004-2007 by David Jarvie <software@astrojar.org.uk> 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License along 00017 * with this program; if not, write to the Free Software Foundation, Inc., 00018 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef KALARMIFACE_H 00022 #define KALARMIFACE_H 00023 00030 class KAlarmIface 00031 { 00032 public: 00048 enum Flags 00049 { 00050 REPEAT_AT_LOGIN = 0x01, // repeat alarm at every login 00051 BEEP = 0x02, // sound audible beep when alarm is displayed 00052 REPEAT_SOUND = 0x08, // repeat sound file while alarm is displayed 00053 CONFIRM_ACK = 0x04, // closing the alarm message window requires confirmation prompt 00054 AUTO_CLOSE = 0x10, // auto-close alarm window after late-cancel period 00055 EMAIL_BCC = 0x20, // blind copy the email to the user 00056 DISABLED = 0x40, // alarm is currently disabled 00057 SCRIPT = 0x80, // command is a script, not a shell command line 00058 EXEC_IN_XTERM = 0x100, // execute command alarm in terminal window 00059 SPEAK = 0x200, // speak the alarm message when it is displayed 00060 SHOW_IN_KORG = 0x400, // show the alarm as an event in KOrganizer 00061 DISPLAY_COMMAND = 0x800 // display command output in alarm window 00062 }; 00070 enum RecurType 00071 { 00072 MINUTELY = 1, // the repeat interval is measured in minutes 00073 DAILY = 2, // the repeat interval is measured in days 00074 WEEKLY = 3, // the repeat interval is measured in weeks 00075 MONTHLY = 4, // the repeat interval is measured in months 00076 YEARLY = 5 // the repeat interval is measured in years 00077 }; 00083 enum AlarmType 00084 { 00085 DISPLAY = 1, // display alarm 00086 COMMAND = 2, // command alarm 00087 EMAIL = 3 // email alarm 00088 }; 00089 }; 00090 00091 #endif // KALARMIFACE_H
KDE 4.2 API Reference