Open Source Telephony
 help / color / mirror / Atom feed
From: Jussi Kukkonen <jku@linux.intel.com>
To: ofono@ofono.org
Subject: Re: Getting Modem properties using qt dbus programming -reg
Date: Thu, 27 May 2010 16:07:37 +0300	[thread overview]
Message-ID: <4BFE6E99.1080606@linux.intel.com> (raw)
In-Reply-To: <COL106-W39D2FB4FE36047A6B0D0FFF6EA0@phx.gbl>

[-- Attachment #1: Type: text/plain, Size: 796 bytes --]

On 05/27/2010 03:35 PM, krishna k wrote:
>
> Hi,
>
> I am trying to implement application using qt dbus module, Which will call SetProperty with parameters QString, QVariant.
...
> I am trying the same thing using qt program...
>
>      QDBusConnection bus = QDBusConnection::systemBus();
>
>      QDBusInterface dbus_iface("org.ofono", "/phonesim0/operator/23402",
>                                    "org.ofono.Modem", bus);
>       bool value = true;
>       dbus_iface.call("SetProperty", QString("Powered"), QVariant(QVariant::Bool,&value));

I believe "v" maps to QDBusVariant, not QVariant. Maybe something like 
this works:

bool value = true;
var = QDBusVariant (QVariant(QVariant::Bool,&value));
dbus_iface.call("SetProperty", QString("Powered"), var);


Jussi

  reply	other threads:[~2010-05-27 13:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-27 12:35 Getting Modem properties using qt dbus programming -reg krishna k
2010-05-27 13:07 ` Jussi Kukkonen [this message]
2010-05-27 15:05 ` Nicola Mfb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BFE6E99.1080606@linux.intel.com \
    --to=jku@linux.intel.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox