From: Mark <ma...@gm...> - 2008-12-02 21:47:32
|
Hey, First: i posted this message on the normal dbus list as well before i knew that this list was around. Sorry for that. I'm currently trying to figure out how i can make a simple DBus program with the c++ wrapper. I have no previous dbus experience or anythiong dbus related. using the c api from dbus is not an option for me. What i try to do (just as a begin) is reading out just some message from dbus (lets say the currently played song in Rhythmbox or just any app that sends something to dbus). i just can't find any examples of how to use the c++ wrapper and read a dbus message... I hope anyone can help me with this. Thanx, Mark |
From: Mark <ma...@gm...> - 2008-12-03 17:52:56
|
On Tue, Dec 2, 2008 at 10:37 PM, Mark <ma...@gm...> wrote: > Hey, > > First: i posted this message on the normal dbus list as well before i > knew that this list was around. Sorry for that. > > I'm currently trying to figure out how i can make a simple DBus > program with the c++ wrapper. > I have no previous dbus experience or anythiong dbus related. > > using the c api from dbus is not an option for me. > > What i try to do (just as a begin) is reading out just some message > from dbus (lets say the currently played song in Rhythmbox or just any > app that sends something to dbus). > i just can't find any examples of how to use the c++ wrapper and read > a dbus message... > > I hope anyone can help me with this. > > Thanx, > Mark > ping... if there is anyone that can help me with this he/she should be on this list.. anyone? |
From: Andreas V. <li...@br...> - 2008-12-04 20:25:08
|
Am Tue, 2 Dec 2008 22:37:29 +0100 schrieb Mark: > Hey, > > First: i posted this message on the normal dbus list as well before i > knew that this list was around. Sorry for that. > > I'm currently trying to figure out how i can make a simple DBus > program with the c++ wrapper. > I have no previous dbus experience or anythiong dbus related. > > using the c api from dbus is not an option for me. > > What i try to do (just as a begin) is reading out just some message > from dbus (lets say the currently played song in Rhythmbox or just any > app that sends something to dbus). > i just can't find any examples of how to use the c++ wrapper and read > a dbus message... > > I hope anyone can help me with this. Hello Mark, there're several examples beside the dbus-c++ source: examples> ls echo glib Makefile Makefile.in properties_get_set ecore hal Makefile.am properties The "ecore" example isn't in the main repo. But you should start with the "echo" example to understand its basic usage. If you got this running and understood the basic usage maybe you could ask more detailed questions. Feel free to ask if there're still questions... regards Andreas |
From: Mark <ma...@gm...> - 2008-12-05 00:45:20
|
On Thu, Dec 4, 2008 at 9:23 PM, Andreas Volz <li...@br...> wrote: > Am Tue, 2 Dec 2008 22:37:29 +0100 schrieb Mark: > >> Hey, >> >> First: i posted this message on the normal dbus list as well before i >> knew that this list was around. Sorry for that. >> >> I'm currently trying to figure out how i can make a simple DBus >> program with the c++ wrapper. >> I have no previous dbus experience or anythiong dbus related. >> >> using the c api from dbus is not an option for me. >> >> What i try to do (just as a begin) is reading out just some message >> from dbus (lets say the currently played song in Rhythmbox or just any >> app that sends something to dbus). >> i just can't find any examples of how to use the c++ wrapper and read >> a dbus message... >> >> I hope anyone can help me with this. > > Hello Mark, > > there're several examples beside the dbus-c++ source: > > examples> ls > echo glib Makefile Makefile.in properties_get_set > ecore hal Makefile.am properties > > The "ecore" example isn't in the main repo. But you should start with > the "echo" example to understand its basic usage. If you got this > running and understood the basic usage maybe you could ask more > detailed questions. Feel free to ask if there're still questions... > > regards > Andreas Hi, Those examples are exactly the issue. it's nowhere being made clear how i can add my own function in there like Hello(bla bla) which is in there. if i add a function i have to ad it to various other files but i don't know which ones.. that's not being said in those files or anything close to it. the documentation of the examples is just.. missing.. So i can't get anywhere with those examples. I still prefer using that dbus-c++ lib but i'm thinking of just using the c api since that does have decent documentation and more users where i can ask for help. |
From: Andreas V. <li...@br...> - 2008-12-05 20:30:11
|
Am Fri, 5 Dec 2008 01:45:16 +0100 schrieb Mark: > On Thu, Dec 4, 2008 at 9:23 PM, Andreas Volz <li...@br...> > wrote: > > Am Tue, 2 Dec 2008 22:37:29 +0100 schrieb Mark: > > > >> Hey, > >> > >> First: i posted this message on the normal dbus list as well > >> before i knew that this list was around. Sorry for that. > >> > >> I'm currently trying to figure out how i can make a simple DBus > >> program with the c++ wrapper. > >> I have no previous dbus experience or anythiong dbus related. > >> > >> using the c api from dbus is not an option for me. > >> > >> What i try to do (just as a begin) is reading out just some message > >> from dbus (lets say the currently played song in Rhythmbox or just > >> any app that sends something to dbus). > >> i just can't find any examples of how to use the c++ wrapper and > >> read a dbus message... > >> > >> I hope anyone can help me with this. > > > > Hello Mark, > > > > there're several examples beside the dbus-c++ source: > > > > examples> ls > > echo glib Makefile Makefile.in properties_get_set > > ecore hal Makefile.am properties > > > > The "ecore" example isn't in the main repo. But you should start > > with the "echo" example to understand its basic usage. If you got > > this running and understood the basic usage maybe you could ask more > > detailed questions. Feel free to ask if there're still questions... > > > > regards > > Andreas > > Hi, > > Those examples are exactly the issue. it's nowhere being made clear > how i can add my own function in there like Hello(bla bla) which is in > there. if i add a function i have to ad it to various other files but > i don't know which ones.. that's not being said in those files or > anything close to it. the documentation of the examples is just.. > missing.. There's a XML file beside e.g. the hello example. Maybe you should start to learn more about the introspection format: http://dbus-cplusplus.wiki.sourceforge.net/Introspection+Format Try the simple case with one method/signal, play with parameters and see what the generator creates as output. If you understood the introspection format half of the work is done. You've to use the generated header files in your application. I really have to write a beginners guide in the wiki. If you've success be welcome to write something. > So i can't get anywhere with those examples. > I still prefer using that dbus-c++ lib but i'm thinking of just using > the c api since that does have decent documentation and more users > where i can ask for help. Please help to change the situation! :) regards Andreas |
From: Mark <ma...@gm...> - 2008-12-05 22:10:00
|
On Fri, Dec 5, 2008 at 9:27 PM, Andreas Volz <li...@br...> wrote: > Am Fri, 5 Dec 2008 01:45:16 +0100 schrieb Mark: > >> On Thu, Dec 4, 2008 at 9:23 PM, Andreas Volz <li...@br...> >> wrote: >> > Am Tue, 2 Dec 2008 22:37:29 +0100 schrieb Mark: >> > >> >> Hey, >> >> >> >> First: i posted this message on the normal dbus list as well >> >> before i knew that this list was around. Sorry for that. >> >> >> >> I'm currently trying to figure out how i can make a simple DBus >> >> program with the c++ wrapper. >> >> I have no previous dbus experience or anythiong dbus related. >> >> >> >> using the c api from dbus is not an option for me. >> >> >> >> What i try to do (just as a begin) is reading out just some message >> >> from dbus (lets say the currently played song in Rhythmbox or just >> >> any app that sends something to dbus). >> >> i just can't find any examples of how to use the c++ wrapper and >> >> read a dbus message... >> >> >> >> I hope anyone can help me with this. >> > >> > Hello Mark, >> > >> > there're several examples beside the dbus-c++ source: >> > >> > examples> ls >> > echo glib Makefile Makefile.in properties_get_set >> > ecore hal Makefile.am properties >> > >> > The "ecore" example isn't in the main repo. But you should start >> > with the "echo" example to understand its basic usage. If you got >> > this running and understood the basic usage maybe you could ask more >> > detailed questions. Feel free to ask if there're still questions... >> > >> > regards >> > Andreas >> >> Hi, >> >> Those examples are exactly the issue. it's nowhere being made clear >> how i can add my own function in there like Hello(bla bla) which is in >> there. if i add a function i have to ad it to various other files but >> i don't know which ones.. that's not being said in those files or >> anything close to it. the documentation of the examples is just.. >> missing.. > > There's a XML file beside e.g. the hello example. Maybe you should > start to learn more about the introspection format: > > http://dbus-cplusplus.wiki.sourceforge.net/Introspection+Format > > Try the simple case with one method/signal, play with parameters and > see what the generator creates as output. If you understood the > introspection format half of the work is done. You've to use the > generated header files in your application. > > I really have to write a beginners guide in the wiki. If you've success > be welcome to write something. > >> So i can't get anywhere with those examples. >> I still prefer using that dbus-c++ lib but i'm thinking of just using >> the c api since that does have decent documentation and more users >> where i can ask for help. > > Please help to change the situation! :) > > regards > Andreas > Well.. i would like to help but since i have just a little more then 5 weeks to get this done i really have to use what is the fastest way for me. in the case of the dbus-c++ api and the dbus c api it's leaning towards c because i can just follow examples there. If i had 4 months or something to work this all out i would probably invest a lot more time in the c++ api for now it seems unlikely that i'm gonna use it. Also about this school project that i do now. If this project is a success for my school it might (i said might!) be possible that it's gonna be a part of the Computer Science lessons which means that about 40 students a year will try this dbus stuff and also might end up in deciding to use dbus-c++.. and if that is so "beginner friendly" as it is now then it might scare them off and (like me) also use the dbus c api... So for the sake of this project please make it beginner friendly ^_^ Also something that i find strange is that a newly made function is not automatically assigned to dbus.. surely there must be a way to get around this and make the dbus-c++ api more user friendly. |