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

actiondbus.h

Go to the documentation of this file.
00001 /**
00002  * This file is part of alarmd
00003  *
00004  * Contact Person: David Weinehall <david.weinehall@nokia.com>
00005  *
00006  * Copyright (C) 2006 Nokia Corporation
00007  * alarmd and libalarm are free software; you can redistribute them
00008  * and/or modify them under the terms of the GNU Lesser General Public
00009  * License version 2.1 as published by the Free Software Foundation.
00010  *
00011  * alarmd and libalarm are distributed in the hope that they will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this software; if not, write to the Free
00018  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00019  * 02110-1301 USA
00020  */
00021 
00022 #ifndef _ACTION_DBUS_H_
00023 #define _ACTION_DBUS_H_
00024 
00025 #include <glib-object.h>
00026 #include "actiondialog.h"
00027 
00028 #define ALARMD_TYPE_ACTION_DBUS (alarmd_action_dbus_get_type())
00029 #define ALARMD_ACTION_DBUS(object) (G_TYPE_CHECK_INSTANCE_CAST((object), ALARMD_TYPE_ACTION_DBUS, AlarmdActionDbus))
00030 #define ALARMD_ACTION_DBUS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), ALARMD_TYPE_ACTION_DBUS, AlarmdActionDbusClass))
00031 #define ALARMD_IS_ACTION_DBUS(object) (G_TYPE_CHECK_INSTANCE_TYPE((object), ALARMD_TYPE_ACTION_DBUS))
00032 #define ALARMD_IS_ACTION_DBUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), ALARMD_TYPE_ACTION_DBUS))
00033 #define ALARMD_ACTION_DBUS_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), ALARMD_TYPE_ACTION_DBUS, AlarmdActionDbusClass))
00034 
00035 typedef struct _AlarmdActionDbus AlarmdActionDbus;
00036 struct _AlarmdActionDbus
00037 {
00038         AlarmdActionDialog parent_instance;
00039 };
00040 
00041 typedef struct _AlarmdActionDbusClass AlarmdActionDbusClass;
00042 struct _AlarmdActionDbusClass
00043 {
00044         AlarmdActionDialogClass parent_class;
00045 };
00046 
00047 /**
00048  * SECTION:actiondbus
00049  * @short_description: An action type that sends a DBus message when launched.
00050  * @see_also: #AlarmdActionDialog, #AlarmActionExec
00051  *
00052  * #AlarmdActionDbus is a action type that, upon firing, sends a message over
00053  * dbus. The message may be sent on session or system bus. The semantics of
00054  * this message are determined by properties #AlarmdActionDbus:interface,
00055  * #AlarmdActionDbus:name, #AlarmdActionDbus:service, #AlarmdActionDbus:path
00056  * and inherited property #AlarmdActionDialog:flags.
00057  *
00058  * #AlarmdActionDbus also includes the dialog showing properties of
00059  * #AlarmdActionDialog, see its documentation for details. The rest of the
00060  * action is only run if the dialog is closed; so on snooze the action will
00061  * be delayed too.
00062  **/
00063 
00064 GType alarmd_action_dbus_get_type(void);
00065 
00066 /**
00067  * alarmd_action_dbus_new:
00068  *
00069  * Creates new alarmd dbus action object.
00070  * Returns: Newly created #AlarmdActionDbus.
00071  **/
00072 AlarmdAction *alarmd_action_dbus_new(void);
00073 
00074 #endif /* _ACTION_DBUS_H_ */

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