/***************************************************************************
                            KIcon.m -  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.                       *
 *                                                                         *
 ***************************************************************************/

#include <qtc/qt_QString.h>
#include <qtc/qt_QCString.h>
#include <kdec/kde_KIcon.h>
#include <kdeobjc/KDESupport.h>
#include <kdeobjc/KIcon.h>

@implementation  KIcon

- (void *) qt
{
	return _qt;
}

- setQt: (void *) qt
{
	_qt = qt;
	return self;
}

- (BOOL) allocatedInObjcWorld
{
	return _allocatedInObjcWorld;
}

- setAllocatedInObjcWorld: (BOOL) yn
{
	_allocatedInObjcWorld = yn;
	return self;
}


- init
{
	if ([self qt] == 0L) {
		[self setQt: kde_new_KIcon()];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- (BOOL) isValid
{
	return (BOOL) kde_KIcon_isValid((kde_KIcon *)[self qt]);
}

+ (int) Any
{
	return (int) KICON_Any;
}

+ (int) Action
{
	return (int) KICON_Action;
}

+ (int) Application
{
	return (int) KICON_Application;
}

+ (int) Device
{
	return (int) KICON_Device;
}

+ (int) FileSystem
{
	return (int) KICON_FileSystem;
}

+ (int) MimeType
{
	return (int) KICON_MimeType;
}

+ (int) Fixed
{
	return (int) KICON_Fixed;
}

+ (int) Scalable
{
	return (int) KICON_Scalable;
}

+ (int) Threshold
{
	return (int) KICON_Threshold;
}

+ (int) MatchExact
{
	return (int) KICON_MatchExact;
}

+ (int) MatchBest
{
	return (int) KICON_MatchBest;
}

+ (int) NoGroup
{
	return (int) KICON_NoGroup;
}

+ (int) Desktop
{
	return (int) KICON_Desktop;
}

+ (int) FirstGroup
{
	return (int) KICON_FirstGroup;
}

+ (int) Toolbar
{
	return (int) KICON_Toolbar;
}

+ (int) MainToolbar
{
	return (int) KICON_MainToolbar;
}

+ (int) Small
{
	return (int) KICON_Small;
}

+ (int) Panel
{
	return (int) KICON_Panel;
}

+ (int) LastGroup
{
	return (int) KICON_LastGroup;
}

+ (int) User
{
	return (int) KICON_User;
}

+ (int) SizeSmall
{
	return (int) KICON_SizeSmall;
}

+ (int) SizeMedium
{
	return (int) KICON_SizeMedium;
}

+ (int) SizeLarge
{
	return (int) KICON_SizeLarge;
}

+ (int) DefaultState
{
	return (int) KICON_DefaultState;
}

+ (int) ActiveState
{
	return (int) KICON_ActiveState;
}

+ (int) DisabledState
{
	return (int) KICON_DisabledState;
}

+ (int) LastState
{
	return (int) KICON_LastState;
}

+ (int) LockOverlay
{
	return (int) KICON_LockOverlay;
}

+ (int) ZipOverlay
{
	return (int) KICON_ZipOverlay;
}

+ (int) LinkOverlay
{
	return (int) KICON_LinkOverlay;
}

+ (int) HiddenOverlay
{
	return (int) KICON_HiddenOverlay;
}

+ (int) OverlayMask
{
	return (int) KICON_OverlayMask;
}

@end
