NepomukDaemons
modelcopyjob.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef _MODEL_COPY_JOB_H_
00016 #define _MODEL_COPY_JOB_H_
00017
00018 #include <KJob>
00019
00020 #include <QtCore/QTimer>
00021
00022 #include <Soprano/StatementIterator>
00023
00024 namespace Soprano {
00025 class Model;
00026 }
00027
00028 namespace Nepomuk {
00029 class ModelCopyJob : public KJob
00030 {
00031 Q_OBJECT
00032
00033 public:
00034 ModelCopyJob( Soprano::Model* source, Soprano::Model* dest, QObject* parent = 0 );
00035 ~ModelCopyJob();
00036
00037 Soprano::Model* source() const { return m_source; }
00038 Soprano::Model* dest() const { return m_dest; }
00039
00040 public Q_SLOTS:
00041 void start();
00042
00043 private Q_SLOTS:
00044 void slotCopy();
00045
00046 private:
00047 Soprano::Model* m_source;
00048 Soprano::Model* m_dest;
00049
00050 Soprano::StatementIterator m_iterator;
00051 int m_size;
00052 int m_done;
00053 bool m_allCopied;
00054
00055 QTimer m_timer;
00056 };
00057 }
00058
00059 #endif