• 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
folderconnection.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2008-2010 Sebastian Trueg <trueg@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #ifndef _NEPOMUK_VIRTUAL_FOLDER_CONNECTION_H_
20 #define _NEPOMUK_VIRTUAL_FOLDER_CONNECTION_H_
21 
22 #include <QtCore/QObject>
23 #include <QtDBus/QDBusObjectPath>
24 
25 class QUrl;
26 class QDBusServiceWatcher;
27 
28 namespace Nepomuk2 {
29  namespace Query {
30 
31  class Result;
32  class ResultIterator;
33  class Folder;
34 
35  class FolderConnection : public QObject
36  {
37  Q_OBJECT
38 
39  public:
40  FolderConnection( Folder* parentFolder );
41  ~FolderConnection();
42 
43  QDBusObjectPath registerDBusObject( const QString& dbusClient, int id );
44 
45  public Q_SLOTS:
47  void list();
48 
50  void listen();
51 
53  void close();
54 
57  bool isListingFinished() const;
58 
60  QString queryString() const;
61 
62  Q_SIGNALS:
63  void newEntries( const QList<Nepomuk2::Query::Result>& );
64  void entriesRemoved( const QStringList& );
65  void entriesRemoved( const QList<Nepomuk2::Query::Result>& entries );
66 
67  void resultCount( int count );
68  void totalResultCount( int count );
69  void finishedListing();
70 
71  private Q_SLOTS:
72  //void slotNewEntries( const QList<Nepomuk2::Query::Result>& results );
73  void slotEntriesRemoved( const QList<Nepomuk2::Query::Result>& entries );
74  void slotFinishedListing();
75 
76  private:
77  Folder* m_folder;
78  QDBusServiceWatcher* m_serviceWatcher;
79  };
80  }
81 }
82 
83 #endif
Nepomuk2::Query::FolderConnection::queryString
QString queryString() const
Definition: folderconnection.cpp:143
Nepomuk2::Query::FolderConnection::FolderConnection
FolderConnection(Folder *parentFolder)
Definition: folderconnection.cpp:32
Nepomuk2::Query::FolderConnection::resultCount
void resultCount(int count)
Nepomuk2::Query::FolderConnection::listen
void listen()
internal API used by the kio kded module to listen for changes
Definition: folderconnection.cpp:85
Nepomuk2::Query::FolderConnection::list
void list()
List all entries in the folder, used by the public kdelibs API.
Definition: folderconnection.cpp:46
QObject
Nepomuk2::Query::FolderConnection::entriesRemoved
void entriesRemoved(const QStringList &)
Nepomuk2::Query::FolderConnection::~FolderConnection
~FolderConnection()
Definition: folderconnection.cpp:40
Nepomuk2::Query::FolderConnection::isListingFinished
bool isListingFinished() const
Definition: folderconnection.cpp:137
Nepomuk2::Query::FolderConnection::totalResultCount
void totalResultCount(int count)
Nepomuk2::Query::FolderConnection
Definition: folderconnection.h:35
Nepomuk2::Query::FolderConnection::close
void close()
close the connection to the folder. Will delete this connection
Definition: folderconnection.cpp:130
Nepomuk2::Query::FolderConnection::registerDBusObject
QDBusObjectPath registerDBusObject(const QString &dbusClient, int id)
Definition: folderconnection.cpp:149
Nepomuk2::Query::Folder
One search folder which automatically updates itself.
Definition: folder.h:49
Nepomuk2::Query::FolderConnection::finishedListing
void finishedListing()
Nepomuk2::Query::FolderConnection::newEntries
void newEntries(const QList< Nepomuk2::Query::Result > &)
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