head	1.3;
access;
symbols
	v2_0_0beta3:1.3
	v2_0_0beta2:1.2
	v2_0_0beta1:1.2;
locks; strict;
comment	@# @;


1.3
date	2006.02.11.05.25.47;	author rlaager;	state Exp;
branches;
next	1.2;

1.2
date	2005.08.24.02.34.40;	author zielaj;	state Exp;
branches;
next	1.1;

1.1
date	2005.07.07.15.43.48;	author zielaj;	state Exp;
branches;
next	;


desc
@@


1.3
log
@SF Patch #1428582 from Casey Harkins

"The dbus stuff in gaim is using the namespace org.gaim.
 gaim.org is obviously not associated with gaim and
 chances are they would never need the dbus namespace.
 Regardless, it would probably be better if gaim used
 net.sf.gaim for the namespace. It'd be easier to
 change now than after 2.0 is released since things
 might start depending on gaim's dbus api. The dbus spec
 and tutorial both suggest/imply (though don't strictly
 require) that the namespace coorespond to a domain name
 that you own."
@
text
@#!/bin/bash

METHOD_NAME=$1

if test -z "$METHOD_NAME" 
then
    cat <<EOF 
This program calls gaim API functions using DBus and prints the return value.
If you are not interested in the return value, use gaim-send-async.

Usage:

   $0 method-name type1:parameter1 type2:parameter2 ...

This shell script just invokes dbus-send, see man dbus-send for how 
to specify the parameters.  

Examples:

   $0 GaimAccountsFindConnected string: string:prpl-jabber
   $0 GaimAccountsGetAll
   $0 GaimCoreQuit

Use dbus-viewer to get the list of supported functions and their parameters.
EOF
    exit 1
fi

shift
dbus-send --dest=net.sf.gaim.GaimService --print-reply --type=method_call /net/sf/gaim/GaimObject net.sf.gaim.GaimInterface.$METHOD_NAME "$@@"

echo 
@


1.2
log
@

General polishing of DBus code, improving examples, removing obsolete files.
@
text
@d30 1
a30 1
dbus-send --dest=org.gaim.GaimService --print-reply --type=method_call /org/gaim/GaimObject org.gaim.GaimInterface.$METHOD_NAME "$@@"
@


1.1
log
@

Modified configure.ac so that it rejects dbus builds with the dbus
library older than 0.34

Added a simple object registration system to the dbus implementation
so that it is possible to query object properties remotely (eg. give
me property "name" of buddy with id = 5).
@
text
@a1 2
# 
# A little shell script for communicating with gaim using dbus
d8 2
a9 2
This program uses dbus to talk to gaim.  If the gaim is not running and
the dbus engine is set up correctly, a new instance of gaim will be started.
d11 3
a13 1
   Syntax: gaim-send method-name parameter1 parameter2 ..."
d20 3
a22 5
   gaim-send Ping 
   gaim-send Quit
   gaim-send GetBuddyList
   gaim-send GetBuddyProperty int32:5 string:alias
   gaim-send StartIMConversation int32:5
d24 1
a24 1
See src/dbus-services.xml for the list of supported operations.  
a25 1

@

