Plasma
queryclientwrapper.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _NEPOMUK_QUERY_CLIENT_WRAPPER_H_
00020 #define _NEPOMUK_QUERY_CLIENT_WRAPPER_H_
00021
00022 #include <QtCore/QObject>
00023 #include <QtCore/QList>
00024
00025 #include "result.h"
00026
00027 namespace Plasma {
00028 class RunnerContext;
00029 }
00030
00031 namespace Nepomuk {
00032
00033 class SearchRunner;
00034 namespace Search {
00035 class QueryServiceClient;
00036 }
00037
00044 class QueryClientWrapper : public QObject
00045 {
00046 Q_OBJECT
00047
00048 public:
00049 QueryClientWrapper( SearchRunner* runner, Plasma::RunnerContext* context );
00050 ~QueryClientWrapper();
00051
00052 void runQuery();
00053
00054 private Q_SLOTS:
00055 void slotNewEntries( const QList<Nepomuk::Search::Result>& );
00056
00057 private:
00058 Search::QueryServiceClient* m_queryServiceClient;
00059
00060 SearchRunner* m_runner;
00061 Plasma::RunnerContext* m_runnerContext;
00062 };
00063 }
00064
00065 #endif