KIO
KFileMetaInfo Class Reference
KFileMetaInfo provides metadata extracted from a file or other resource. More...
#include <kfilemetainfo.h>
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.
- Enumerator:
Definition at line 64 of file kfilemetainfo.h.
Constructor & Destructor Documentation
| KFileMetaInfo::KFileMetaInfo | ( | const QString & | path, | |
| const QString & | mimetype = QString(), |
|||
| WhatFlags | w = Everything | |||
| ) | [explicit] |
Construct a KFileMetaInfo that contains metainformation about the resource pointed to by path.
| 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 234 of file kfilemetainfo.cpp.
| KFileMetaInfo::KFileMetaInfo | ( | ) |
Construct an empty, invalid KFileMetaInfo instance.
Definition at line 246 of file kfilemetainfo.cpp.
| KFileMetaInfo::KFileMetaInfo | ( | const KFileMetaInfo & | k | ) |
Construct a KFileMetaInfo instance from another one.
Definition at line 248 of file kfilemetainfo.cpp.
| KFileMetaInfo::~KFileMetaInfo | ( | ) |
Destructor.
Definition at line 255 of file kfilemetainfo.cpp.
Member Function Documentation
| bool KFileMetaInfo::applyChanges | ( | ) |
Save the changes made to this KFileMetaInfo instance.
Definition at line 258 of file kfilemetainfo.cpp.
| KFileMetaInfoGroupList KFileMetaInfo::groups | ( | ) | const |
| bool KFileMetaInfo::isValid | ( | ) | const |
Definition at line 299 of file kfilemetainfo.cpp.
| const KFileMetaInfoItem & KFileMetaInfo::item | ( | const QString & | key | ) | const |
Definition at line 286 of file kfilemetainfo.cpp.
| KFileMetaInfoItem & KFileMetaInfo::item | ( | const QString & | key | ) |
Definition at line 295 of file kfilemetainfo.cpp.
| const QHash< QString, KFileMetaInfoItem > & KFileMetaInfo::items | ( | ) | const |
Retrieve all the items.
Definition at line 282 of file kfilemetainfo.cpp.
| QStringList KFileMetaInfo::keys | ( | ) | const |
Definition at line 291 of file kfilemetainfo.cpp.
| const KFileMetaInfo & KFileMetaInfo::operator= | ( | KFileMetaInfo const & | kfmi | ) |
Copy a KFileMetaInfo instance from another one.
Definition at line 251 of file kfilemetainfo.cpp.
| KFileMetaInfoGroupList KFileMetaInfo::preferredGroups | ( | ) | const |
Deprecated.
Definition at line 306 of file kfilemetainfo.cpp.
| QStringList KFileMetaInfo::preferredKeys | ( | ) | const |
Deprecated.
Definition at line 302 of file kfilemetainfo.cpp.
| KFileMetaInfoGroupList KFileMetaInfo::supportedGroups | ( | ) | const |
Deprecated.
Definition at line 310 of file kfilemetainfo.cpp.
| QStringList KFileMetaInfo::supportedKeys | ( | ) | const |
Deprecated.
Definition at line 303 of file kfilemetainfo.cpp.
| const KUrl & KFileMetaInfo::url | ( | ) | const |
Definition at line 278 of file kfilemetainfo.cpp.
Friends And Related Function Documentation
| QDataStream& operator<< | ( | QDataStream & | s, | |
| const KFileMetaInfo & | ||||
| ) | [friend] |
| QDataStream& operator>> | ( | QDataStream & | s, | |
| KFileMetaInfo & | ||||
| ) | [friend] |
The documentation for this class was generated from the following files:
KDE 4.4 API Reference