Main Page | Data Structures | File List | Data Fields | Globals

alarmtool.c File Reference

#include <getopt.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "include/alarm_event.h"

Include dependency graph for alarmtool.c:

Go to the source code of this file.

Functions

static int tool_add (int argc, char **argv)
static int tool_remove (const char *arg)
static int tool_list (int argc, char **argv)
static int tool_get (const char *arg)
static void usage (const char *name)
int main (int argc, char **argv)

Variables

char * optarg
 This file is part of alarmd.
int optind


Function Documentation

int main int  argc,
char **  argv
 

Definition at line 37 of file alarmtool.c.

References optarg, tool_add(), tool_get(), tool_list(), tool_remove(), and usage().

static int tool_add int  argc,
char **  argv
[static]
 

Definition at line 79 of file alarmtool.c.

References ALARM_EVENT_ACTIVATION, alarm_event_add(), ALARM_EVENT_BACK_RESCHEDULE, ALARM_EVENT_BOOT, ALARM_EVENT_CONNECTED, ALARM_EVENT_NO_DIALOG, ALARM_EVENT_NO_SNOOZE, ALARM_EVENT_POSTPONE_DELAYED, ALARM_EVENT_RUN_DELAYED, ALARM_EVENT_SHOW_ICON, ALARM_EVENT_SYSTEM, and optarg.

Referenced by main().

static int tool_get const char *  arg  )  [static]
 

Definition at line 406 of file alarmtool.c.

References ALARM_EVENT_ACTDEAD, ALARM_EVENT_ACTIVATION, ALARM_EVENT_BACK_RESCHEDULE, ALARM_EVENT_BOOT, ALARM_EVENT_CONNECTED, alarm_event_get(), ALARM_EVENT_NO_DIALOG, ALARM_EVENT_NO_SNOOZE, ALARM_EVENT_POSTPONE_DELAYED, ALARM_EVENT_RUN_DELAYED, ALARM_EVENT_SHOW_ICON, ALARM_EVENT_SYSTEM, alarm_event_t::alarm_time, alarm_event_t::dbus_interface, alarm_event_t::dbus_name, alarm_event_t::dbus_path, alarm_event_t::dbus_service, alarm_event_t::exec_name, alarm_event_t::flags, alarm_event_t::icon, alarm_event_t::message, and alarm_event_t::sound.

Referenced by main().

static int tool_list int  argc,
char **  argv
[static]
 

Definition at line 222 of file alarmtool.c.

References ALARM_EVENT_ACTIVATION, ALARM_EVENT_BACK_RESCHEDULE, ALARM_EVENT_BOOT, ALARM_EVENT_CONNECTED, ALARM_EVENT_NO_DIALOG, ALARM_EVENT_NO_SNOOZE, ALARM_EVENT_POSTPONE_DELAYED, alarm_event_query(), ALARM_EVENT_RUN_DELAYED, ALARM_EVENT_SHOW_ICON, ALARM_EVENT_SYSTEM, and optarg.

Referenced by main().

static int tool_remove const char *  arg  )  [static]
 

Definition at line 385 of file alarmtool.c.

References alarm_event_del().

Referenced by main().

static void usage const char *  name  )  [static]
 

Definition at line 528 of file alarmtool.c.


Variable Documentation

char* optarg
 

This file is part of alarmd.

Contact Person: David Weinehall <david.weinehall@nokia.com>

Copyright (C) 2006 Nokia Corporation alarmd and libalarm are free software; you can redistribute them and/or modify them under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.

alarmd and libalarm are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this software; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

int optind
 


Generated on Thu Dec 21 18:23:30 2006 for Alarmd by  doxygen 1.4.2