#include <dbus/dbus.h>
#include <glib/gtypes.h>
#include <glib/gthread.h>
#include <glib/gmain.h>
#include <string.h>
#include "rpc-dbus.h"
#include "rpc-statusbar.h"
#include "debug.h"
Include dependency graph for rpc-statusbar.c:
Go to the source code of this file.
Defines | |
#define | STATUSBAR_SERVICE "com.nokia.statusbar" |
#define | STATUSBAR_OBJECT_PATH "/com/nokia/statusbar" |
#define | STATUSBAR_INTERFACE "com.nokia.statusbar" |
#define | STATUSBAR_STARTED_SIGNAL "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='com.nokia.statusbar'" |
Functions | |
static DBusHandlerResult | _statusbar_started (DBusConnection *connection, DBusMessage *message, void *user_data) |
static gboolean | _display_icon (gpointer user_data) |
void | statusbar_show_icon (void) |
statusbar_show_icon: | |
void | statusbar_hide_icon (void) |
statusbar_hide_icon: | |
Variables | |
static guint | users = 0 |
This file is part of alarmd. | |
static DBusConnection * | conn = NULL |
static GStaticMutex | mutex = G_STATIC_MUTEX_INIT |
static const gchar *const | STATUSBAR_ALARM_NAME = "alarm" |
static const gint | STATUSBAR_MAGIC_ON = 1 |
static const gint | STATUSBAR_MAGIC_OFF = 0 |
static const gchar *const | EMPTY = "" |
|
Definition at line 37 of file rpc-statusbar.c. Referenced by _display_icon(), statusbar_hide_icon(), and statusbar_show_icon(). |
|
Definition at line 36 of file rpc-statusbar.c. Referenced by _display_icon(), statusbar_hide_icon(), and statusbar_show_icon(). |
|
Definition at line 35 of file rpc-statusbar.c. |
|
Definition at line 41 of file rpc-statusbar.c. Referenced by statusbar_hide_icon(), and statusbar_show_icon(). |
|
Definition at line 86 of file rpc-statusbar.c. References conn, dbus_do_call(), EMPTY, ENTER_FUNC, LEAVE_FUNC, mutex, STATUSBAR_ALARM_NAME, STATUSBAR_INTERFACE, STATUSBAR_MAGIC_ON, STATUSBAR_OBJECT_PATH, STATUSBAR_SERVICE, and users. Referenced by _statusbar_started(). |
|
Definition at line 101 of file rpc-statusbar.c. References _display_icon(), ENTER_FUNC, LEAVE_FUNC, and STATUSBAR_SERVICE. Referenced by statusbar_hide_icon(), and statusbar_show_icon(). |
|
statusbar_hide_icon: Decrements the statusbar applet show count, if the counter becomes zero, the icon will be hidden. Definition at line 66 of file rpc-statusbar.c. References _statusbar_started(), conn, dbus_do_call(), EMPTY, ENTER_FUNC, LEAVE_FUNC, mutex, STATUSBAR_ALARM_NAME, STATUSBAR_INTERFACE, STATUSBAR_MAGIC_OFF, STATUSBAR_MAGIC_ON, STATUSBAR_OBJECT_PATH, STATUSBAR_SERVICE, STATUSBAR_STARTED_SIGNAL, and users. Referenced by _alarmd_action_finalize(), and _alarmd_action_set_property(). |
|
statusbar_show_icon: Increments the statusbar applet show count, if the counter was zero, the icon will be shown. Definition at line 47 of file rpc-statusbar.c. References _statusbar_started(), conn, dbus_do_call(), EMPTY, ENTER_FUNC, get_dbus_connection(), LEAVE_FUNC, mutex, STATUSBAR_ALARM_NAME, STATUSBAR_INTERFACE, STATUSBAR_MAGIC_ON, STATUSBAR_OBJECT_PATH, STATUSBAR_SERVICE, STATUSBAR_STARTED_SIGNAL, and users. Referenced by _alarmd_action_set_property(). |
|
Definition at line 32 of file rpc-statusbar.c. Referenced by _alarm_event_dbus_call(), _alarmd_action_dbus_do_action(), _display_icon(), alarm_event_add(), get_dbus_connection(), ic_get_connected(), statusbar_hide_icon(), statusbar_show_icon(), and update_mce_alarm_visibility(). |
|
Definition at line 42 of file rpc-statusbar.c. Referenced by _display_icon(), statusbar_hide_icon(), and statusbar_show_icon(). |
|
Definition at line 33 of file rpc-statusbar.c. Referenced by _display_icon(), statusbar_hide_icon(), and statusbar_show_icon(). |
|
Definition at line 38 of file rpc-statusbar.c. Referenced by _display_icon(), statusbar_hide_icon(), and statusbar_show_icon(). |
|
Definition at line 40 of file rpc-statusbar.c. Referenced by statusbar_hide_icon(). |
|
Definition at line 39 of file rpc-statusbar.c. Referenced by _display_icon(), statusbar_hide_icon(), and statusbar_show_icon(). |
|
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 31 of file rpc-statusbar.c. Referenced by _display_icon(), statusbar_hide_icon(), and statusbar_show_icon(). |