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

kget

  • sources
  • kde-4.12
  • kdenetwork
  • kget
  • core
nepomukcontroller.h
Go to the documentation of this file.
1 /***************************************************************************
2 * Copyright (C) 2010 Matthias Fuchs <mat69@gmx.net> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
18 ***************************************************************************/
19 
20 #ifndef NEPOMUKCONTROLLER
21 #define NEPOMUKCONTROLLER
22 
23 #include "../kget_export.h"
24 
25 #include <Nepomuk2/Vocabulary/NFO>
26 
27 #include <QtCore/QMutex>
28 #include <QtCore/QThread>
29 
30 #include <KUrl>
31 
32 class KJob;
33 
34 namespace Nepomuk2 {
35  class Variant;
36  class Tag;
37 }
38 
44 class KGET_EXPORT NepomukController : public QThread
45 {
46  Q_OBJECT
47 
48  public:
49  explicit NepomukController(QObject *parent = 0);
50  ~NepomukController();
51 
52  void setProperty(const QList<QUrl> &uris, QPair<QUrl, Nepomuk2::Variant> &property, const QUrl &uriType = Nepomuk2::Vocabulary::NFO::FileDataObject());
53  void setProperties(const QList<QUrl> &uris, const QList<QPair<QUrl, Nepomuk2::Variant> > &properties, const QUrl &uriType = Nepomuk2::Vocabulary::NFO::FileDataObject());
54  void addTags(const QList<QUrl> &uris, const QList<Nepomuk2::Tag> &tags, const QUrl &uriType = Nepomuk2::Vocabulary::NFO::FileDataObject());
55 
61  void removeResource(const QList<KUrl> &uris);
62 
63  protected:
64  void run();
65 
66  private:
67  bool continueToRun();
68 
69 
70  private:
71  QMutex m_mutex;
72  QList<KUrl> m_uris;
73 
74  private slots:
75  void nepomukError(KJob * job);
76 };
77 #endif
QObject
NepomukController
Definition: nepomukcontroller.h:44
KGET_EXPORT
#define KGET_EXPORT
Definition: kget_export.h:24
QThread
KJob
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

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