• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/kio
 

kio/kio

  • KIO
  • MetaInfoJob
Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions
KIO::MetaInfoJob Class Reference

#include <metainfojob.h>

Inheritance diagram for KIO::MetaInfoJob:
KIO::Job

List of all members.

Signals

void gotMetaInfo (const KFileItem *item)
void failed (const KFileItem *item)

Public Member Functions

 MetaInfoJob (const KFileItemList &items, bool deleteItems=false)
void removeItem (const KFileItem *item)

Static Public Member Functions

static TQStringList availablePlugins ()
static TQStringList supportedMimeTypes ()

Protected Slots

virtual void slotResult (KIO::Job *job)

Protected Member Functions

void getMetaInfo ()

Detailed Description

MetaInfoJob is a KIO Job to retrieve meta information from files.

KIO Job to retrieve meta information from files.

Since:
3.1

Definition at line 35 of file metainfojob.h.


Constructor & Destructor Documentation

MetaInfoJob::MetaInfoJob ( const KFileItemList &  items,
bool  deleteItems = false 
)

Creates a new MetaInfoJob.

Parameters:
itemsA list of KFileItems to get the metainfo for
deleteItemsIf true, the finished KFileItems are deleted

Definition at line 44 of file metainfojob.cpp.


Member Function Documentation

TQStringList MetaInfoJob::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 154 of file metainfojob.cpp.

void KIO::MetaInfoJob::failed ( const KFileItem *  item) [signal]

Emitted when metainfo for item could not be extracted, either because a plugin for its MIME type does not exist, or because something went wrong.

Parameters:
itemthe KFileItem of the file that failed
void KIO::MetaInfoJob::gotMetaInfo ( const KFileItem *  item) [signal]

Emitted when the meta info for item has been successfully retrieved.

Parameters:
itemthe KFileItem describing the fetched item
void MetaInfoJob::removeItem ( const KFileItem *  item)

Removes an item from metainfo extraction.

Parameters:
itemthe item that should be removed from the queue

Definition at line 80 of file metainfojob.cpp.

void MetaInfoJob::slotResult ( KIO::Job *  job) [protected, virtual, slot]

Called whenever a subjob finishes.

Default implementation checks for errors and propagates to parent job, then calls removeSubjob. Override if you don't want subjobs errors to be propagated.

Parameters:
jobthe subjob
See also:
result()

Reimplemented from KIO::Job.

Definition at line 116 of file metainfojob.cpp.

TQStringList MetaInfoJob::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 163 of file metainfojob.cpp.


The documentation for this class was generated from the following files:
  • metainfojob.h
  • metainfojob.cpp

kio/kio

Skip menu "kio/kio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kio/kio

Skip menu "kio/kio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/kio by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |