• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kio

KIO::MimetypeJob

KIO::MimetypeJob Class Reference

A MimetypeJob is a TransferJob that allows you to get the mime type of an URL. More...

#include <jobclasses.h>

Inheritance diagram for KIO::MimetypeJob:

Inheritance graph
[legend]

List of all members.


Public Member Functions

QString mimetype () const
 MimetypeJob (const KURL &url, int command, const QByteArray &packedArgs, bool showProgressInfo)
virtual void start (Slave *slave)

Protected Slots

virtual void slotFinished ()

Protected Member Functions

virtual void virtual_hook (int id, void *data)

Detailed Description

A MimetypeJob is a TransferJob that allows you to get the mime type of an URL.

Don't create directly, but use KIO::mimetype() instead.

See also:
KIO::mimetype()

Definition at line 1208 of file jobclasses.h.


Constructor & Destructor Documentation

MimetypeJob::MimetypeJob ( const KURL &  url,
int  command,
const QByteArray &  packedArgs,
bool  showProgressInfo 
)

Do not create a MimetypeJob directly.

Use KIO::mimetype() instead.

Parameters:
url the url to get
command the command to issue
packedArgs the arguments
showProgressInfo true to show progress information to the user

Definition at line 1462 of file job.cpp.


Member Function Documentation

QString KIO::MimetypeJob::mimetype (  )  const [inline]

Call this in the slot connected to result, and only after making sure no error happened.

Returns:
the mimetype of the URL

Definition at line 1227 of file jobclasses.h.

void MimetypeJob::slotFinished (  )  [protected, virtual, slot]

Called when the slave marks the job as finished.

Reimplemented from KIO::TransferJob.

Definition at line 1474 of file job.cpp.

void MimetypeJob::start ( Slave *  slave  )  [virtual]

For internal use only.

Called by the scheduler when a slave gets to work on this job.

Parameters:
slave the slave that works on the job

Reimplemented from KIO::TransferJob.

Definition at line 1468 of file job.cpp.

void MimetypeJob::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Reimplemented from KIO::TransferJob.

Definition at line 4761 of file job.cpp.


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

kio

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal