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

NepomukDaemons

modelcopyjob.h

Go to the documentation of this file.
00001 /*
00002  *
00003  * $Id: sourceheader 511311 2006-02-19 14:51:05Z trueg $
00004  *
00005  * This file is part of the Nepomuk KDE project.
00006  * Copyright (C) 2006-2007 Sebastian Trueg <trueg@kde.org>
00007  *
00008  * This program is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  * See the file "COPYING" for the exact licensing terms.
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

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.4
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