Extract class out of an RemoteObject

hannehomuth hannehomuth1 at gmx.de
Mon Jun 30 09:07:00 PDT 2008


Hi Everybody,

at first, thx for your yesterday answers. I have already connected to the
dbus and even got a remote object which belongs to the gnome keyring
service. But I can't call a method on that. Here some Code.

1.//Establish Connection to the dbus
2.try {
3.       DBusInterface remoteObject;
4.       conn = DBusConnection.getConnection(DBusConnection.SESSION);
5.       remoteObject = conn.getRemoteObject("org.gnome.seahorse",
"/org/gnome/seahorse/keys");                    
6.       System.out.println(remoteObject.isRemote());
7.       //conn.callWithCallback(remoteObject,"GetKeyTypes",new
KeyRingCallBack(),);
8.      }
9.      catch (Exception ex) 
10.      {
11.          conn.disconnect();
12.          ex.printStackTrace();
13.      }

The Sysout in Line 6 writes out true, which let me hope that I'am on the
right way.

But now my Question. How can I call a Method? Is'nt it wrong that my
variable remoteObject is from the typ DbusInterface. I think it have to be a
Typ like GnomeKeyringDbusInterface or such a class. Is that right, and if
not, could anybody give me tip. And furthermore sorry about my f*****g
english .
-- 
View this message in context: http://www.nabble.com/Extract-class-out-of-an-RemoteObject-tp18198904p18198904.html
Sent from the Free Desktop - dbus mailing list archive at Nabble.com.



More information about the dbus mailing list