• 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
resourcelistgenerator.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_RESOURCELISTGENERATOR_H
24 #define NEPOMUK2_BACKUP_RESOURCELISTGENERATOR_H
25 
26 #include <QtCore/QUrl>
27 #include <KJob>
28 
29 #include <Soprano/Model>
30 
31 namespace Nepomuk2 {
32 namespace Backup {
33 
39 class ResourceListGenerator : public KJob
40 {
41  Q_OBJECT
42 public:
43  ResourceListGenerator(Soprano::Model* model, const QString& outputFile, QObject* parent = 0);
44 
45  virtual void start();
46 
47  enum Filter {
48  Filter_None,
49  Filter_FilesAndTags
50  };
51 
52  void setFilter(Filter filter);
53  int resourceCount() const { return m_resourceCount; }
54 private slots:
55  void doJob();
56 
57 private:
58  Soprano::Model *m_model;
59  QString m_outputFile;
60 
61  Filter m_filter;
62  int m_resourceCount;
63 };
64 
65 }
66 }
67 
68 #endif // NEPOMUK2_BACKUP_RESOURCELISTGENERATOR_H
Nepomuk2::Backup::ResourceListGenerator::ResourceListGenerator
ResourceListGenerator(Soprano::Model *model, const QString &outputFile, QObject *parent=0)
Definition: resourcelistgenerator.cpp:35
Nepomuk2::Backup::ResourceListGenerator
This class generates a list of resource URIs that should be backed up.
Definition: resourcelistgenerator.h:39
QObject
Nepomuk2::Backup::ResourceListGenerator::Filter_FilesAndTags
Definition: resourcelistgenerator.h:49
Nepomuk2::Backup::ResourceListGenerator::setFilter
void setFilter(Filter filter)
Definition: resourcelistgenerator.cpp:49
Nepomuk2::Backup::ResourceListGenerator::Filter_None
Definition: resourcelistgenerator.h:48
Nepomuk2::Backup::ResourceListGenerator::Filter
Filter
Definition: resourcelistgenerator.h:47
Nepomuk2::Backup::ResourceListGenerator::start
virtual void start()
Definition: resourcelistgenerator.cpp:44
Nepomuk2::Backup::ResourceListGenerator::resourceCount
int resourceCount() const
Definition: resourcelistgenerator.h:53
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