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

Nepomuk-Core

  • Nepomuk2
  • File
Public Member Functions | List of all members
Nepomuk2::File Class Reference

#include <Nepomuk2/File>

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

Public Member Functions

 File (const KUrl &url=KUrl())
 
 File (const Resource &other)
 
 ~File ()
 
File dirResource () const
 
File & operator= (const KUrl &url)
 
KUrl url () const
 
- Public Member Functions inherited from Nepomuk2::Resource
 Resource ()
 
 Resource (const Resource &)
 
 Resource (const QString &pathOrIdentifier, const QUrl &type=QUrl())
 
 Resource (const QUrl &uri, const QUrl &type=QUrl())
 
 Resource (ResourceData *)
 
virtual ~Resource ()
 
void addIdentifier (const QString &value)
 
void addIsRelated (const Resource &value)
 
void addProperty (const QUrl &uri, const Variant &value)
 
void addSymbol (const QString &value)
 
void addTag (const Tag &value)
 
void addType (const QUrl &type)
 
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 hasType (const QUrl &typeUri) const
 
QStringList identifiers () const
 
void increaseUsageCount ()
 
bool isFile () const
 
QList< Resource > isRelatedOf () const
 
QList< Resource > isRelateds () const
 
bool isValid () const
 
QString label () const
 
bool operator!= (const Resource &) const
 
Resource & operator= (const Resource &other)
 
Resource & operator= (const QUrl &uri)
 
bool operator== (const Resource &) const
 
QHash< QUrl, Variant > properties () const
 
Variant property (const QUrl &uri) const
 
quint32 rating () const
 
void remove ()
 
void removeProperty (const QUrl &uri)
 
void removeProperty (const QUrl &uri, const Variant &value)
 
void setDescription (const QString &value)
 
void setIdentifiers (const QStringList &value)
 
void setIsRelateds (const QList< Resource > &value)
 
void setLabel (const QString &value)
 
void setProperty (const QUrl &uri, const Variant &value)
 
void setRating (const quint32 &value)
 
void setSymbols (const QStringList &value)
 
void setTags (const QList< Tag > &value)
 
void setTypes (const QList< QUrl > &types)
 
void setWatchEnabled (bool status)
 
QStringList symbols () const
 
QList< Tag > tags () const
 
File toFile () const
 
QUrl type () const
 
QList< QUrl > types () const
 
QUrl uri () const
 
int usageCount () const
 
bool watchEnabled ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Nepomuk2::Resource
static Resource fromResourceUri (const KUrl &uri, const Nepomuk2::Types::Class &type=Nepomuk2::Types::Class())
 

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.nosp@m.@kde.nosp@m..org
Since
4.6

Definition at line 41 of file file.h.

Constructor & Destructor Documentation

Nepomuk2::File::File ( const KUrl &  url = KUrl())

Create a new file resource.

Parameters
urlThe URL to the file.

Definition at line 27 of file file.cpp.

Nepomuk2::File::File ( const Resource &  other)

Construct from a Resource.

Definition at line 33 of file file.cpp.

Nepomuk2::File::~File ( )

Desctructor.

Definition at line 39 of file file.cpp.

Member Function Documentation

Nepomuk2::File Nepomuk2::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.

Definition at line 57 of file file.cpp.

Nepomuk2::File & Nepomuk2::File::operator= ( const KUrl &  url)

Assignment operator.

Definition at line 44 of file file.cpp.

KUrl Nepomuk2::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.

Definition at line 51 of file file.cpp.


The documentation for this class was generated from the following files:
  • file.h
  • file.cpp
This file is part of the KDE documentation.
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.

Nepomuk-Core

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal