[gnome-pilot/dbus] Test on the adm dbus method calls:
- From: Halton Huo <haltonhuo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-pilot/dbus] Test on the adm dbus method calls:
- Date: Thu, 11 Mar 2010 09:18:42 +0000 (UTC)
commit 06f74bcf3bb3a6bbdc600e802bde1f3fae742514
Author: Halton Huo <halton huo sun com>
Date: Wed Mar 10 16:39:42 2010 +0800
Test on the adm dbus method calls:
org.gnome.GnomePilot.Daemon.Pause
org.gnome.GnomePilot.Daemon.RereadConfig
org.gnome.GnomePilot.Daemon.Noop
gpilotd/gpilot-daemon.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/gpilotd/gpilot-daemon.c b/gpilotd/gpilot-daemon.c
index 011a895..6ddbe04 100644
--- a/gpilotd/gpilot-daemon.c
+++ b/gpilotd/gpilot-daemon.c
@@ -1656,12 +1656,22 @@ gpilot_daemon_error_get_type (void)
return etype;
}
+/*
+Example:
+dbus-send --session --dest=org.gnome.GnomePilot \
+--type=method_call --print-reply --reply-timeout=2000 \
+/org/gnome/GnomePilot/Daemon \
+org.gnome.GnomePilot.Daemon.Pause boolean:true
+*/
gboolean
gpilot_daemon_pause (GpilotDaemon *daemon,
gboolean on_off,
GError **error)
{
GpilotDaemonPrivate *priv;
+
+ priv = daemon->priv;
+
if (priv->gpilotd_context->paused == on_off)
return TRUE;
@@ -1684,6 +1694,13 @@ gpilot_daemon_pause (GpilotDaemon *daemon,
return TRUE;
}
+/*
+Example:
+dbus-send --session --dest=org.gnome.GnomePilot \
+--type=method_call --print-reply --reply-timeout=2000 \
+/org/gnome/GnomePilot/Daemon \
+org.gnome.GnomePilot.Daemon.RereadConfig
+*/
gboolean
gpilot_daemon_reread_config (GpilotDaemon *daemon,
GError **error)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]