Signals |
Public Member Functions |
Static Public Member Functions |
Protected Slots |
Protected Member Functions |
List of all members
TDEIO::MetaInfoJob Class Reference
#include <metainfojob.h>
Inheritance diagram for TDEIO::MetaInfoJob:
Signals | |
void | gotMetaInfo (const KFileItem *item) |
void | failed (const KFileItem *item) |
Signals inherited from TDEIO::Job | |
void | result (TDEIO::Job *job) |
void | canceled (TDEIO::Job *job) |
void | infoMessage (TDEIO::Job *job, const TQString &msg) |
void | warning (TDEIO::Job *job, const TQString &msg) |
void | connected (TDEIO::Job *job) |
void | percent (TDEIO::Job *job, unsigned long percent) |
void | totalSize (TDEIO::Job *job, TDEIO::filesize_t size) |
void | processedSize (TDEIO::Job *job, TDEIO::filesize_t size) |
void | speed (TDEIO::Job *job, unsigned long speed) |
Public Member Functions | |
MetaInfoJob (const KFileItemList &items, bool deleteItems=false) | |
void | removeItem (const KFileItem *item) |
Public Member Functions inherited from TDEIO::Job | |
virtual void | kill (bool quietly=true) |
int | error () const |
int | progressId () const |
const TQString & | errorText () const |
TQString | errorString () const |
TQStringList | detailedErrorStrings (const KURL *reqUrl=0L, int method=-1) const |
void | showErrorDialog (TQWidget *parent=0L) |
void | setAutoErrorHandlingEnabled (bool enable, TQWidget *parentWidget=0) |
bool | isAutoErrorHandlingEnabled () const |
void | setAutoWarningHandlingEnabled (bool enable) |
bool | isAutoWarningHandlingEnabled () const |
void | setInteractive (bool enable) |
bool | isInteractive () const |
void | setWindow (TQWidget *window) |
TQWidget * | window () const |
void | updateUserTimestamp (unsigned long time) |
void | setParentJob (Job *parentJob) |
Job * | parentJob () const |
void | setMetaData (const TDEIO::MetaData &metaData) |
void | addMetaData (const TQString &key, const TQString &value) |
void | addMetaData (const TQMap< TQString, TQString > &values) |
void | mergeMetaData (const TQMap< TQString, TQString > &values) |
MetaData | outgoingMetaData () const |
MetaData | metaData () const |
TQString | queryMetaData (const TQString &key) |
TDEIO::filesize_t | getProcessedSize () |
Static Public Member Functions | |
static TQStringList | availablePlugins () |
static TQStringList | supportedMimeTypes () |
Protected Slots | |
virtual void | slotResult (TDEIO::Job *job) |
Protected Slots inherited from TDEIO::Job | |
virtual void | slotResult (TDEIO::Job *job) |
void | slotSpeed (TDEIO::Job *job, unsigned long speed) |
void | slotInfoMessage (TDEIO::Job *job, const TQString &msg) |
void | slotSpeedTimeout () |
Protected Member Functions | |
void | getMetaInfo () |
Protected Member Functions inherited from TDEIO::Job | |
Job (bool showProgressInfo) | |
virtual void | addSubjob (Job *job, bool inheritMetaData=true) |
virtual void | removeSubjob (Job *job) |
void | removeSubjob (Job *job, bool mergeMetaData, bool emitResultIfLast) |
void | emitPercent (TDEIO::filesize_t processedSize, TDEIO::filesize_t totalSize) |
void | emitSpeed (unsigned long speed) |
void | emitResult () |
void | setProcessedSize (TDEIO::filesize_t size) |
unsigned long | userTimestamp () const |
int & | extraFlags () |
virtual void | virtual_hook (int id, void *data) |
Additional Inherited Members | |
Protected Types inherited from TDEIO::Job | |
enum | { EF_TransferJobAsync = (1 << 0) , EF_TransferJobNeedData = (1 << 1) , EF_TransferJobDataSent = (1 << 2) , EF_ListJobUnrestricted = (1 << 3) } |
Protected Attributes inherited from TDEIO::Job | |
TQPtrList< Job > | subjobs |
int | m_error |
TQString | m_errorText |
unsigned long | m_percent |
int | m_progressId |
TQTimer * | m_speedTimer |
TQGuardedPtr< TQWidget > | m_window |
MetaData | m_outgoingMetaData |
MetaData | m_incomingMetaData |
Detailed Description
MetaInfoJob is a TDEIO Job to retrieve meta information from files.
TDEIO Job to retrieve meta information from files.
- Since
- 3.1
Definition at line 33 of file metainfojob.h.
Constructor & Destructor Documentation
◆ MetaInfoJob()
MetaInfoJob::MetaInfoJob | ( | const KFileItemList & | items, |
bool | deleteItems = false |
||
) |
Creates a new MetaInfoJob.
- Parameters
-
items A list of KFileItems to get the metainfo for deleteItems If true, the finished KFileItems are deleted
Definition at line 42 of file metainfojob.cpp.
Member Function Documentation
◆ availablePlugins()
|
static |
Returns a list of all available metainfo plugins. The list contains the basenames of the plugins' .desktop files (no path, no .desktop).
- Returns
- the list of available meta info plugins
Definition at line 152 of file metainfojob.cpp.
◆ failed
|
signal |
Emitted when metainfo for @p item could not be extracted, either because a plugin for its MIME type does not exist, or because something went wrong.
- Parameters
-
item the KFileItem of the file that failed
◆ gotMetaInfo
|
signal |
Emitted when the meta info for @p item has been successfully retrieved.
- Parameters
-
item the KFileItem describing the fetched item
◆ removeItem()
void MetaInfoJob::removeItem | ( | const KFileItem * | item | ) |
Removes an item from metainfo extraction.
- Parameters
-
item the item that should be removed from the queue
Definition at line 78 of file metainfojob.cpp.
◆ supportedMimeTypes()
|
static |
Returns a list of all supported MIME types. The list can contain entries like text/ * (without the space).
- Returns
- the list of MIME types that are supported
Definition at line 161 of file metainfojob.cpp.
The documentation for this class was generated from the following files: