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

KIO

Signals | Public Member Functions | List of all members
KFileMetaDataReader Class Reference

#include <kfilemetadatareader_p.h>

Inheritance diagram for KFileMetaDataReader:
Inheritance graph
[legend]

Signals

void finished ()
 

Public Member Functions

 KFileMetaDataReader (const QList< KUrl > &urls, QObject *parent=0)
 
virtual ~KFileMetaDataReader ()
 
QHash< KUrl, Nepomuk::Variant > metaData () const
 
bool readContextData () const
 
void setReadContextData (bool read)
 
void start ()
 

Detailed Description

Provides metadata extracted from files.

The reading of the metadata is done asynchronously in a process. This assures that the caller won't get blocked and also prevents that the caller crashes in case if a metadata-analyzer plugin is instable.

Since
4.7

Definition at line 43 of file kfilemetadatareader_p.h.

Constructor & Destructor Documentation

KFileMetaDataReader::KFileMetaDataReader ( const QList< KUrl > &  urls,
QObject *  parent = 0 
)
explicit
Parameters
urlsList of files where the metadata should be extracted from.
parentParent object.

Definition at line 99 of file kfilemetadatareader.cpp.

KFileMetaDataReader::~KFileMetaDataReader ( )
virtual

Definition at line 116 of file kfilemetadatareader.cpp.

Member Function Documentation

void KFileMetaDataReader::finished ( )
signal

Is emitted if the reading of the metadata inside a custom process has been finished.

The method metaData() can be used afterwards to access the metadata.

QHash< KUrl, Nepomuk::Variant > KFileMetaDataReader::metaData ( ) const
Returns
The read metadata of the given files. The method provides valid values after the signal finished() has been emitted. If it is invoked before an empty hash-table will be returned.

Definition at line 141 of file kfilemetadatareader.cpp.

bool KFileMetaDataReader::readContextData ( ) const

Definition at line 126 of file kfilemetadatareader.cpp.

void KFileMetaDataReader::setReadContextData ( bool  read)

If read is set to true also metadata that is persisted outside the files itself (like e.g.

rating, comments or tags) are read. Per default the reading of context data is enabled. Pass false if only the metadata persisted inside the file should be read.

Definition at line 121 of file kfilemetadatareader.cpp.

void KFileMetaDataReader::start ( )

Starts the reading of the metadata inside a custom process.

The signal finished() will get emitted if the reading has been finished. Use metaData() to access the read metadata.

Definition at line 131 of file kfilemetadatareader.cpp.


The documentation for this class was generated from the following files:
  • kfilemetadatareader_p.h
  • kfilemetadatareader.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • 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