• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

  • sources
  • kde-4.12
  • kdelibs
  • nepomuk-core
  • services
  • storage
graphmigrationjob.h
Go to the documentation of this file.
1 /*
2  * <one line to give the library's name and an idea of what it does.>
3  * Copyright 2013 Vishesh Handa <me@vhanda.in>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of
8  * the License or (at your option) version 3 or any later version
9  * accepted by the membership of KDE e.V. (or its successor approved
10  * by the membership of KDE e.V.), which shall act as a proxy
11  * defined in Section 14 of version 3 of the license.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef GRAPHMIGRATIONJOB_H
24 #define GRAPHMIGRATIONJOB_H
25 
26 #include <KJob>
27 #include <QtCore/QUrl>
28 
29 namespace Soprano {
30  class Model;
31 }
32 
33 namespace Nepomuk2 {
34 
35 class GraphMigrationJob : public KJob
36 {
37  Q_OBJECT
38 public:
39  GraphMigrationJob(Soprano::Model* model, QObject* parent = 0);
40 
41  virtual void start();
42 private slots:
43  void migrateData();
44 
45 private:
46  Soprano::Model* m_model;
47 
48  void mergeAgents();
49  void mergeAgents(const QList<QUrl>& agents);
50 
51  void copyStatements(const QUrl& from, const QUrl& to);
52  void deleteGraph(const QUrl& g);
53 
54  void migrateGraph(const QUrl& graph, const QHash<QUrl, QUrl>& graphCache);
55 
56  int instanceBaseGraphCount();
57  int discardableInstanceBaseGraphCount();
58 
59  QList<QUrl> m_apps;
60  QUrl m_nepomukGraph;
61 };
62 }
63 
64 #endif // GRAPHMIGRATIONJOB_H
QHash
QObject
Nepomuk2::GraphMigrationJob::start
virtual void start()
Definition: graphmigrationjob.cpp:43
Nepomuk2::GraphMigrationJob
Definition: graphmigrationjob.h:35
Nepomuk2::GraphMigrationJob::GraphMigrationJob
GraphMigrationJob(Soprano::Model *model, QObject *parent=0)
Definition: graphmigrationjob.cpp:37
KJob
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Nepomuk-Core

Skip menu "Nepomuk-Core"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal