/***************************************************************************
                            qt_QJisCodec.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, 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 "qt_QJisCodec.h"
}

#include <qjiscodec.h>

class QJisCodecBridge : public QJisCodec
{
public:
	QJisCodecBridge() : QJisCodec() {}
	~QJisCodecBridge() {}
};

int qt_QJisCodec_mibEnum( qt_QJisCodec* instPointer){
	return (int) ((QJisCodecBridge*)instPointer)->mibEnum();
}
char* qt_QJisCodec_name( qt_QJisCodec* instPointer){
	return (char*) ((QJisCodecBridge*)instPointer)->name();
}
char* qt_QJisCodec_mimeName( qt_QJisCodec* instPointer){
	return (char*) ((QJisCodecBridge*)instPointer)->mimeName();
}
qt_QTextDecoder* qt_QJisCodec_makeDecoder( qt_QJisCodec* instPointer){
	return (qt_QTextDecoder*) ((QJisCodecBridge*)instPointer)->makeDecoder();
}
qt_QCString* qt_QJisCodec_fromUnicode( qt_QJisCodec* instPointer,qt_QString * uc, int len_in_out){
	return (qt_QCString*)new QCString(((QJisCodecBridge*)instPointer)->fromUnicode((QString&)* (QString*)uc, (int&)len_in_out));
}
qt_QString * qt_QJisCodec_toUnicode( qt_QJisCodec* instPointer,char* chars, int len){
	return (qt_QString *)new QString(((QJisCodecBridge*)instPointer)->toUnicode((char*)chars, (int)len));
}
int qt_QJisCodec_heuristicContentMatch( qt_QJisCodec* instPointer,char* chars, int len){
	return (int) ((QJisCodecBridge*)instPointer)->heuristicContentMatch((char*)chars, (int)len);
}
int qt_QJisCodec_heuristicNameMatch( qt_QJisCodec* instPointer,char* hint){
	return (int) ((QJisCodecBridge*)instPointer)->heuristicNameMatch((char*)hint);
}
qt_QJisCodec * qt_new_QJisCodec(){
	return (qt_QJisCodec *) new QJisCodecBridge();
}
void qt_del_QJisCodec( qt_QJisCodec* p ){
	delete (QJisCodecBridge*) p;
}
