KDE 4.4 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

MetaInfoJob Class Reference

from PyKDE4.kio import *

Inherits: KIO.Job → KCompositeJob → KJob → QObject
Namespace: KIO.MetaInfoJob

Detailed Description

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

KIO Job to retrieve meta information from files.


Signals

 failed (KFileItem item)
 gotMetaInfo (KFileItem item)

Methods

 __init__ (self, KFileItemList items, KFileMetaInfo.WhatFlags w=KFileMetaInfo.Everything, int iocost=3, int cpucost=6, QStringList requiredfields=QStringList(), QStringList requestedfields=QStringList())
 __init__ (self)
 failed (self, KFileItem item)
 getMetaInfo (self)
 gotMetaInfo (self, KFileItem item)
 removeItem (self, KFileItem item)
 slotResult (self, KJob job)

Method Documentation

__init__ (  self,
KFileItemList  items,
KFileMetaInfo.WhatFlags  w=KFileMetaInfo.Everything,
int  iocost=3,
int  cpucost=6,
QStringList  requiredfields=QStringList(),
QStringList  requestedfields=QStringList()
)
__init__ (   self )
failed (  self,
KFileItem  item
)

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:
item  the KFileItem of the file that failed

Signal syntax:
QObject.connect(source, SIGNAL("failed(const const KFileItem&)"), target_slot)
getMetaInfo (   self )
gotMetaInfo (  self,
KFileItem  item
)

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

Parameters:
item  the KFileItem describing the fetched item

Signal syntax:
QObject.connect(source, SIGNAL("gotMetaInfo(const const KFileItem&)"), target_slot)
removeItem (  self,
KFileItem  item
)

Removes an item from metainfo extraction.

Parameters:
item  the item that should be removed from the queue

slotResult (  self,
KJob  job
)
  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • polkitqt
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal