NepomukDaemons
graphretriever.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
00020
00021 #ifndef _NEPOMUK_GRAPHRETRIEVER_H_
00022 #define _NEPOMUK_GRAPHRETRIEVER_H_
00023
00024 #include <KJob>
00025
00026 class QString;
00027 class QUrl;
00028
00029 namespace Soprano {
00030 class Model;
00031 class StatementIterator;
00032 }
00033 namespace KIO {
00034 class Job;
00035 }
00036
00037 namespace Nepomuk
00038 {
00039
00054 class GraphRetriever : public KJob
00055 {
00056 Q_OBJECT
00057
00058 public:
00064 GraphRetriever( QObject* parent = 0 );
00065
00069 ~GraphRetriever();
00070
00071 static GraphRetriever* retrieve( const QUrl& uri );
00072
00073 void setUrl( const QUrl& url );
00074
00075 QUrl url() const;
00076
00083 void start();
00084
00091 Soprano::Model* model() const;
00092
00093 Soprano::StatementIterator statements() const;
00094
00095 private Q_SLOTS:
00099 void httpRequestFinished( KJob* );
00100
00101 private:
00102 class Private;
00103 Private* const d;
00104 };
00105
00106 }
00107
00108 #endif