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

actionexec.c File Reference

#include <glib-object.h>
#include <glib.h>
#include <dbus/dbus.h>
#include <osso-log.h>
#include "include/alarm_event.h"
#include "actionexec.h"
#include "rpc-dbus.h"
#include "rpc-systemui.h"
#include "debug.h"

Include dependency graph for actionexec.c:

Go to the source code of this file.

Defines

#define ALARMD_ACTION_EXEC_GET_PRIVATE(obj)

Typedefs

typedef _AlarmdActionExecPrivate AlarmdActionExecPrivate

Enumerations

enum  properties { PROP_PATH = 1 }
enum  saved_props {
  S_PATH,
  S_COUNT
}

Functions

static void alarmd_action_exec_init (AlarmdActionExec *action_exec)
 This file is part of alarmd.
static void alarmd_action_exec_class_init (AlarmdActionExecClass *klass)
static void _alarmd_action_exec_set_property (GObject *object, guint param_id, const GValue *value, GParamSpec *pspec)
static void _alarmd_action_exec_get_property (GObject *object, guint param_id, GValue *value, GParamSpec *pspec)
static void _alarmd_action_exec_do_action (AlarmdActionDialog *action)
static void _alarmd_action_exec_finished (GPid pid, gint status, gpointer user_data)
static void _alarmd_action_exec_finalize (GObject *object)
static GSList * _alarmd_action_exec_get_saved_properties (void)
GType alarmd_action_exec_get_type (void)
 SECTION:actionexec : An action that runs a command.

Variables

static const gchar *const saved_properties [S_COUNT]


Define Documentation

#define ALARMD_ACTION_EXEC_GET_PRIVATE obj   ) 
 

Value:

(G_TYPE_INSTANCE_GET_PRIVATE ((obj), \
                              ALARMD_TYPE_ACTION_EXEC, AlarmdActionExecPrivate));

Definition at line 67 of file actionexec.c.

Referenced by _alarmd_action_exec_do_action(), _alarmd_action_exec_finalize(), _alarmd_action_exec_get_property(), _alarmd_action_exec_set_property(), and alarmd_action_exec_init().


Typedef Documentation

typedef struct _AlarmdActionExecPrivate AlarmdActionExecPrivate
 

Definition at line 62 of file actionexec.c.


Enumeration Type Documentation

enum properties
 

Enumeration values:
PROP_PATH 

Definition at line 49 of file actionexec.c.

enum saved_props
 

Enumeration values:
S_PATH 
S_COUNT 

Definition at line 53 of file actionexec.c.


Function Documentation

static void _alarmd_action_exec_do_action AlarmdActionDialog action  )  [static]
 

Definition at line 188 of file actionexec.c.

References _alarmd_action_exec_finished(), ALARMD_ACTION_EXEC_GET_PRIVATE, ENTER_FUNC, LEAVE_FUNC, and _AlarmdActionExecPrivate::path.

Referenced by alarmd_action_exec_class_init().

static void _alarmd_action_exec_finalize GObject *  object  )  [static]
 

Definition at line 176 of file actionexec.c.

References ALARMD_ACTION_EXEC_GET_PRIVATE, ALARMD_TYPE_ACTION_EXEC, ENTER_FUNC, LEAVE_FUNC, and _AlarmdActionExecPrivate::path.

Referenced by alarmd_action_exec_class_init().

static void _alarmd_action_exec_finished GPid  pid,
gint  status,
gpointer  user_data
[static]
 

Definition at line 230 of file actionexec.c.

References ACK_NORMAL, ALARMD_ACTION, alarmd_action_acknowledge(), ENTER_FUNC, and LEAVE_FUNC.

Referenced by _alarmd_action_exec_do_action().

static void _alarmd_action_exec_get_property GObject *  object,
guint  param_id,
GValue *  value,
GParamSpec *  pspec
[static]
 

Definition at line 158 of file actionexec.c.

References ALARMD_ACTION_EXEC_GET_PRIVATE, ENTER_FUNC, LEAVE_FUNC, _AlarmdActionExecPrivate::path, and PROP_PATH.

Referenced by alarmd_action_exec_class_init().

static GSList * _alarmd_action_exec_get_saved_properties void   )  [static]
 

Definition at line 240 of file actionexec.c.

References ALARMD_OBJECT_CLASS, ALARMD_TYPE_ACTION_EXEC, ENTER_FUNC, LEAVE_FUNC, S_COUNT, and saved_properties.

Referenced by alarmd_action_exec_class_init().

static void _alarmd_action_exec_set_property GObject *  object,
guint  param_id,
const GValue *  value,
GParamSpec *  pspec
[static]
 

Definition at line 134 of file actionexec.c.

References ALARMD_ACTION_EXEC_GET_PRIVATE, ALARMD_OBJECT, alarmd_object_changed(), ENTER_FUNC, LEAVE_FUNC, _AlarmdActionExecPrivate::path, and PROP_PATH.

Referenced by alarmd_action_exec_class_init().

static void alarmd_action_exec_class_init AlarmdActionExecClass klass  )  [static]
 

Definition at line 99 of file actionexec.c.

References _alarmd_action_exec_do_action(), _alarmd_action_exec_finalize(), _alarmd_action_exec_get_property(), _alarmd_action_exec_get_saved_properties(), _alarmd_action_exec_set_property(), ALARMD_ACTION_DIALOG_CLASS, ALARMD_OBJECT_CLASS, _AlarmdActionDialogClass::do_action, ENTER_FUNC, _AlarmdObjectClass::get_saved_properties, LEAVE_FUNC, and PROP_PATH.

Referenced by alarmd_action_exec_get_type().

GType alarmd_action_exec_get_type void   ) 
 

SECTION:actionexec : An action that runs a command.

: AlarmdAction, AlarmdActionDbus

AlarmdActionExec is an action type that, upon firing, runs a command. The command is run with #g_spawn_command_line_async, and the command is specified in property AlarmdActionExec:name. The command is done with the same priviledges as the daemon is running.

AlarmdActionExec also includes the dialog showing properties of AlarmdActionDialog, see its documentation for details. The rest of the action is only run if the dialog is closed; so on snooze the action will be delayed too.

Definition at line 71 of file actionexec.c.

References alarmd_action_exec_class_init(), alarmd_action_exec_init(), and ALARMD_TYPE_ACTION_DIALOG.

static void alarmd_action_exec_init AlarmdActionExec action_exec  )  [static]
 

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

Definition at line 125 of file actionexec.c.

References ALARMD_ACTION_EXEC_GET_PRIVATE, ENTER_FUNC, LEAVE_FUNC, and _AlarmdActionExecPrivate::path.

Referenced by alarmd_action_exec_get_type().


Variable Documentation

const gchar* const saved_properties[S_COUNT] [static]
 

Initial value:

 {
        "path"
}

Definition at line 58 of file actionexec.c.


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