• 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
  • query
countqueryrunnable.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2010 Sebastian Trueg <trueg@kde.org>
3 
4  This program is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public License as
6  published by the Free Software Foundation; either version 2 of
7  the License or (at your option) version 3 or any later version
8  accepted by the membership of KDE e.V. (or its successor approved
9  by the membership of KDE e.V.), which shall act as a proxy
10  defined in Section 14 of version 3 of the license.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 #ifndef _NEPOMUK_COUNT_QUERY_RUNNABLE_H_
22 #define _NEPOMUK_COUNT_QUERY_RUNNABLE_H_
23 
24 #include <QtCore/QRunnable>
25 #include <QtCore/QPointer>
26 #include <QtCore/QMutex>
27 
28 #include "folder.h"
29 
30 namespace Nepomuk2 {
31  namespace Query {
32  class Folder;
33 
34  class CountQueryRunnable : public QObject, public QRunnable
35  {
36  Q_OBJECT
37  public:
38  CountQueryRunnable( Soprano::Model* model, const Query& query );
39  ~CountQueryRunnable();
40 
44  void cancel();
45 
46  void run();
47  Q_SIGNALS:
48  void countQueryFinished( int count );
49 
50  private:
51  Soprano::Model* m_model;
52 
53  QString m_countQuery;
54  bool m_cancelled;
55  };
56  }
57 }
58 
59 #endif
QObject
QRunnable
Nepomuk2::Query::CountQueryRunnable::run
void run()
Definition: countqueryrunnable.cpp:57
Nepomuk2::Query::CountQueryRunnable::~CountQueryRunnable
~CountQueryRunnable()
Definition: countqueryrunnable.cpp:46
Nepomuk2::Query::CountQueryRunnable::CountQueryRunnable
CountQueryRunnable(Soprano::Model *model, const Query &query)
Definition: countqueryrunnable.cpp:36
Nepomuk2::Query::Query
A Nepomuk desktop query.
Definition: query.h:76
Nepomuk2::Query::CountQueryRunnable
Definition: countqueryrunnable.h:34
folder.h
Nepomuk2::Query::CountQueryRunnable::countQueryFinished
void countQueryFinished(int count)
Nepomuk2::Query::CountQueryRunnable::cancel
void cancel()
Cancel the search and detach it from the folder.
Definition: countqueryrunnable.cpp:51
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