• 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
  • backup
graphgenerator.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 NEPOMUK2_BACKUP_GRAPHGENERATOR_H
24 #define NEPOMUK2_BACKUP_GRAPHGENERATOR_H
25 
26 #include <KJob>
27 #include <Soprano/Model>
28 
29 namespace Nepomuk2 {
30 namespace Backup {
31 
37 class GraphGenerator : public KJob
38 {
39  Q_OBJECT
40 public:
41  GraphGenerator(Soprano::Model* model, const QString& inputFile,
42  const QString& outputFile, QObject* parent);
43 
44  virtual void start();
45  int numStatements();
46 
47  void setInputCount(int count) { m_inputCount = count; }
48 private slots:
49  void doJob();
50 
51 private:
52  Soprano::Model* m_model;
53 
54  QString m_inputFile;
55  QString m_outputFile;
56 
57  int m_numStatements;
58  int m_inputCount;
59 };
60 }
61 }
62 
63 #endif // NEPOMUK2_BACKUP_GRAPHGENERATOR_H
Nepomuk2::Backup::GraphGenerator::numStatements
int numStatements()
Definition: graphgenerator.cpp:217
QObject
Nepomuk2::Backup::GraphGenerator::setInputCount
void setInputCount(int count)
Definition: graphgenerator.h:47
Nepomuk2::Backup::GraphGenerator
Takes a list of statements and merges the graphs together into the least possible number...
Definition: graphgenerator.h:37
Nepomuk2::Backup::GraphGenerator::GraphGenerator
GraphGenerator(Soprano::Model *model, const QString &inputFile, const QString &outputFile, QObject *parent)
Definition: graphgenerator.cpp:39
Nepomuk2::Backup::GraphGenerator::start
virtual void start()
Definition: graphgenerator.cpp:49
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