KIO
#include <kfilemetainfo.h>
Public Types | |
enum | What { Fastest = 0x1, TechnicalInfo = 0x4, ContentInfo = 0x8, ExternalSources = 0x10, Thumbnail = 0x20, LinkedData = 0x80, Everything = 0xffff } |
Public Member Functions | |
KFileMetaInfo (const QString &path, const QString &mimetype=QString(), WhatFlags w=Everything) | |
KFileMetaInfo (const KUrl &url) | |
KFileMetaInfo () | |
KFileMetaInfo (const KFileMetaInfo &) | |
~KFileMetaInfo () | |
bool | applyChanges () |
KFileMetaInfoGroupList | groups () const |
bool | isValid () const |
KFileMetaInfoItem & | item (const QString &key) |
const KFileMetaInfoItem & | item (const QString &key) const |
const QHash< QString, KFileMetaInfoItem > & | items () const |
QStringList | keys () const |
KFileMetaInfo & | operator= (KFileMetaInfo const &kfmi) |
KFileMetaInfoGroupList | preferredGroups () const |
QStringList | preferredKeys () const |
KFileMetaInfoGroupList | supportedGroups () const |
QStringList | supportedKeys () const |
const KUrl & | url () const |
Friends | |
QDataStream & | operator<< (QDataStream &s, const KFileMetaInfo &) |
QDataStream & | operator>> (QDataStream &s, KFileMetaInfo &) |
Detailed Description
KFileMetaInfo provides metadata extracted from a file or other resource.
When instantiating an instance of this class, the metadata related to it will be retrieved and stored in the instance. The data can be inspected through KFileMetaInfoItem objects.
Definition at line 56 of file kfilemetainfo.h.
Member Enumeration Documentation
enum KFileMetaInfo::What |
This is used to specify what a KFileMetaInfo object should read, so you can specify if you want to read "expensive" items or not.
This is like a preset which can be customized by passing additional parameters to constructors.
Definition at line 64 of file kfilemetainfo.h.
Constructor & Destructor Documentation
|
explicit |
Construct a KFileMetaInfo that contains metainformation about the resource pointed to by path
.
When w is not Everything, a limit of 64kbytes is imposed on the file size.
KFileMetaInfo::KFileMetaInfo | ( | const KUrl & | url | ) |
Construct a KFileMetaInfo that contains metainformation about the resource pointed to by url
.
- Note
- that c'tor is not thread-safe
Definition at line 295 of file kfilemetainfo.cpp.
KFileMetaInfo::KFileMetaInfo | ( | ) |
Construct an empty, invalid KFileMetaInfo instance.
Definition at line 308 of file kfilemetainfo.cpp.
KFileMetaInfo::KFileMetaInfo | ( | const KFileMetaInfo & | k | ) |
Construct a KFileMetaInfo instance from another one.
Definition at line 312 of file kfilemetainfo.cpp.
KFileMetaInfo::~KFileMetaInfo | ( | ) |
Destructor.
Definition at line 322 of file kfilemetainfo.cpp.
Member Function Documentation
bool KFileMetaInfo::applyChanges | ( | ) |
Save the changes made to this KFileMetaInfo instance.
Definition at line 326 of file kfilemetainfo.cpp.
KFileMetaInfoGroupList KFileMetaInfo::groups | ( | ) | const |
bool KFileMetaInfo::isValid | ( | ) | const |
Definition at line 372 of file kfilemetainfo.cpp.
KFileMetaInfoItem & KFileMetaInfo::item | ( | const QString & | key | ) |
Definition at line 367 of file kfilemetainfo.cpp.
const KFileMetaInfoItem & KFileMetaInfo::item | ( | const QString & | key | ) | const |
Definition at line 356 of file kfilemetainfo.cpp.
const QHash< QString, KFileMetaInfoItem > & KFileMetaInfo::items | ( | ) | const |
Retrieve all the items.
Definition at line 351 of file kfilemetainfo.cpp.
QStringList KFileMetaInfo::keys | ( | ) | const |
Definition at line 362 of file kfilemetainfo.cpp.
KFileMetaInfo & KFileMetaInfo::operator= | ( | KFileMetaInfo const & | kfmi | ) |
Copy a KFileMetaInfo instance from another one.
Definition at line 316 of file kfilemetainfo.cpp.
KFileMetaInfoGroupList KFileMetaInfo::preferredGroups | ( | ) | const |
Deprecated.
Definition at line 388 of file kfilemetainfo.cpp.
QStringList KFileMetaInfo::preferredKeys | ( | ) | const |
Deprecated.
Definition at line 377 of file kfilemetainfo.cpp.
KFileMetaInfoGroupList KFileMetaInfo::supportedGroups | ( | ) | const |
Deprecated.
Definition at line 395 of file kfilemetainfo.cpp.
QStringList KFileMetaInfo::supportedKeys | ( | ) | const |
Deprecated.
Definition at line 382 of file kfilemetainfo.cpp.
const KUrl & KFileMetaInfo::url | ( | ) | const |
Definition at line 346 of file kfilemetainfo.cpp.
Friends And Related Function Documentation
|
friend |
Definition at line 63 of file kfilemetainfo.cpp.
|
friend |
Definition at line 58 of file kfilemetainfo.cpp.
The documentation for this class was generated from the following files:
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.