/***************************************************************************
                            kde_KURLList.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_KURLList.h"
}

#include <kurl.h>

class KURLListBridge : public KURL::List
{
public:
	KURLListBridge() : KURL::List() {}
	~KURLListBridge() {}
	void protected_detach() {
		KURL::List::detach();
		return;
	}
};

kde_KURLList * kde_new_KURLList(){
	return (kde_KURLList *) new KURLListBridge();
}
void kde_del_KURLList( kde_KURLList* p ){
	delete (KURLListBridge*) p;
}
//Iterator* kde_KURLList_begin( kde_KURLList* instPointer){
//	return (Iterator*) ((KURLListBridge*)instPointer)->begin();
//}
//int kde_KURLList_begin1( kde_KURLList* instPointer){
//	return (int) ((KURLListBridge*)instPointer)->begin();
//}
//Iterator* kde_KURLList_end( kde_KURLList* instPointer){
//	return (Iterator*) ((KURLListBridge*)instPointer)->end();
//}
//int kde_KURLList_end1( kde_KURLList* instPointer){
//	return (int) ((KURLListBridge*)instPointer)->end();
//}
//Iterator* kde_KURLList_fromLast( kde_KURLList* instPointer){
//	return (Iterator*) ((KURLListBridge*)instPointer)->fromLast();
//}
//int kde_KURLList_fromLast1( kde_KURLList* instPointer){
//	return (int) ((KURLListBridge*)instPointer)->fromLast();
//}
int kde_KURLList_isEmpty( kde_KURLList* instPointer){
	return (int) ((KURLListBridge*)instPointer)->isEmpty();
}
//Iterator* kde_KURLList_insert( kde_KURLList* instPointer,Iterator* it, kde_KURL* x){
//	return (Iterator*) ((KURLListBridge*)instPointer)->insert((Iterator)it, (KURL&)x);
//}
void kde_KURLList_append( kde_KURLList* instPointer,kde_KURL* x){
	(void) ((KURLListBridge*)instPointer)->append((KURL&)x);
}
//Iterator* kde_KURLList_prepend( kde_KURLList* instPointer,kde_KURL* x){
//	return (Iterator*) ((KURLListBridge*)instPointer)->prepend((KURL&)x);
//}
//Iterator* kde_KURLList_remove( kde_KURLList* instPointer,Iterator* it){
//	return (Iterator*) ((KURLListBridge*)instPointer)->remove((Iterator)it);
//}
void kde_KURLList_remove1( kde_KURLList* instPointer,kde_KURL* x){
	((KURLListBridge*)instPointer)->remove((KURL&)x);
	return;
}
//kde_KURL* kde_KURLList_first( kde_KURLList* instPointer){
//	return (kde_KURL*) ((KURLListBridge*)instPointer)->first();
//}
//kde_KURL* kde_KURLList_first1( kde_KURLList* instPointer){
//	return (kde_KURL*) ((KURLListBridge*)instPointer)->first();
//}
//kde_KURL* kde_KURLList_last( kde_KURLList* instPointer){
//	return (kde_KURL*) ((KURLListBridge*)instPointer)->last();
//}
//kde_KURL* kde_KURLList_last1( kde_KURLList* instPointer){
//	return (kde_KURL*) ((KURLListBridge*)instPointer)->last();
//}
//Iterator* kde_KURLList_at( kde_KURLList* instPointer,unsigned int i){
//	return (Iterator*) ((KURLListBridge*)instPointer)->at((uint)i);
//}
kde_KURL * kde_KURLList_at( kde_KURLList* instPointer,unsigned int i){
	return (kde_KURL*) &(*(KURL::List*)instPointer)[i];
}
//Iterator* kde_KURLList_find( kde_KURLList* instPointer,kde_KURL* x){
//	return (Iterator*) ((KURLListBridge*)instPointer)->find((KURL&)x);
//}
//int kde_KURLList_find1( kde_KURLList* instPointer,kde_KURL* x){
//	return (int) ((KURLListBridge*)instPointer)->find((KURL&)x);
//}
//Iterator* kde_KURLList_find2( kde_KURLList* instPointer,Iterator* it, kde_KURL* x){
//	return (Iterator*) ((KURLListBridge*)instPointer)->find((Iterator)it, (KURL&)x);
//}
//int kde_KURLList_find3( kde_KURLList* instPointer,int it, kde_KURL* x){
//	return (int) ((KURLListBridge*)instPointer)->find((ConstIterator)it, (KURL&)x);
//}
int kde_KURLList_findIndex( kde_KURLList* instPointer,kde_KURL* x){
	return (int) ((KURLListBridge*)instPointer)->findIndex((KURL&)x);
}
unsigned int kde_KURLList_contains( kde_KURLList* instPointer,kde_KURL* x){
	return (unsigned int) ((KURLListBridge*)instPointer)->contains((KURL&)x);
}
unsigned int kde_KURLList_count( kde_KURLList* instPointer){
	return (unsigned int) ((KURLListBridge*)instPointer)->count();
}
void kde_KURLList_clear( kde_KURLList* instPointer){
	((KURLListBridge*)instPointer)->clear();
	return;
}
void kde_KURLList_detach( kde_KURLList* instPointer){
	((KURLListBridge*)instPointer)->protected_detach();
	return;
}
