Nepomuk-Core
queryservice.cpp
Go to the documentation of this file.
96 QDBusObjectPath Nepomuk2::Query::QueryService::query( const QString& query, const QDBusMessage& msg )
106 return ( new FolderConnection( folder ) )->registerDBusObject( msg.service(), ++m_folderConnectionCnt );
111 QDBusObjectPath Nepomuk2::Query::QueryService::desktopQuery( const QString& query, const QDBusMessage& msg )
117 con.send( msg.createErrorReply( QDBusError::InvalidArgs, i18n("Invalid desktop query: '%1'", query) ) );
123 return ( new FolderConnection( folder ) )->registerDBusObject( msg.service(), ++m_folderConnectionCnt );
129 Nepomuk2::Query::RequestPropertyMap decodeRequestPropertiesList( const RequestPropertyMapDBus& requestProps )
139 QDBusObjectPath Nepomuk2::Query::QueryService::sparqlQuery( const QString& sparql, const RequestPropertyMapDBus& requestProps, const QDBusMessage& msg )
146 con.send( msg.createErrorReply( QDBusError::InvalidArgs, i18n("Invalid SPARQL query: '%1'", sparql) ) );
152 return ( new FolderConnection( folder ) )->registerDBusObject( msg.service(), ++m_folderConnectionCnt );
175 Nepomuk2::Query::Folder* Nepomuk2::Query::QueryService::getFolder( const QString& query, const Nepomuk2::Query::RequestPropertyMap& requestProps )
Q_SCRIPTABLE QDBusObjectPath query(const QString &query, const QDBusMessage &msg)
Create a query folder from encoded query query.
Definition: queryservice.cpp:96
Q_SCRIPTABLE QDBusObjectPath sparqlQuery(const QString &query, const RequestPropertyMapDBus &requestProps, const QDBusMessage &msg)
Create a query folder from SPARQL query string query.
Definition: queryservice.cpp:139
QHash< QString, Nepomuk2::Types::Property > RequestPropertyMap
Convinience definition for request property mappings as used in QueryServiceClient::sparqlQuery() and...
Definition: query.h:41
static Query parseQuery(const QString &query)
Convenience method to quickly parse a query without creating an object.
Definition: queryparser.cpp:815
One search folder which automatically updates itself.
Definition: folder.h:49
Q_SCRIPTABLE QDBusObjectPath desktopQuery(const QString &query, const QDBusMessage &msg)
Create a query folder from desktop query string query which needs to be parsable by QueryParser...
Definition: queryservice.cpp:111
static QThreadPool * searchThreadPool()
Definition: queryservice.cpp:90
Definition: queryservice.h:43
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.