Talk:QtDbus quick tutorial
QtDbus is only available for -nix ? So only for maemo/meego ?
Werty1st - i dont understand this
i'm now trying for hours
The only nontrivial part is implementing the server. Create a project, add demoifadaptor.cpp to it, and take a look at demoifadaptor.h. We'll create a new class MyDemo to implement the functionality (I'm intentionally using a name as tacky as MyDemo - normally I would call it DemoService, but now I'm trying to convey there is nothing magical about this class, apart from the fact that it inherits from QObject).
Now the important part - you need to copy-paste the methods from DemoIfAdaptor class to MyDemo, exactly as they appear in demoifadaptor.h. After this, mydemo.h looks like this:
i created demoifadaptor.cpp and demoifadaptor.h but when i try to compile i get: "undefined reference to `QDBusAbstractAdaptor..."i changed it to QObject but it everything ended with "undefined reference to QDBusConnection". i am very upset. this is so demotivating. i love my N9 but android is lightyears ahead :(
00:40, 16 July 2012 (EEST)
QT += dbuson your .pro file
09:29, 1 August 2012 (EEST)
Hamishwillee - Lepton
Do you think its worth adding a section on this in the article? If so, do you mind doing it?
RegardsHamish (Wiki moderation)
04:32, 6 August 2012 (EEST)
Hamishwillee - Lepton - thank youMuch appreciated!
07:56, 27 August 2012 (EEST)
Quote: "Create a project, add demoifadaptor.cpp to it, and take a look at demoifadaptor.h."
What? - Add the .cpp file and "look" and the ".h" file? What kind of instructions are these?
Quote: ".. you need to copy-paste the methods from DemoIfAdaptor class to MyDemo, exactly as they appear in demoifadaptor.h"
I don't get it. What should I put in MyDemo.cpp?Just attach the full source and people won't have to ask blind questions as to what you mean by this and that.
talk) 03:39, 14 November 2013 (EET)(