Re: [Vala] Weird behaviour with the Vala Skype status client sample



Hello,

i've had the same problem some time ago and wrote a simple wrapper
class for communicating with skype (attached).

This way there were no clashes with existing library functions.

In addition the wrapper handles asynchronous messages sent from
skype an delegates them using signals (the current skype dbus example
lacks this).
I had trouble to set this up correctly, so maybe someone can make use
of this.

Usage is as simple as:

skype = new Skype.DBusWrapper();
skype.connected.connect(() => {
        stdout.printf("Skype DBus Service online\n");
});
skype.disconnected.connect(() => {
        stdout.printf("Skype DBus Service offline\n");
});
skype.notified.connect((msg) => {
        stdout.printf("Incoming Skype notification: %s\n", msg);
});
skype.send("NAME skype-test-client");
skype.send("PROTOCOL 8");


Regards


Attachment: dbus.vala
Description: Text Data

Attachment: signature.asc
Description: PGP signature



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