KMimeMagicResult Class Reference
#include <kmimemagic.h>
Public Methods | |
QString | mimeType () const |
Retrieve the mimetype (e.g. | |
int | accuracy () const |
Retrieve the accuracy of the matching. | |
bool | isValid () const |
Returns whether the result is valid (i.e. |
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 45 of file kmimemagic.h.
Member Function Documentation
|
Retrieve the mimetype (e.g. "text/html") of the file or buffer parsed. Definition at line 54 of file kmimemagic.h. Referenced by KMimeType::findByContent(), KMimeType::findByFileContent(), and KMimeType::findByURL(). |
|
Retrieve the accuracy of the matching.
Definition at line 58 of file kmimemagic.h. Referenced by KMimeType::findByContent(), and KMimeType::findByFileContent(). |
|
Returns whether the result is valid (i.e. mimetype not empty). Definition at line 62 of file kmimemagic.h. References QString::isEmpty(). Referenced by KMimeType::findByContent(), KMimeType::findByFileContent(), and KMimeType::findByURL(). |
The documentation for this class was generated from the following file: