Nepomuk-Core
queryserviceclient.cpp
Go to the documentation of this file.
44 QHash<QString, QString> encodeRequestProperties( const QList<Nepomuk2::Query::Query::RequestProperty>& rps )
55 QHash<QString, QString> encodeRequestProperties( const QHash<QString, Nepomuk2::Types::Property>& rps )
65 NepomukResultListEventLoop::NepomukResultListEventLoop(Nepomuk2::Query::QueryServiceClient* parent)
142 void Nepomuk2::Query::QueryServiceClient::Private::_k_handleQueryReply(QDBusPendingCallWatcher* watcher)
179 queryServiceInterface = new org::kde::nepomuk::QueryService( "org.kde.nepomuk.services.nepomukqueryservice",
187 void Nepomuk2::Query::QueryServiceClient::Private::_k_serviceUnregistered(const QString &service)
207 d->queryServiceInterface = new org::kde::nepomuk::QueryService( QLatin1String("org.kde.nepomuk.services.nepomukqueryservice"),
210 d->queryServiceWatcher = new QDBusServiceWatcher(QLatin1String("org.kde.nepomuk.services.nepomukqueryservice"),
214 connect(d->queryServiceWatcher, SIGNAL(serviceRegistered(QString)), this, SLOT(_k_serviceRegistered(QString)));
215 connect(d->queryServiceWatcher, SIGNAL(serviceUnregistered(QString)), this, SLOT(_k_serviceUnregistered(QString)));
233 d->m_pendingCallWatcher = new QDBusPendingCallWatcher(d->queryServiceInterface->asyncCall(QLatin1String("query"),
247 bool Nepomuk2::Query::QueryServiceClient::sparqlQuery( const QString& query, const QHash<QString, Nepomuk2::Types::Property>& requestPropertyMap )
253 d->m_pendingCallWatcher = new QDBusPendingCallWatcher(d->queryServiceInterface->asyncCall(QLatin1String("sparqlQuery"),
274 d->m_pendingCallWatcher = new QDBusPendingCallWatcher(d->queryServiceInterface->asyncCall(QLatin1String("desktopQuery"),
304 QList< Nepomuk2::Query::Result > Nepomuk2::Query::QueryServiceClient::syncQuery(const Query& q, bool* ok)
326 bool Nepomuk2::Query::QueryServiceClient::blockingSparqlQuery( const QString& q, const QHash<QString, Nepomuk2::Types::Property>& requestPropertyMap )
342 QList< Nepomuk2::Query::Result > Nepomuk2::Query::QueryServiceClient::syncSparqlQuery(const QString& q,
382 QList< Nepomuk2::Query::Result > Nepomuk2::Query::QueryServiceClient::syncDesktopQuery(const QString& q, bool* ok)
440 return QDBusConnection::sessionBus().interface()->isServiceRegistered( QLatin1String("org.kde.nepomuk.services.nepomukqueryservice") );
bool blockingDesktopQuery(const QString &query)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: queryserviceclient.cpp:366
bool blockingSparqlQuery(const QString &query, const Nepomuk2::Query::RequestPropertyMap &requestPropertyMap=Nepomuk2::Query::RequestPropertyMap())
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: queryserviceclient.cpp:326
bool blockingQuery(const Query &query)
Start a query using the Nepomuk query service.
Definition: queryserviceclient.cpp:288
bool sparqlQuery(const QString &query, const Nepomuk2::Query::RequestPropertyMap &requestPropertyMap=Nepomuk2::Query::RequestPropertyMap())
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: queryserviceclient.cpp:247
static QList< Nepomuk2::Query::Result > syncQuery(const Query &query, bool *ok=0)
Start a query using the Nepomuk query service.
Definition: queryserviceclient.cpp:304
A request property can be added to a Query to retrieve additional information about the results...
Definition: query.h:287
bool query(const Query &query)
Start a query using the Nepomuk query service.
Definition: queryserviceclient.cpp:227
static bool serviceAvailable()
Check if the Nepomuk query service is running.
Definition: queryserviceclient.cpp:438
Nepomuk2::Types::Property property() const
Definition: query.cpp:221
bool isListingFinished() const
Definition: queryserviceclient.cpp:432
static QList< Nepomuk2::Query::Result > syncDesktopQuery(const QString &query, bool *ok=0)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: queryserviceclient.cpp:382
bool desktopQuery(const QString &query)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: queryserviceclient.cpp:268
void close()
Close the client, thus stop to monitor the query for changes.
Definition: queryserviceclient.cpp:404
QueryServiceClient(QObject *parent=0)
Create a new QueryServiceClient instance.
Definition: queryserviceclient.cpp:198
QString errorMessage() const
The last error message which has been emitted via error() or an empty string if there was no error...
Definition: queryserviceclient.cpp:444
static QList< Nepomuk2::Query::Result > syncSparqlQuery(const QString &query, const Nepomuk2::Query::RequestPropertyMap &requestPropertyMap=Nepomuk2::Query::RequestPropertyMap(), bool *ok=0)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: queryserviceclient.cpp:342
Convenience frontend to the Nepomuk Query DBus Service.
Definition: queryserviceclient.h:58
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.