/***************************************************************************
                            kde_MediaList.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_MediaList.h"
}

#include <dom/css_stylesheet.h>

class MediaListBridge : public DOM::MediaList
{
public:
	MediaListBridge() : MediaList() {}
	MediaListBridge(const MediaList& other) : MediaList(other) {}
	~MediaListBridge() {}
};

kde_MediaList * kde_new_MediaList(){
	return (kde_MediaList *) new MediaListBridge();
}
kde_MediaList * kde_new_MediaList1(kde_MediaList* other){
	return (kde_MediaList *) new MediaListBridge((DOM::MediaList&)* (DOM::MediaList*)other);
}
void kde_del_MediaList( kde_MediaList* p ){
	delete (MediaListBridge*) p;
}
//kde_DOMString* kde_MediaList_mediaText( kde_MediaList* instPointer){
//	return (kde_DOMString*) ((MediaListBridge*)instPointer)->mediaText();
//}
void kde_MediaList_setMediaText( kde_MediaList* instPointer,kde_DOMString* value){
	((MediaListBridge*)instPointer)->setMediaText((DOM::DOMString&)* (DOM::DOMString*)value);
	return;
}
unsigned long kde_MediaList_length( kde_MediaList* instPointer){
	return (unsigned long) ((MediaListBridge*)instPointer)->length();
}
//kde_DOMString* kde_MediaList_item( kde_MediaList* instPointer,unsigned long index){
//	return (kde_DOMString*) ((MediaListBridge*)instPointer)->item((unsigned long)index);
//}
void kde_MediaList_deleteMedium( kde_MediaList* instPointer,kde_DOMString* oldMedium){
	((MediaListBridge*)instPointer)->deleteMedium((DOM::DOMString&)* (DOM::DOMString*)oldMedium);
	return;
}
void kde_MediaList_appendMedium( kde_MediaList* instPointer,kde_DOMString* newMedium){
	((MediaListBridge*)instPointer)->appendMedium((DOM::DOMString&)* (DOM::DOMString*)newMedium);
	return;
}
//kde_MediaListImpl* kde_MediaList_handle( kde_MediaList* instPointer){
//	return (kde_MediaListImpl*) ((MediaListBridge*)instPointer)->handle();
//}
int kde_MediaList_isNull( kde_MediaList* instPointer){
	return (int) ((MediaListBridge*)instPointer)->isNull();
}
