Nepomuk
Nepomuk::File Class Reference
#include <Nepomuk/File>
Inheritance diagram for Nepomuk::File:
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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.