/***************************************************************************
                            kde_KServiceOffer.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 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.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "kde_KServiceOffer.h"
}

#include <kuserprofile.h>

class KServiceOfferBridge : public KServiceOffer
{
public:
	KServiceOfferBridge() : KServiceOffer() {}
	KServiceOfferBridge(const KServiceOffer& arg1) : KServiceOffer(arg1) {}
	KServiceOfferBridge(KService::Ptr _service, int _pref, bool _default) : KServiceOffer(_service, _pref, _default) {}
};

kde_KServiceOffer * kde_new_KServiceOffer(){
	return (kde_KServiceOffer *) new KServiceOfferBridge();
}
kde_KServiceOffer * kde_new_KServiceOffer1(kde_KServiceOffer* arg1){
	return (kde_KServiceOffer *) new KServiceOfferBridge((KServiceOffer&)* (KServiceOffer*)arg1);
}
//kde_KServiceOffer * kde_new_KServiceOffer2(kde_KService_Ptr* _service, int _pref, int _default){
//	return (kde_KServiceOffer *) new KServiceOfferBridge((KService::Ptr)* (KService::Ptr*)_service, (int)_pref, (bool)_default);
//}
int kde_KServiceOffer_allowAsDefault( kde_KServiceOffer* instPointer){
	return (int) ((KServiceOfferBridge*)instPointer)->allowAsDefault();
}
int kde_KServiceOffer_preference( kde_KServiceOffer* instPointer){
	return (int) ((KServiceOfferBridge*)instPointer)->preference();
}
//kde_KService_Ptr* kde_KServiceOffer_service( kde_KServiceOffer* instPointer){
//	return (kde_KService_Ptr*) ((KServiceOfferBridge*)instPointer)->service();
//}
int kde_KServiceOffer_isValid( kde_KServiceOffer* instPointer){
	return (int) ((KServiceOfferBridge*)instPointer)->isValid();
}
