/***************************************************************************
                            kde_KCharsets.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_KCharsets.h"
}

#include <kcharsets.h>

class KCharsetsBridge : public KCharsets
{
public:
	~KCharsetsBridge() {}
	KCharsetsBridge() : KCharsets() {}
};

void kde_del_KCharsets( kde_KCharsets* p ){
	delete (KCharsetsBridge*) p;
}
qt_QTextCodec* kde_KCharsets_codecForName( kde_KCharsets* instPointer,qt_QString * name){
	return (qt_QTextCodec*) ((KCharsetsBridge*)instPointer)->codecForName((QString&)* (QString*)name);
}
qt_QTextCodec* kde_KCharsets_codecForName1( kde_KCharsets* instPointer,qt_QString * n, int ok){
	return (qt_QTextCodec*) ((KCharsetsBridge*)instPointer)->codecForName((QString&)* (QString*)n, (bool&)ok);
}
qt_QStringList* kde_KCharsets_availableEncodingNames( kde_KCharsets* instPointer){
	return (qt_QStringList*)new QStringList(((KCharsetsBridge*)instPointer)->availableEncodingNames());
}
qt_QStringList* kde_KCharsets_descriptiveEncodingNames( kde_KCharsets* instPointer){
	return (qt_QStringList*)new QStringList(((KCharsetsBridge*)instPointer)->descriptiveEncodingNames());
}
//qt_QStringList* kde_KCharsets_languages( kde_KCharsets* instPointer){
//	return (qt_QStringList*)new QStringList(((KCharsetsBridge*)instPointer)->languages());
//}
//qt_QStringList* kde_KCharsets_encodingsForLanguage( kde_KCharsets* instPointer,qt_QString * language){
//	return (qt_QStringList*)new QStringList(((KCharsetsBridge*)instPointer)->encodingsForLanguage((QString&)* (QString*)language));
//}
qt_QString * kde_KCharsets_languageForEncoding( kde_KCharsets* instPointer,qt_QString * encoding){
	return (qt_QString *)new QString(((KCharsetsBridge*)instPointer)->languageForEncoding((QString&)* (QString*)encoding));
}
qt_QString * kde_KCharsets_encodingForName( kde_KCharsets* instPointer,qt_QString * descriptiveName){
	return (qt_QString *)new QString(((KCharsetsBridge*)instPointer)->encodingForName((QString&)* (QString*)descriptiveName));
}
qt_QChar* kde_KCharsets_fromEntity( qt_QString * str){
	return (qt_QChar*)new QChar(KCharsetsBridge::fromEntity((QString&)* (QString*)str));
}
qt_QChar* kde_KCharsets_fromEntity1( qt_QString * str, int len){
	return (qt_QChar*)new QChar(KCharsetsBridge::fromEntity((QString&)* (QString*)str, (int&)len));
}
qt_QString * kde_KCharsets_toEntity( qt_QChar* ch){
	return (qt_QString *)new QString(KCharsetsBridge::toEntity((QChar&)* (QChar*)ch));
}
kde_KCharsets * kde_new_KCharsets(){
	return (kde_KCharsets *) new KCharsetsBridge();
}
