• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

NepomukDaemons

queryserviceclient.h

Go to the documentation of this file.
00001 /*
00002    Copyright (c) 2008 Sebastian Trueg <trueg@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef _NEPOMUK_QUERY_SERVICE_CLIENT_H_
00020 #define _NEPOMUK_QUERY_SERVICE_CLIENT_H_
00021 
00022 #include <QtCore/QObject>
00023 
00024 class QUrl;
00025 
00026 namespace Nepomuk {
00027     namespace Search {
00028 
00029         class Result;
00030         class Query;
00031 
00047         class QueryServiceClient : public QObject
00048         {
00049             Q_OBJECT
00050 
00051         public:
00055             QueryServiceClient( QObject* parent = 0 );
00056 
00060             ~QueryServiceClient();
00061 
00067             static bool serviceAvailable();
00068 
00069         public Q_SLOTS:
00081             bool query( const QString& query );
00082 
00092             bool query( const Query& query );
00093 
00110             bool blockingQuery( const QString& query );
00111 
00117             bool blockingQuery( const Query& query );
00118 
00126             void close();
00127 
00128         Q_SIGNALS:
00133             void newEntries( const QList<Nepomuk::Search::Result>& entries );
00134 
00140             void entriesRemoved( const QList<QUrl>& entries );
00141 
00147             void finishedListing();
00148 
00149         private:
00150             class Private;
00151             Private* const d;
00152 
00153             Q_PRIVATE_SLOT( d, void _k_entriesRemoved( const QStringList& ) )
00154             Q_PRIVATE_SLOT( d, void _k_finishedListing() )
00155         };
00156     }
00157 }
00158 
00159 #endif

NepomukDaemons

Skip menu "NepomukDaemons"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KCMShell
  • KNotify
  • KStyles
  • Nepomuk Daemons
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal