Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Dbus-xml custom types

Dbus-xml custom types

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 930 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rfringuello89
    wrote on last edited by
    #1

    Hi, I'm using DBUS declaring my methods in the xml files and then I use qdbusxml2cpp to generate my .h and .cpp files. I can use the native types (like "s", "i", "b") pretty well but I need to use a custom type.
    I know I have to add the annotation to the xml file but I can't figure out how to specify my type.

    Let's say this is my class:
    @typedef enum{...} TestAttribute
    class Test
    {
    public:
    //const, deconst, operators...

    private:
    TestAttribute enumerator;
    }
    @

    How can I pass this kind of object as argument of a method in the xml?

    Thanks a lot guys!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved