[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: QDbus / Strigi question
From: "Mikkel Kamstrup Erlandsen" <mikkel.kamstrup () gmail ! com>
Date: 2007-09-27 11:11:59
Message-ID: 9961daf10709270411r7ea5faeap53546c8484863cb4 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
2007/9/27, Carsten Niehaus <cniehaus@gmx.de>:
>
> 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
The API in the spec should be read as
GetHits (<direction> <type> <name>)
Direction is either in or out for arguments or return values respectively.
Type is the data type of the paramter "s" is string and "as" is array of
strings - this is standard dbus notation. Name is purely informational - it
is just there to ease communications.
Anyways, I'm not sure that Strigi's dbus API is fully up to scratch... Jos?
Cheers,
Mikkel
[Attachment #5 (text/html)]
2007/9/27, Carsten Niehaus <<a \
href="mailto:cniehaus@gmx.de">cniehaus@gmx.de</a>>:<div><span \
class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px \
solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> \
Moin<br><br>This is my \
code:<br><br>================================================<br><br>QDBusInterface \
strigiiface<br>("org.freedesktop.xesam.searcher", \
"/org/freedesktop/xesam/searcher/main", " \
org.freedesktop.xesam.Search");<br>QDBusReply<QString> reply = \
strigiiface.call( "GetState" );<br> if ( \
reply.isValid() ) {<br> \
qDebug() << "The reply: " << reply;<br> \
} else \
{<br> qDebug() << "ERROR: \
" << reply.error();<br> }<br><br>================================================<br><br>No \
matter what I do I am getting errors like this \
one:<br><br>ERROR: QDBusError(" \
org.freedesktop.DBus.Error.InvalidSignature", "Unexpected<br>reply \
signature: got "no signature", expected "" \
(QString)")<br><br><br>Of course I read the XESAM docs [1] but I simply \
don't understand it. What is <br>meant with:<br><br> GetState (out as \
state_info)<br><br>Does it mean that the return-value is called state_info? The doc \
says<br><br> "state_info is an array of two strings"<br><br>So \
what shuold I use in QDBusReply<T> for T? QString is obviously wrong... \
<br><br>And what is "aav hits" or "u num" in this \
API:<br><br> GetHits (in s search, in u num, out aav hits)<br><br>Neither \
"u" nor "aav" is mentioned anywhere in the docs...<br><br> \
Carsten<br><br><br><br>[1] <a \
href="http://www.freedesktop.org/wiki/XesamSearchLive">http://www.freedesktop.org/wiki/XesamSearchLive</a></blockquote><div><br><br>The \
API in the spec should be read as<br><br> GetHits (<direction> \
<type> <name>) <br><br>Direction is either in or out for arguments or \
return values respectively. Type is the data type of the paramter "s" is \
string and "as" is array of strings - this is standard dbus notation. Name \
is purely informational - it is just there to ease communications. \
<br></div><br>Anyways, I'm not sure that Strigi's dbus API is fully up to \
scratch... Jos?<br></div><br>Cheers,<br>Mikkel<br>
>> 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