Nepomuk
Nepomuk::File Class Reference
A Nepomuk resource representing a file. More...
#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 |
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:
KDE 4.6 API Reference