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

rpc-systemui.h File Reference

#include <time.h>
#include <glib/gtypes.h>

Include dependency graph for rpc-systemui.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* SystemuiAlarmdDialogCallback )(gpointer user_data, gboolean snoozed)
 SystemuiAlarmdDialogCallback: : user data set when the callback was connected.

Functions

void systemui_alarm_dialog_queue_append (time_t alarm_time, const gchar *title, const gchar *message, const gchar *sound, const gchar *icon, gboolean can_snooze, SystemuiAlarmdDialogCallback cb, gpointer user_data)
 systemui_alarm_dialog_queue_append: : Title of the dialog to be appended to the queue.
void systemui_alarm_dialog_queue_remove (time_t alarm_time, const gchar *title, const gchar *message, const gchar *sound, const gchar *icon, SystemuiAlarmdDialogCallback cb, gpointer user_data)
 systemui_alarm_dialog_queue_remove: : As passed to systemui_alarm_dialog_queue_append.
void systemui_powerup_dialog_queue_append (SystemuiAlarmdDialogCallback cb, gpointer user_data)
 systemui_powerup_dialog_queue_append: : Callback called when the dialog is acknowledged.
void systemui_powerup_dialog_queue_remove (SystemuiAlarmdDialogCallback cb, gpointer user_data)
 systemui_powerup_dialog_queue_remove: : As passed to systemui_powerup_dialog_queue_append.
void update_mce_alarm_visibility (void)
 update_mce_alarm_visibility:
void systemui_ack_all_dialogs (void)
 systemui_ack_all_dialogs:
gboolean systemui_is_acting_dead (void)
 systemui_is_acting_dead:


Typedef Documentation

typedef void(* SystemuiAlarmdDialogCallback)(gpointer user_data, gboolean snoozed)
 

SystemuiAlarmdDialogCallback: : user data set when the callback was connected.

: TRUE if the snooze/cancel was pressed.

Defines the callbeck used for replies from systemui-alarm.

Definition at line 43 of file rpc-systemui.h.


Function Documentation

void systemui_ack_all_dialogs void   ) 
 

systemui_ack_all_dialogs:

Clears the queue acknowledging all alarms and tells systemui to close the currently showing one.

Definition at line 419 of file rpc-systemui.c.

References _close_dialog(), _SystemuiAlarmdDialog::cb, dialog_queue, ENTER_FUNC, LEAVE_FUNC, queue_mutex, _SystemuiAlarmdDialog::timer_id, and _SystemuiAlarmdDialog::user_data.

Referenced by _osso_hw_cb().

void systemui_alarm_dialog_queue_append time_t  alarm_time,
const gchar *  title,
const gchar *  message,
const gchar *  sound,
const gchar *  icon,
gboolean  can_snooze,
SystemuiAlarmdDialogCallback  cb,
gpointer  user_data
 

systemui_alarm_dialog_queue_append: : Title of the dialog to be appended to the queue.

: Message of the dialog to be appended to the queue. : Sound for the dialog to be appended to the queue. : Icon for the dialog to be appended to the queue. : TRUE if the dialog should have snooze button enabled. : Callback called when the dialog is acknowledged. : user date to pass to the callback.

Adds a request for a dialog to the queue. After the dialog has been acknowledged, the request is removed from the queue, no need to remove it manually.

Definition at line 87 of file rpc-systemui.c.

References _systemui_dialog_queue_append(), and FLAG_CAN_SNOOZE.

Referenced by _alarmd_action_dialog_connected(), and _alarmd_action_dialog_run().

void systemui_alarm_dialog_queue_remove time_t  alarm_time,
const gchar *  title,
const gchar *  message,
const gchar *  sound,
const gchar *  icon,
SystemuiAlarmdDialogCallback  cb,
gpointer  user_data
 

systemui_alarm_dialog_queue_remove: : As passed to systemui_alarm_dialog_queue_append.

: As passed to systemui_alarm_dialog_queue_append. : As passed to systemui_alarm_dialog_queue_append. : As passed to systemui_alarm_dialog_queue_append. : As passed to systemui_alarm_dialog_queue_append. : As passed to systemui_alarm_dialog_queue_append.

Removes an alarm dialog request from the dialog queue.

Definition at line 97 of file rpc-systemui.c.

References _close_dialog(), _dialog_free(), _queue_changed(), _queue_compare(), _SystemuiAlarmdDialog::alarm_time, dialog_queue, ENTER_FUNC, LEAVE_FUNC, queue_mutex, system_bus, and _SystemuiAlarmdDialog::timer_id.

Referenced by systemui_powerup_dialog_queue_remove().

gboolean systemui_is_acting_dead void   ) 
 

systemui_is_acting_dead:

Queries system UI whether the acting dead mode is enabled or not. Returns: TRUE if device is in acting dead, false otherwise.

Definition at line 495 of file rpc-systemui.c.

References dbus_do_call(), ENTER_FUNC, get_dbus_connection(), LEAVE_FUNC, and system_bus.

Referenced by _alarmd_action_dialog_real_run().

void systemui_powerup_dialog_queue_append SystemuiAlarmdDialogCallback  cb,
gpointer  user_data
 

systemui_powerup_dialog_queue_append: : Callback called when the dialog is acknowledged.

: user date to pass to the callback.

Appends a powerup dialog request to the dialog queue. After the dialog has been acknowledged, the request is removed from the queue, no need to remove it manually.

Definition at line 82 of file rpc-systemui.c.

References _systemui_dialog_queue_append(), and FLAG_POWERUP.

Referenced by _alarmd_action_dialog_real_run().

void systemui_powerup_dialog_queue_remove SystemuiAlarmdDialogCallback  cb,
gpointer  user_data
 

systemui_powerup_dialog_queue_remove: : As passed to systemui_powerup_dialog_queue_append.

: As passed to systemui_powerup_dialog_queue_append.

Removes a powerup dialog request from the dialog queue.

Definition at line 92 of file rpc-systemui.c.

References systemui_alarm_dialog_queue_remove().

void update_mce_alarm_visibility void   ) 
 

update_mce_alarm_visibility:

Sends message to mce telling the alarm dialog visibility status.

Definition at line 402 of file rpc-systemui.c.

References conn, dialog_queue, get_dbus_connection(), mce_dialog_visible, mce_set_alarm_visibility(), and queue_mutex.

Referenced by _alarmd_action_dialog_connected(), _alarmd_action_dialog_powerup(), _alarmd_action_dialog_run(), _alarmd_action_dialog_snooze_powerup(), and _alarmd_action_real_acknowledge().


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