/***************************************************************************
                            kde_OfferList.cpp -  description
                             -------------------
    begin                : Mon Aug 13 09:51:26 2001
    copyright            : (C) 2000-2001 by Richard Dale
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Mon Aug 13 09:51:26 2001, using kdoc $.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU 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_OfferList.h"
}

#include <ktrader.h>

static KTrader::OfferList::Iterator it;

kde_OfferList * kde_new_OfferList(){
	return (kde_OfferList *) new KTrader::OfferList();
}
void kde_del_OfferList( kde_OfferList* p ){
	delete (KTrader::OfferList*) p;
}
int kde_OfferList_isEmpty( kde_OfferList* instPointer){
	return (int) ((KTrader::OfferList*)instPointer)->isEmpty();
}
//void kde_OfferList_remove1( kde_OfferList* instPointer,kde_KService* x){
//	((KTrader::OfferList*)instPointer)->remove((KService&)x);
//	return;
//}
//int kde_OfferList_findIndex( kde_OfferList* instPointer,kde_KService* x){
//	return (int) ((KTrader::OfferList*)instPointer)->findIndex((KService&)x);
//}
//unsigned int kde_OfferList_contains( kde_OfferList* instPointer,kde_KService* x){
//	return (unsigned int) ((KTrader::OfferList*)instPointer)->contains((KService&)x);
//}
unsigned int kde_OfferList_count( kde_OfferList* instPointer){
	return (unsigned int) ((KTrader::OfferList*)instPointer)->count();
}
void kde_OfferList_clear( kde_OfferList* instPointer){
	((KTrader::OfferList*)instPointer)->clear();
	return;
}
