From: Matthieu C. <cha...@gm...> - 2012-05-24 20:53:49
|
Hi, I am currently working on using DBUS-c++ and I have an issue with signals. As you probably know, «mpris» is an unified interface to control mediaplayers. Consequently, several players can use it at the same time. My problem is: suppose that I want to control a mediaplayer, lets say Rhythmbox, which uses mpris, I need to catch every signal that it may send. however, lets say that Banshee is also running and is using mpris too. The problem is: my program (based on a basic implementation) catch signal from both Rhythmbox and Banshee. I had the Idea to filter with the sender identifier, included in the message. However, this value is written like this: «:1.343» while my sender filter would be «org.gnome.Rhythmbox3». What should I do? How can I filter the signal that I receive? Regards, Matthieu Charbonnier. |