kalarm
Go to the documentation of this file.
   25 #include <kalarmcal/version.h> 
   27 #include <kcmdlineargs.h> 
   28 #include <kaboutdata.h> 
   34 #define PROGRAM_NAME "kalarm" 
   37 int main(
int argc, 
char *argv[])
 
   40         ki18n(
"Personal alarm message, command and email scheduler for KDE"),
 
   41         KAboutData::License_GPL,
 
   42         ki18n(
"Copyright 2001-2012, David Jarvie"), KLocalizedString(), 
"http://www.astrojar.org.uk/kalarm");
 
   43     aboutData.addAuthor(ki18n(
"David Jarvie"), KLocalizedString(), 
"djarvie@kde.org");
 
   44     aboutData.setOrganizationDomain(
"kde.org");
 
   46     KCmdLineArgs::init(argc, argv, &aboutData);
 
   48     KCmdLineOptions options;
 
   50     options.add(
"ack-confirm", ki18n(
"Prompt for confirmation when alarm is acknowledged"));
 
   52     options.add(
"attach <url>", ki18n(
"Attach file to email (repeat as needed)"));
 
   53     options.add(
"auto-close", ki18n(
"Auto-close alarm window after --late-cancel period"));
 
   54     options.add(
"bcc", ki18n(
"Blind copy email to self"));
 
   56     options.add(
"beep", ki18n(
"Beep when message is displayed"));
 
   57     options.add(
"colour");
 
   59     options.add(
"color <color>", ki18n(
"Message background color (name or hex 0xRRGGBB)"));
 
   60     options.add(
"colourfg");
 
   62     options.add(
"colorfg <color>", ki18n(
"Message foreground color (name or hex 0xRRGGBB)"));
 
   63     options.add(
"cancelEvent <eventID>", ki18n(
"Cancel alarm with the specified event ID"));
 
   65     options.add(
"disable", ki18n(
"Disable the alarm"));
 
   66     options.add(
"disable-all", ki18n(
"Disable monitoring of all alarms"));
 
   68     options.add(
"!exec <commandline>", ki18n(
"Execute a shell command line"));
 
   70     options.add(
"!exec-display <commandline>", ki18n(
"Command line to generate alarm message text"));
 
   71     options.add(
"edit <eventID>", ki18n(
"Display the alarm edit dialog to edit the specified alarm"));
 
   72     options.add(
"edit-new-display", ki18n(
"Display the alarm edit dialog to edit a new display alarm"));
 
   73     options.add(
"edit-new-command", ki18n(
"Display the alarm edit dialog to edit a new command alarm"));
 
   74     options.add(
"edit-new-email", ki18n(
"Display the alarm edit dialog to edit a new email alarm"));
 
   75     options.add(
"edit-new-audio", ki18n(
"Display the alarm edit dialog to edit a new audio alarm"));
 
   76     options.add(
"edit-new-preset <templateName>", ki18n(
"Display the alarm edit dialog, preset with a template"));
 
   78     options.add(
"file <url>", ki18n(
"File to display"));
 
   80     options.add(
"from-id <ID>", ki18n(
"KMail identity to use as sender of email"));
 
   82     options.add(
"interval <period>", ki18n(
"Interval between alarm repetitions"));
 
   84     options.add(
"korganizer", ki18n(
"Show alarm as an event in KOrganizer"));
 
   86     options.add(
"late-cancel <period>", ki18n(
"Cancel alarm if more than 'period' late when triggered"), 
"1");
 
   87     options.add(
"list", ki18n(
"Output list of scheduled alarms to stdout"));
 
   89     options.add(
"login", ki18n(
"Repeat alarm at every login"));
 
   91     options.add(
"mail <address>", ki18n(
"Send an email to the given address (repeat as needed)"));
 
   93     options.add(
"play <url>", ki18n(
"Audio file to play once"));
 
   95     options.add(
"play-repeat <url>", ki18n(
"Audio file to play repeatedly"));
 
   96     options.add(
"recurrence <spec>", ki18n(
"Specify alarm recurrence using iCalendar syntax"));
 
   98     options.add(
"reminder <period>", ki18n(
"Display reminder before or after alarm"));
 
   99     options.add(
"reminder-once <period>", ki18n(
"Display reminder once, before or after first alarm recurrence"));
 
  101     options.add(
"repeat <count>", ki18n(
"Number of times to repeat alarm (including initial occasion)"));
 
  103     options.add(
"speak", ki18n(
"Speak the message when it is displayed"));
 
  105     options.add(
"subject <text>", ki18n(
"Email subject line"));
 
  107     options.add(
"test-set-time <time>", ki18n(
"Simulate system time [[[yyyy-]mm-]dd-]hh:mm [TZ] (debug mode)"));
 
  110     options.add(
"time <time>", ki18n(
"Trigger alarm at time [[[yyyy-]mm-]dd-]hh:mm [TZ], or date yyyy-mm-dd [TZ]"));
 
  111     options.add(
"tray", ki18n(
"Display system tray icon"));
 
  112     options.add(
"triggerEvent <eventID>", ki18n(
"Trigger alarm with the specified event ID"));
 
  114     options.add(
"until <time>", ki18n(
"Repeat until time [[[yyyy-]mm-]dd-]hh:mm [TZ], or date yyyy-mm-dd [TZ]"));
 
  116     options.add(
"volume <percent>", ki18n(
"Volume to play audio file"));
 
  117     options.add(
"+[message]", ki18n(
"Message text to display"));
 
  118     KCmdLineArgs::addCmdLineOptions(options);
 
  119     KUniqueApplication::addCmdLineOptions();
 
  121     if (!KAlarmApp::start())
 
  128     kDebug() << 
"initialising";
 
  142     static int version = 0;
 
  144         version = KAlarmCal::getVersionNumber(QLatin1String(
KALARM_VERSION));
 
the KAlarm application object 
 
static KAlarmApp * getInstance()
 
int main(int argc, char *argv[])
 
  
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:59:10 by
doxygen 1.8.7 written
by 
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.