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

Nepomuk

  • Nepomuk
  • File
Public Member Functions

Nepomuk::File Class Reference

A Nepomuk resource representing a file. More...

#include <Nepomuk/File>

Inheritance diagram for Nepomuk::File:
Inheritance graph
[legend]

List of all members.

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.

Author:
Sebastian Trueg <trueg@kde.org>
Since:
4.6

Definition at line 42 of file file.h.


Constructor & Destructor Documentation

Nepomuk::File::File ( const KUrl &  url = KUrl(),
ResourceManager *  manager = 0 
)

Create a new file resource.

Parameters:
urlThe URL to the file.
managerThe resource manager to use. This allows to mix resources from different managers and, thus, different models.
Nepomuk::File::File ( const Resource &  other)

Construct from a Resource.

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:
  • file.h

Nepomuk

Skip menu "Nepomuk"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal