Nepomuk-Core
#include <folder.h>
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.
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
|
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.
|
signal |
|
signal |
|
signal |
|
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.
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.
|
inline |
|
signal |
QList< Nepomuk2::Query::FolderConnection * > Nepomuk2::Query::Folder::openConnections | ( | ) | const |
Definition at line 320 of file folder.cpp.
Nepomuk2::Query::RequestPropertyMap Nepomuk2::Query::Folder::requestPropertyMap | ( | ) | const |
Definition at line 212 of file folder.cpp.
|
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:
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.