34 #include <tdelibs_export.h>
55 TQString
mimeType()
const {
return m_strMimeType; }
63 bool isValid()
const {
return !m_strMimeType.isEmpty(); }
68 void setMimeType(
const TQString& _mime ) { m_strMimeType = _mime; }
69 void setAccuracy(
int _accuracy ) { m_iAccuracy = _accuracy; }
70 void setInvalid() { m_strMimeType = TQString::null; }
73 TQString m_strMimeType;
127 bool mergeConfig(
const TQString & configFile );
134 void setFollowLinks(
bool _enable );
178 KMimeMagicResult * findBufferFileType(
const TQByteArray &,
const TQString & filename );
191 static void initStatic();
195 void init(
const TQString& configFile );
200 int parse_line(
char *line,
int *rule,
int lineno);
201 int parse(
char *,
int);
202 int buff_apprentice(
char*buff);
203 int apprentice(
const TQString &configFile);
205 struct config_rec *conf;
TQString mimeType() const
Retrieve the mimetype (e.g.
bool isValid() const
Returns whether the result is valid (i.e.
int accuracy() const
Retrieve the accuracy of the matching.
KMimeMagicResult * magicResult
The result type.