/***************************************************************************
                            KSycocaEntry.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_KSycocaEntry.h>
#include <kdeobjc/KDESupport.h>
#include <kdeobjc/KSycocaEntry.h>
#include <qtobjc/QDataStream.h>


@implementation  KSycocaEntry


//- (BOOL) isType: (KSycocaType*)t
//{
//	return (BOOL) kde_KSycocaEntry_isType((kde_KSycocaEntry *)[self qt], (kde_KSycocaType*) [t qt]);
//}

//- (KSycocaType*) sycocaType
//{
//	return (KSycocaType*) kde_KSycocaEntry_sycocaType((kde_KSycocaEntry *)[self qt]);
//}

- (NSString *) name
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KSycocaEntry_name((kde_KSycocaEntry *)[self qt]);
	return [NSString fromQString: _qstring];
}

- (NSString *) entryPath
{
static qt_QString * _qstring = 0L;
	_qstring = kde_KSycocaEntry_entryPath((kde_KSycocaEntry *)[self qt]);
	return [NSString fromQString: _qstring];
}

- (BOOL) isValid
{
	return (BOOL) kde_KSycocaEntry_isValid((kde_KSycocaEntry *)[self qt]);
}

- (BOOL) isDeleted
{
	return (BOOL) kde_KSycocaEntry_isDeleted((kde_KSycocaEntry *)[self qt]);
}

- (int) offset
{
	return (int) kde_KSycocaEntry_offset((kde_KSycocaEntry *)[self qt]);
}

- save: (QDataStream *)s
{
	kde_KSycocaEntry_save((kde_KSycocaEntry *)[self qt], (qt_QDataStream *) [s qt]);
	return self;
}

- load: (QDataStream *)arg1
{
	kde_KSycocaEntry_load((kde_KSycocaEntry *)[self qt], (qt_QDataStream *) [arg1 qt]);
	return self;
}

@end
