[gnome-pilot] Add dbus-send example for tested methods in last commit.



commit 7601926fff5b19bb480bb336e406c654dc9f9e08
Author: Halton Huo <halton huo sun com>
Date:   Wed Mar 17 15:14:01 2010 +0800

    Add dbus-send example for tested methods in last commit.

 gpilotd/gpilot-daemon.c |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/gpilotd/gpilot-daemon.c b/gpilotd/gpilot-daemon.c
index c768472..5deed05 100644
--- a/gpilotd/gpilot-daemon.c
+++ b/gpilotd/gpilot-daemon.c
@@ -2185,6 +2185,13 @@ gpilot_daemon_get_user_login_by_pilot_name (GpilotDaemon   *daemon,
         return TRUE;
 }
 
+/* Example:
+dbus-send --session --dest=org.gnome.GnomePilot \
+--type=method_call --print-reply \
+/org/gnome/GnomePilot/Daemon \
+org.gnome.GnomePilot.Daemon.GetPilotBaseDir \
+string:'MyPDA'
+*/
 gboolean
 gpilot_daemon_get_pilot_base_dir (GpilotDaemon   *daemon,
                                   const char     *pilot_name,
@@ -2214,6 +2221,13 @@ gpilot_daemon_get_pilot_base_dir (GpilotDaemon   *daemon,
         return TRUE;
 }
 
+/* Example:
+dbus-send --session --dest=org.gnome.GnomePilot \
+--type=method_call --print-reply \
+/org/gnome/GnomePilot/Daemon \
+org.gnome.GnomePilot.Daemon.GetPilotIdFromName \
+string:'MyPDA'
+*/
 gboolean
 gpilot_daemon_get_pilot_id_from_name (GpilotDaemon   *daemon,
                                       const char     *pilot_name,
@@ -2228,6 +2242,13 @@ gpilot_daemon_get_pilot_id_from_name (GpilotDaemon   *daemon,
         return TRUE;
 }
 
+/* Example:
+dbus-send --session --dest=org.gnome.GnomePilot \
+--type=method_call --print-reply \
+/org/gnome/GnomePilot/Daemon \
+org.gnome.GnomePilot.Daemon.GetPilotNameFromId \
+uint32:10001
+*/
 gboolean
 gpilot_daemon_get_pilot_name_from_id (GpilotDaemon   *daemon,
                                       guint           pilot_id,
@@ -2242,6 +2263,13 @@ gpilot_daemon_get_pilot_name_from_id (GpilotDaemon   *daemon,
         return TRUE;
 }
 
+/* Example:
+dbus-send --session --dest=org.gnome.GnomePilot \
+--type=method_call --print-reply \
+/org/gnome/GnomePilot/Daemon \
+org.gnome.GnomePilot.Daemon.GetDatabasesFromCache \
+string:'MyPDA'
+*/
 gboolean
 gpilot_daemon_get_databases_from_cache (GpilotDaemon   *daemon,
                                         const char     *pilot_name,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]