[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    QDbus / Strigi question
From:       Carsten Niehaus <cniehaus () gmx ! de>
Date:       2007-09-27 10:30:39
Message-ID: 200709271230.47590.cniehaus () gmx ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Moin

This is my code:

================================================

QDBusInterface strigiiface 
("org.freedesktop.xesam.searcher", "/org/freedesktop/xesam/searcher/main", \
"org.freedesktop.xesam.Search"); QDBusReply<QString> reply = strigiiface.call( \
"GetState" );  if ( reply.isValid() ) {
           qDebug() << "The reply: " << reply;
    } else {
        qDebug() << "ERROR: " << reply.error();
    }

================================================

No matter what I do I am getting errors like this one:

ERROR:  QDBusError("org.freedesktop.DBus.Error.InvalidSignature", "Unexpected 
reply signature: got "no signature", expected "" (QString)")


Of course I read the XESAM docs [1] but I simply don't understand it. What is 
meant with:

   GetState (out as state_info)

Does it mean that the return-value is called state_info? The doc says 

   "state_info is an array of two strings"

So what shuold I use in QDBusReply<T> for T? QString is obviously wrong...

And what is "aav hits" or "u num" in this API:

   GetHits (in s search, in u num, out aav hits)

Neither "u" nor "aav" is mentioned anywhere in the docs...

Carsten



[1] http://www.freedesktop.org/wiki/XesamSearchLive


["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic