//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QtSupport;
import org.kde.qt.QVariant;

/**

 @brief A meta information item about a file
 This is one item of the meta information about a file (see
 KFileMetaInfo).
 		@short    @brief A meta information item about a file

*/
public class KFileMetaInfoItem implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected KFileMetaInfoItem(Class dummy){}

	/**	
			 You usually don't need to use this constructor yourself. Let
		 KFileMetaInfo do it for you.
				@short
	*/
	// KFileMetaInfoItem* KFileMetaInfoItem(const KFileMimeTypeInfo::ItemInfo* arg1,const QString& arg2,const QVariant& arg3); >>>> NOT CONVERTED
	/**	
		 Copy constructor
				@short    Copy constructor
	*/
	public KFileMetaInfoItem(KFileMetaInfoItem item) {
		newKFileMetaInfoItem(item);
	}
	private native void newKFileMetaInfoItem(KFileMetaInfoItem item);
	/**	
		 Default constructor. This creates an "invalid" item
		     		@short    Default constructor.
	*/
	public KFileMetaInfoItem() {
		newKFileMetaInfoItem();
	}
	private native void newKFileMetaInfoItem();
	/**	
		 Returns the key of the item.
				@return the key of this item
     
		@short    Returns the key of the item.
	*/
	public native String key();
	/**	
		 Returns a translation of the key for displaying to the user. If the
		 plugin provides translation to the key, it's also in the user's language
				@return the translated key
     
		@short    Returns a translation of the key for displaying to the user.
	*/
	public native String translatedKey();
	/**	
		 Returns the value of the item.
				@return the value of the item.
     
		@short    Returns the value of the item.
	*/
	public native QVariant value();
	/**	
		 Returns a string containing the value, if possible. If not,
		 null is returned.
			@param mangle if true, the string will already contain prefix and
		 suffix
				@return the value string, or null if not possible
     
		@short    Returns a string containing the value, if possible.
	*/
	public native String string(boolean mangle);
	public native String string();
	/**	
		 Changes the value of the item.
			@param value the new value
				@return true if successful, false otherwise
     
		@short    Changes the value of the item.
	*/
	public native boolean setValue(QVariant value);
	/**	
		 Return the type of the item.
				@return the type of the item
     
		@short    Return the type of the item.
	*/
	public native int type();
	/**	
		 You can query if the application can edit the item and write it back to
		 the file with this method.
			 @note This doesn't ensure that you have write access to the file and
		       that enough space is available.
				@return true if the item's value can be changed, false if not
     
		@short    You can query if the application can edit the item and write it back to  the file with this method.
	*/
	public native boolean isEditable();
	/**	
		 If you remove an item, it is only marked for removal for the file. On
		 the next KFileMetaInfo.applyChanges() , it will be removed from
		 the file. With this method, you can ask if the item is marked for
		 removal.
				@return true if the item was removed, false if not
     
		@short    If you remove an item, it is only marked for removal for the file.
	*/
	public native boolean isRemoved();
	/**	
		 If you change an item, it is marked as "dirty". On the next
		 KFileMetaInfo.applyChanges() , the change will be written to the
		 file. With this method, you can ask if this item is dirty.
				@return true if the item contains changes that have not yet been written
 back into the file. Removing or adding an item counts as such a change
     
		@short    If you change an item, it is marked as "dirty".
	*/
	public native boolean isModified();
	/**	
		 This method returns a translated prefix to be displayed before the
		 value. Think e.g. of the $ in $30
				@return the prefix
     
		@short    This method returns a translated prefix to be displayed before the  value.
	*/
	public native String prefix();
	/**	
		 This method returns a translated suffix to be displayed after the
		 value. Think of the kbps in 128kbps
				@return the suffix
     
		@short    This method returns a translated suffix to be displayed after the  value.
	*/
	public native String suffix();
	/**	
		 Returns the hint for this item. See KFileMimeTypeInfo.Hint.
				@return the hint

		@short    Returns the hint for this item.
	*/
	public native int hint();
	/**	
		 Returns the attributes for this item. See
		 KFileMimeTypeInfo.Attributes.
				@return the attributes

		@short    Returns the attributes for this item.
	*/
	public native int attributes();
	/**	
		 Return true if the item is valid, i.e. if it contains data, false
		 if it's invalid (created with the default constructor and not been
		 assigned anything), or if KFileMetaInfoGroup.item() didn't find
		 your requested item).
				@return true if valid, false if invalid
     
		@short    Return true if the item is valid, i.
	*/
	public native boolean isValid();
	protected native void setAdded();
	protected native void setRemoved();
	protected native void ref();
	protected native void deref();
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}
