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.
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 293 of file kfilemetainfo.cpp.
| KFileMetaInfo::KFileMetaInfo | ( | ) |
Construct an empty, invalid KFileMetaInfo instance.
Definition at line 306 of file kfilemetainfo.cpp.
| KFileMetaInfo::KFileMetaInfo | ( | const KFileMetaInfo & | k | ) |
Construct a KFileMetaInfo instance from another one.
Definition at line 310 of file kfilemetainfo.cpp.
| KFileMetaInfo::~KFileMetaInfo | ( | ) |
Destructor.
Definition at line 320 of file kfilemetainfo.cpp.
Member Function Documentation
| bool KFileMetaInfo::applyChanges | ( | ) |
Save the changes made to this KFileMetaInfo instance.
Definition at line 324 of file kfilemetainfo.cpp.
| KFileMetaInfoGroupList KFileMetaInfo::groups | ( | ) | const |
| bool KFileMetaInfo::isValid | ( | ) | const |
Definition at line 370 of file kfilemetainfo.cpp.
| KFileMetaInfoItem & KFileMetaInfo::item | ( | const QString & | key | ) |
Definition at line 365 of file kfilemetainfo.cpp.
| const KFileMetaInfoItem & KFileMetaInfo::item | ( | const QString & | key | ) | const |
Definition at line 354 of file kfilemetainfo.cpp.
| const QHash< QString, KFileMetaInfoItem > & KFileMetaInfo::items | ( | ) | const |
Retrieve all the items.
Definition at line 349 of file kfilemetainfo.cpp.
| QStringList KFileMetaInfo::keys | ( | ) | const |
Definition at line 360 of file kfilemetainfo.cpp.
| const KFileMetaInfo & KFileMetaInfo::operator= | ( | KFileMetaInfo const & | kfmi | ) |
Copy a KFileMetaInfo instance from another one.
Definition at line 314 of file kfilemetainfo.cpp.
| KFileMetaInfoGroupList KFileMetaInfo::preferredGroups | ( | ) | const |
Deprecated.
Definition at line 386 of file kfilemetainfo.cpp.
| QStringList KFileMetaInfo::preferredKeys | ( | ) | const |
Deprecated.
Definition at line 375 of file kfilemetainfo.cpp.
| KFileMetaInfoGroupList KFileMetaInfo::supportedGroups | ( | ) | const |
Deprecated.
Definition at line 393 of file kfilemetainfo.cpp.
| QStringList KFileMetaInfo::supportedKeys | ( | ) | const |
Deprecated.
Definition at line 380 of file kfilemetainfo.cpp.
| const KUrl & KFileMetaInfo::url | ( | ) | const |
Definition at line 344 of file kfilemetainfo.cpp.
Friends And Related Function Documentation
| QDataStream& operator<< | ( | QDataStream & | s, |
| const KFileMetaInfo & | |||
| ) | [friend] |
Definition at line 61 of file kfilemetainfo.cpp.
| QDataStream& operator>> | ( | QDataStream & | s, |
| KFileMetaInfo & | |||
| ) | [friend] |
Definition at line 56 of file kfilemetainfo.cpp.
The documentation for this class was generated from the following files:
KDE 4.6 API Reference