Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Talk:QtDbus quick tutorial

From Wiki
Jump to: navigation, search

QtDbus is only available for -nix ? So only for maemo/meego ?

Contents

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 :(

werty1st 00:40, 16 July 2012 (EEST)

Lepton -

Just add

QT += dbus

on your .pro file

Lepton 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?

Regards

Hamish (Wiki moderation)

hamishwillee 04:32, 6 August 2012 (EEST)

Hamishwillee - Lepton - thank you

Much appreciated!

hamishwillee 07:56, 27 August 2012 (EEST)

Kangaba -

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.

kangaba (talk) 03:39, 14 November 2013 (EET)

 

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×