/***************************************************************************
                            KMimeMagicResult.h -  description
                             -------------------
    begin                : Fri Mar  8 13:55:08 2002
    copyright            : (C) 2000-2002 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Fri Mar  8 13:55:08 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef KMIMEMAGICRESULT_H
#define KMIMEMAGICRESULT_H

#include <Foundation/NSObject.h>
#include <Foundation/NSString.h>
#include <qtobjc/QtSupport.h>

/**


 May be removed in KDE 4.0
 Returned by @ref KMimeMagic @p find...Type methods.

 It contains the mimetype and the encoding of
 the file or buffer read.
 
 @short 

*/
@interface  KMimeMagicResult : NSObject <QtSupport>
{
@private
	void * _qt;
	BOOL  _allocatedInObjcWorld;
}
- init;
- (void) dealloc;

/** 
 Retrieve the mimetype (e.g. "text/html") of the file or buffer parsed.
   
*/
- (NSString *) mimeType;

/** 
 Retrieve the accuracy of the matching.
   
*/
- (int) accuracy;

/** 
 Returns whether the result is valid (i.e. mimetype not empty).
   
*/
- (BOOL) isValid;
- setMimeType: (NSString *)_mime;
- setAccuracy: (int)_accuracy;
- setInvalid;
@end

#endif
