KMimeMagicResult Class Reference
#include <kmimemagic.h>
Collaboration diagram for KMimeMagicResult:

| 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 | 
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.
Member Function Documentation
| 
 | 
| Retrieve the mimetype (e.g. "text/html") of the file or buffer parsed. Definition at line 55 of file kmimemagic.h. Referenced by KMimeType::findByContent(), KMimeType::findByFileContent(), and KMimeType::findByURL(). | 
| 
 | 
| Retrieve the accuracy of the matching. 
 Definition at line 59 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 63 of file kmimemagic.h. Referenced by KMimeType::findByContent(), KMimeType::findByFileContent(), and KMimeType::findByURL(). | 
The documentation for this class was generated from the following file:

