/***************************************************************************
                            KFileMetaInfoItem.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 KFILEMETAINFOITEM_H
#define KFILEMETAINFOITEM_H

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

/**

 This is one item of the meta information about a file (see
 @ref KFileMetaInfo).
 
 @short 
 This is one item of the meta information about a file (see
 @ref KFileMetaInfo).
*/
@class QVariant; 

@interface  KFileMetaInfoItem : NSObject <QtSupport>
{
@private
	void * _qt;
	BOOL  _allocatedInObjcWorld;
}
- initWithText: (NSString *)key translatedKey: (NSString *)translatedKey value: (QVariant *)value editable: (BOOL)editable prefix: (NSString *)prefix suffix: (NSString *)suffix;
- initWithText: (NSString *)key translatedKey: (NSString *)translatedKey value: (QVariant *)value ;
- copyWithZone: (NSZone *) zone;

/** 
 Default constructor. This creates an "invalid" item
     
*/
- init;
- (void) dealloc;

/** 

*/
- (NSString *) key;

/** 

*/
- (NSString *) translatedKey;

/** 

*/
- (QVariant*) value;

/** 
 changes the value of the item
     
*/
- setValue: (QVariant *)value;

/** 
 convenience method. It does the same as -value->-type
     
*/
- (int) type;

/** 

*/
- (BOOL) isEditable;

/** 
 remove this item from the meta info of the file. @ref -remove doesn't
 actually remove the item, but only mark it as removed until
 @ref -[KFileMetaInfo applyChanges] is called
     
*/
- remove;

/** 

*/
- (BOOL) isRemoved;

/** 

*/
- (BOOL) isModified;

/** 

*/
- (NSString *) prefix;

/** 

*/
- (NSString *) suffix;

/** 

     
*/
- (BOOL) isValid;
@end

#endif
