Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6926705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:57:12+00:00 2026-05-27T10:57:12+00:00

I have been accessing exposed member functions, corresponding to an object exposed over D-Bus.

  • 0

I have been accessing exposed member functions, corresponding to an object exposed over D-Bus. Is there any way by which I can access the (public)data members as well ? If so, how?

Also I read here-

[ http://www.qtcentre.org/archive/index.php/t-24238.html ]

that it is not possible to pass pointers over D-Bus. Just wanted to confirm the same.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:57:13+00:00Added an answer on May 27, 2026 at 10:57 am

    Whether you can access the data members of the object depends on whether they are declared public or private. Look at the class (or struct) definition in the header file. This is true independent of the fact that the class maps to something on the D-Bus, though it is hypothetically possible that the class is written incorrectly and allows you to do something that the D-Bus doesn’t support, in which case I can’t know from the information provided what will happen.

    class DBusThing
    {
      int seeBelowMember;
    public:
      int accessibleMember;
      int accessibleMethod(int argument);
    private:
      int inaccessibleMember;
    }
    
    void someFunc()
    {
       DBusThing foo;
       int ret = foo.accessibleMethod(5); // legal
       foo.accessibleMember=5; // legal
       foo.inaccessibleMember=5; // illegal
       foo.seeBelowMember=5; // illegal because DBusThing is declared class.
       // If DBusThing had been declared struct, seeBelowMember would be accessible.
    }
    

    I judge it probable that the class is written correctly and will prevent you from attempting the impossible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an existing database, which I have been happily accessing using LINQtoSQL. Armed
I have been struggling with the best way of creating, accessing and updating values
I am trying to cache images which have been generated. You create a image
I have been issued a PKCS#12 certificate to be used for accessing a simple
I have been trying to add an object as an NSMutableDictionary to my array,
I have been looking at the various methods for accessing a database from silverlight
for some days i have been struggeling with making only certain ips accessing my
I have been testing out using delegates instead of reflection for some object sorting
I have been using the Google Websearch API for over 1 year now. The
Hoping I can get some architectural advice on this. I have been given the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.