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

kio/kio

KMimeMagicResult Class Reference

#include <kmimemagic.h>

List of all members.


Detailed Description

Deprecated:
Use KMimeType::findByContent() instead May be removed in KDE 4.0. Returned by KMimeMagic find...Type methods.
It contains the mimetype and the encoding of the file or buffer read.

Definition at line 46 of file kmimemagic.h.


Public Member Functions

QString mimeType () const
int accuracy () const
bool isValid () const
void setMimeType (const QString &_mime)
void setAccuracy (int _accuracy)
void setInvalid ()

Protected Attributes

QString m_strMimeType
int m_iAccuracy

Member Function Documentation

QString KMimeMagicResult::mimeType (  )  const [inline]

Retrieve the mimetype (e.g.

"text/html") of the file or buffer parsed.

Definition at line 55 of file kmimemagic.h.

int KMimeMagicResult::accuracy (  )  const [inline]

Retrieve the accuracy of the matching.

Definition at line 59 of file kmimemagic.h.

bool KMimeMagicResult::isValid (  )  const [inline]

Returns whether the result is valid (i.e.

mimetype not empty).

Definition at line 63 of file kmimemagic.h.


The documentation for this class was generated from the following file:
  • kmimemagic.h

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

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • 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
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
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