add more spacing
[personal-kdebase.git] / runtime / nepomuk / services / storage / modelcopyjob.h
blobebe23cc40054c945659a2382e46e2050e4099ee6
1 /*
3 * $Id: sourceheader 511311 2006-02-19 14:51:05Z trueg $
5 * This file is part of the Nepomuk KDE project.
6 * Copyright (C) 2006-2007 Sebastian Trueg <trueg@kde.org>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 * See the file "COPYING" for the exact licensing terms.
15 #ifndef _MODEL_COPY_JOB_H_
16 #define _MODEL_COPY_JOB_H_
18 #include <KJob>
20 #include <QtCore/QTimer>
22 #include <Soprano/StatementIterator>
24 namespace Soprano {
25 class Model;
28 namespace Nepomuk {
29 class ModelCopyJob : public KJob
31 Q_OBJECT
33 public:
34 ModelCopyJob( Soprano::Model* source, Soprano::Model* dest, QObject* parent = 0 );
35 ~ModelCopyJob();
37 Soprano::Model* source() const { return m_source; }
38 Soprano::Model* dest() const { return m_dest; }
40 public Q_SLOTS:
41 void start();
43 private Q_SLOTS:
44 void slotCopy();
46 private:
47 Soprano::Model* m_source;
48 Soprano::Model* m_dest;
50 Soprano::StatementIterator m_iterator;
51 int m_size;
52 int m_done;
53 bool m_allCopied;
55 QTimer m_timer;
59 #endif