Nepomuk
Nepomuk::File Class Reference
#include <Nepomuk/File>
Inheritance diagram for Nepomuk::File:
Public Member Functions | |
File (const KUrl &url=KUrl(), ResourceManager *manager=0) | |
File (const Resource &other) | |
~File () | |
File | dirResource () const |
File & | operator= (const KUrl &url) |
KUrl | url () const |
Public Member Functions inherited from Nepomuk::Resource | |
Resource () | |
Resource (ResourceManager *manager) | |
Resource (const Resource &) | |
Resource (const QString &pathOrIdentifier, const QUrl &type=QUrl()) | |
Resource (const QString &pathOrIdentifier, const QUrl &type, ResourceManager *manager) | |
Resource (const QString &pathOrIdentifier, const QString &type) | |
Resource (const QUrl &uri, const QUrl &type=QUrl()) | |
Resource (const QUrl &uri, const QUrl &type, ResourceManager *manager) | |
Resource (ResourceData *) | |
virtual | ~Resource () |
void | addAltLabel (const QString &value) |
void | addAnnotation (const Resource &value) |
void | addIdentifier (const QString &value) |
void | addIsRelated (const Resource &value) |
void | addIsTopicOf (const Resource &value) |
void | addProperty (const QUrl &uri, const Variant &value) |
void | addSymbol (const QString &value) |
void | addTag (const Tag &value) |
void | addTopic (const Resource &value) |
void | addType (const QUrl &type) |
QHash< QString, Variant > | allProperties () const |
QStringList | altLabels () const |
QList< Resource > | annotationOf () const |
QList< Resource > | annotations () const |
QString | className () const |
QString | description () const |
bool | exists () const |
QString | genericDescription () const |
QString | genericIcon () const |
QString | genericLabel () const |
bool | hasProperty (const QUrl &uri) const |
bool | hasProperty (const Types::Property &p, const Variant &v) const |
bool | hasProperty (const QString &uri) const |
bool | hasType (const QUrl &typeUri) const |
QStringList | identifiers () const |
void | increaseUsageCount () |
bool | isFile () const |
QList< Resource > | isRelatedOf () const |
QList< Resource > | isRelateds () const |
QList< Resource > | isTopicOfs () const |
bool | isValid () const |
QString | label () const |
ResourceManager * | manager () const |
bool | operator!= (const Resource &) const |
Resource & | operator= (const Resource &other) |
Resource & | operator= (const QUrl &uri) |
bool | operator== (const Resource &) const |
Thing | pimoThing () |
QHash< QUrl, Variant > | properties () const |
Variant | property (const QUrl &uri) const |
Variant | property (const QString &uri) const |
quint32 | rating () const |
void | remove () |
void | removeProperty (const QUrl &uri) |
void | removeProperty (const QUrl &uri, const Variant &value) |
void | removeProperty (const QString &uri) |
QUrl | resourceType () const |
QUrl | resourceUri () const |
void | setAltLabels (const QStringList &value) |
void | setAnnotations (const QList< Resource > &value) |
void | setDescription (const QString &value) |
void | setIdentifiers (const QStringList &value) |
void | setIsRelateds (const QList< Resource > &value) |
void | setIsTopicOfs (const QList< Resource > &value) |
void | setLabel (const QString &value) |
void | setProperty (const QUrl &uri, const Variant &value) |
void | setProperty (const QString &uri, const Variant &value) |
void | setRating (const quint32 &value) |
void | setSymbols (const QStringList &value) |
void | setTags (const QList< Tag > &value) |
void | setTopics (const QList< Resource > &value) |
void | setTypes (const QList< QUrl > &types) |
QStringList | symbols () const |
QList< Tag > | tags () const |
File | toFile () const |
QList< Resource > | topics () const |
QString | type () const |
QList< QUrl > | types () const |
QString | uri () const |
int | usageCount () const |
Additional Inherited Members | |
Static Public Member Functions inherited from Nepomuk::Resource | |
static QList< Resource > | allResources () |
static QString | altLabelUri () |
static QString | annotationUri () |
static QString | descriptionUri () |
static Resource | fromResourceUri (const KUrl &uri, const Nepomuk::Types::Class &type=Nepomuk::Types::Class(), ResourceManager *manager=0) |
static QString | identifierUri () |
static QString | isRelatedUri () |
static QString | isTopicOfUri () |
static QString | labelUri () |
static QString | ratingUri () |
static QString | symbolUri () |
static QString | tagUri () |
static QString | topicUri () |
Detailed Description
A Nepomuk resource representing a file.
File is a convinience class which allows to easily handle file resources which are sort of a special case in Nepomuk.
- Since
- 4.6
Constructor & Destructor Documentation
Nepomuk::File::File | ( | const KUrl & | url = KUrl() , |
ResourceManager * | manager = 0 |
||
) |
Create a new file resource.
- Parameters
-
url The URL to the file. manager The resource manager to use. This allows to mix resources from different managers and, thus, different models.
Nepomuk::File::~File | ( | ) |
Desctructor.
Member Function Documentation
File Nepomuk::File::dirResource | ( | ) | const |
Returns the resource representing the containing folder, ie.
the folder containing this file resource.
- Returns
- The resource representing the folder or an invalid resource in case this resource is invalid or not a file.
File& Nepomuk::File::operator= | ( | const KUrl & | url | ) |
Assignment operator.
KUrl Nepomuk::File::url | ( | ) | const |
The URL of the file.
Be aware that this differs from Resource::resourceUri() and is stored as nie:url in the Nepomuk database.
- Returns
- The URL of the file or an empty KUrl in case this resource does not represent a file.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.