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

Nepomuk-Core

  • Nepomuk2
  • Query
  • Folder
Signals | Public Member Functions | List of all members
Nepomuk2::Query::Folder Class Reference

#include <folder.h>

Inheritance diagram for Nepomuk2::Query::Folder:
Inheritance graph
[legend]

Signals

void aboutToBeDeleted (Nepomuk2::Query::Folder *)
 
void entriesRemoved (const QList< QUrl > &entries)
 
void entriesRemoved (const QList< Nepomuk2::Query::Result > &entries)
 
void finishedListing ()
 
void newEntries (const QList< Nepomuk2::Query::Result > &entries)
 
void resultCount (int count)
 

Public Member Functions

 Folder (Soprano::Model *model, const Query &query, QObject *parent=0)
 
 Folder (Soprano::Model *model, const QString &sparqlQuery, const RequestPropertyMap &requestProps, QObject *parent=0)
 
 ~Folder ()
 
QList< Result > entries () const
 
int getResultCount () const
 
bool initialListingDone () const
 
bool isSparqlQueryFolder () const
 
QList< FolderConnection * > openConnections () const
 
Query query () const
 
RequestPropertyMap requestPropertyMap () const
 
QString sparqlQuery () const
 

Detailed Description

One search folder which automatically updates itself.

Once all connections to the folder have been deleted, the folder deletes itself.

Definition at line 49 of file folder.h.

Constructor & Destructor Documentation

Nepomuk2::Query::Folder::Folder ( Soprano::Model *  model,
const Query &  query,
QObject *  parent = 0 
)

Definition at line 45 of file folder.cpp.

Nepomuk2::Query::Folder::Folder ( Soprano::Model *  model,
const QString &  sparqlQuery,
const RequestPropertyMap &  requestProps,
QObject *  parent = 0 
)

Definition at line 57 of file folder.cpp.

Nepomuk2::Query::Folder::~Folder ( )

Definition at line 146 of file folder.cpp.

Member Function Documentation

void Nepomuk2::Query::Folder::aboutToBeDeleted ( Nepomuk2::Query::Folder *  )
signal
QList< Nepomuk2::Query::Result > Nepomuk2::Query::Folder::entries ( ) const
Returns
A list of all cached results in the folder. If initial listing is not finished yet, the results found so far are returned.

Definition at line 191 of file folder.cpp.

void Nepomuk2::Query::Folder::entriesRemoved ( const QList< QUrl > &  entries)
signal
void Nepomuk2::Query::Folder::entriesRemoved ( const QList< Nepomuk2::Query::Result > &  entries)
signal
void Nepomuk2::Query::Folder::finishedListing ( )
signal
int Nepomuk2::Query::Folder::getResultCount ( ) const
inline

Get the result count.

This value will not be available right away since it is calculated async.

As soon as the count is ready resultCount() is emitted.

Returns
The result count or -1 in case it is not ready yet.

Definition at line 90 of file folder.h.

bool Nepomuk2::Query::Folder::initialListingDone ( ) const
Returns
true if the initial listing is done, ie. further signals only mean a change in the folder.

Definition at line 197 of file folder.cpp.

bool Nepomuk2::Query::Folder::isSparqlQueryFolder ( ) const
inline

Definition at line 59 of file folder.h.

void Nepomuk2::Query::Folder::newEntries ( const QList< Nepomuk2::Query::Result > &  entries)
signal
QList< Nepomuk2::Query::FolderConnection * > Nepomuk2::Query::Folder::openConnections ( ) const

Definition at line 320 of file folder.cpp.

Query Nepomuk2::Query::Folder::query ( ) const
inline

Definition at line 76 of file folder.h.

Nepomuk2::Query::RequestPropertyMap Nepomuk2::Query::Folder::requestPropertyMap ( ) const

Definition at line 212 of file folder.cpp.

void Nepomuk2::Query::Folder::resultCount ( int  count)
signal

Emitted once the result count is available.

See also
getResultCount()
QString Nepomuk2::Query::Folder::sparqlQuery ( ) const

Definition at line 203 of file folder.cpp.


The documentation for this class was generated from the following files:
  • folder.h
  • folder.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 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