/***************************************************************************
                            KSycocaEntry.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 KSYCOCAENTRY_H
#define KSYCOCAENTRY_H

#include <Foundation/NSObject.h>
#include <Foundation/NSString.h>
#include <kdeobjc/KShared.h>

/**

 Base class for all entries.
 You can't create instance of KSycocaEntry, but it provides
 the common functionality for servicetypes and services.
 
 @short 
 Base class for all entries.
*/
@class KSycocaType; 
@class QDataStream; 

@interface KSycocaEntry : KShared 
//- (BOOL) isType: (KSycocaType*)t;
//- (KSycocaType*) sycocaType;

/** 

*/
- (NSString *) name;

/** 

*/
- (NSString *) entryPath;

/** 

*/
- (BOOL) isValid;

/** 

*/
- (BOOL) isDeleted;

/** 

*/
- (int) offset;

/** 

 Save ourselves to the database. Don't forget to call the parent class
 first if you override this function.
    
*/
- save: (QDataStream *)s;

/** 

 Load ourselves from the database. Don't call the parent class!
    
*/
- load: (QDataStream *)arg1;
@end

#endif
