kio
KMimeMagicResult Class Reference
#include <kmimemagic.h>
Public Member Functions | |
int | accuracy () const |
bool | isValid () const |
KMimeMagicResult () | |
QString | mimeType () const |
void | setAccuracy (int _accuracy) |
void | setInvalid () |
void | setMimeType (const QString &_mime) |
~KMimeMagicResult () | |
Protected Attributes | |
int | m_iAccuracy |
QString | m_strMimeType |
Detailed Description
- Deprecated:
- Use KMimeType::findByContent() instead May be removed in KDE 4.0. Returned by KMimeMagic
find
...Type methods.
Definition at line 46 of file kmimemagic.h.
Constructor & Destructor Documentation
KMimeMagicResult::KMimeMagicResult | ( | ) | [inline] |
Definition at line 49 of file kmimemagic.h.
KMimeMagicResult::~KMimeMagicResult | ( | ) | [inline] |
Definition at line 50 of file kmimemagic.h.
Member Function Documentation
int KMimeMagicResult::accuracy | ( | ) | const [inline] |
bool KMimeMagicResult::isValid | ( | ) | const [inline] |
Returns whether the result is valid (i.e.
mimetype not empty).
Definition at line 63 of file kmimemagic.h.
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.
void KMimeMagicResult::setAccuracy | ( | int | _accuracy | ) | [inline] |
Definition at line 69 of file kmimemagic.h.
void KMimeMagicResult::setInvalid | ( | ) | [inline] |
Definition at line 70 of file kmimemagic.h.
void KMimeMagicResult::setMimeType | ( | const QString & | _mime | ) | [inline] |
Definition at line 68 of file kmimemagic.h.
Member Data Documentation
int KMimeMagicResult::m_iAccuracy [protected] |
Definition at line 74 of file kmimemagic.h.
QString KMimeMagicResult::m_strMimeType [protected] |
Definition at line 73 of file kmimemagic.h.
The documentation for this class was generated from the following file: