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

actiondbus.c File Reference

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

Include dependency graph for actiondbus.c:

Go to the source code of this file.

Defines

#define ALARMD_ACTION_DBUS_GET_PRIVATE(obj)

Typedefs

typedef _AlarmdActionDbusPrivate AlarmdActionDbusPrivate

Enumerations

enum  properties {
  PROP_INTERFACE = 1,
  PROP_SERVICE,
  PROP_PATH,
  PROP_NAME
}
enum  saved_props {
  S_INTERFACE,
  S_SERVICE,
  S_PATH,
  S_NAME,
  S_COUNT
}

Functions

static void alarmd_action_dbus_init (AlarmdActionDbus *action_dbus)
 This file is part of alarmd.
static void alarmd_action_dbus_class_init (AlarmdActionDbusClass *klass)
static void _alarmd_action_dbus_set_property (GObject *object, guint param_id, const GValue *value, GParamSpec *pspec)
static void _alarmd_action_dbus_get_property (GObject *object, guint param_id, GValue *value, GParamSpec *pspec)
static void _alarmd_action_dbus_do_action (AlarmdActionDialog *action)
static void _alarmd_action_dbus_finalize (GObject *object)
static GSList * _alarmd_action_dbus_get_saved_properties (void)
GType alarmd_action_dbus_get_type (void)
 SECTION:actiondbus : An action type that sends a DBus message when launched.

Variables

static const gchar *const saved_properties [S_COUNT]


Define Documentation

#define ALARMD_ACTION_DBUS_GET_PRIVATE obj   ) 
 

Value:

(G_TYPE_INSTANCE_GET_PRIVATE ((obj), \
                              ALARMD_TYPE_ACTION_DBUS, AlarmdActionDbusPrivate));

Definition at line 78 of file actiondbus.c.

Referenced by _alarmd_action_dbus_do_action(), _alarmd_action_dbus_finalize(), _alarmd_action_dbus_get_property(), _alarmd_action_dbus_set_property(), and alarmd_action_dbus_init().


Typedef Documentation

typedef struct _AlarmdActionDbusPrivate AlarmdActionDbusPrivate
 

Definition at line 70 of file actiondbus.c.


Enumeration Type Documentation

enum properties
 

Enumeration values:
PROP_INTERFACE 
PROP_SERVICE 
PROP_PATH 
PROP_NAME 

Definition at line 48 of file actiondbus.c.

enum saved_props
 

Enumeration values:
S_INTERFACE 
S_SERVICE 
S_PATH 
S_NAME 
S_COUNT 

Definition at line 55 of file actiondbus.c.


Function Documentation

static void _alarmd_action_dbus_do_action AlarmdActionDialog action  )  [static]
 

Definition at line 260 of file actiondbus.c.

References ACK_NORMAL, ALARM_EVENT_ACTIVATION, ALARM_EVENT_SYSTEM, ALARMD_ACTION, alarmd_action_acknowledge(), ALARMD_ACTION_DBUS_GET_PRIVATE, conn, dbus_do_call(), ENTER_FUNC, get_dbus_connection(), _AlarmdActionDbusPrivate::interface, LEAVE_FUNC, _AlarmdActionDbusPrivate::name, _AlarmdActionDbusPrivate::path, and _AlarmdActionDbusPrivate::service.

Referenced by alarmd_action_dbus_class_init().

static void _alarmd_action_dbus_finalize GObject *  object  )  [static]
 

Definition at line 238 of file actiondbus.c.

References ALARMD_ACTION_DBUS_GET_PRIVATE, ALARMD_TYPE_ACTION_DBUS, ENTER_FUNC, _AlarmdActionDbusPrivate::interface, LEAVE_FUNC, _AlarmdActionDbusPrivate::name, _AlarmdActionDbusPrivate::path, and _AlarmdActionDbusPrivate::service.

Referenced by alarmd_action_dbus_class_init().

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

Definition at line 211 of file actiondbus.c.

References ALARMD_ACTION_DBUS_GET_PRIVATE, ENTER_FUNC, _AlarmdActionDbusPrivate::interface, LEAVE_FUNC, _AlarmdActionDbusPrivate::name, _AlarmdActionDbusPrivate::path, PROP_INTERFACE, PROP_NAME, PROP_PATH, PROP_SERVICE, and _AlarmdActionDbusPrivate::service.

Referenced by alarmd_action_dbus_class_init().

static GSList * _alarmd_action_dbus_get_saved_properties void   )  [static]
 

Definition at line 282 of file actiondbus.c.

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

Referenced by alarmd_action_dbus_class_init().

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

Definition at line 169 of file actiondbus.c.

References ALARMD_ACTION_DBUS_GET_PRIVATE, ALARMD_OBJECT, alarmd_object_changed(), ENTER_FUNC, _AlarmdActionDbusPrivate::interface, LEAVE_FUNC, _AlarmdActionDbusPrivate::name, _AlarmdActionDbusPrivate::path, PROP_INTERFACE, PROP_NAME, PROP_PATH, PROP_SERVICE, and _AlarmdActionDbusPrivate::service.

Referenced by alarmd_action_dbus_class_init().

static void alarmd_action_dbus_class_init AlarmdActionDbusClass klass  )  [static]
 

Definition at line 110 of file actiondbus.c.

References _alarmd_action_dbus_do_action(), _alarmd_action_dbus_finalize(), _alarmd_action_dbus_get_property(), _alarmd_action_dbus_get_saved_properties(), _alarmd_action_dbus_set_property(), ALARMD_ACTION_DIALOG_CLASS, ALARMD_OBJECT_CLASS, _AlarmdActionDialogClass::do_action, ENTER_FUNC, _AlarmdObjectClass::get_saved_properties, LEAVE_FUNC, PROP_INTERFACE, PROP_NAME, PROP_PATH, and PROP_SERVICE.

Referenced by alarmd_action_dbus_get_type().

GType alarmd_action_dbus_get_type void   ) 
 

SECTION:actiondbus : An action type that sends a DBus message when launched.

: AlarmdActionDialog, #AlarmActionExec

AlarmdActionDbus is a action type that, upon firing, sends a message over dbus. The message may be sent on session or system bus. The semantics of this message are determined by properties AlarmdActionDbus:interface, AlarmdActionDbus:name, AlarmdActionDbus:service, AlarmdActionDbus:path and inherited property AlarmdActionDialog:flags.

AlarmdActionDbus 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 82 of file actiondbus.c.

References alarmd_action_dbus_class_init(), alarmd_action_dbus_init(), and ALARMD_TYPE_ACTION_DIALOG.

static void alarmd_action_dbus_init AlarmdActionDbus action_dbus  )  [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 157 of file actiondbus.c.

References ALARMD_ACTION_DBUS_GET_PRIVATE, ENTER_FUNC, _AlarmdActionDbusPrivate::interface, LEAVE_FUNC, _AlarmdActionDbusPrivate::name, _AlarmdActionDbusPrivate::path, and _AlarmdActionDbusPrivate::service.

Referenced by alarmd_action_dbus_get_type().


Variable Documentation

const gchar* const saved_properties[S_COUNT] [static]
 

Initial value:

 {
        "interface",
        "service",
        "path",
        "name"
}

Definition at line 63 of file actiondbus.c.


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