/***************************************************************************
                            qt_QSjisCodec.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_QSjisCodec.h"
}

#include <qsjiscodec.h>

class QSjisCodecBridge : public QSjisCodec
{
public:
	QSjisCodecBridge() : QSjisCodec() {}
	~QSjisCodecBridge() {}
};

int qt_QSjisCodec_mibEnum( qt_QSjisCodec* instPointer){
	return (int) ((QSjisCodecBridge*)instPointer)->mibEnum();
}
char* qt_QSjisCodec_name( qt_QSjisCodec* instPointer){
	return (char*) ((QSjisCodecBridge*)instPointer)->name();
}
char* qt_QSjisCodec_mimeName( qt_QSjisCodec* instPointer){
	return (char*) ((QSjisCodecBridge*)instPointer)->mimeName();
}
qt_QTextDecoder* qt_QSjisCodec_makeDecoder( qt_QSjisCodec* instPointer){
	return (qt_QTextDecoder*) ((QSjisCodecBridge*)instPointer)->makeDecoder();
}
qt_QCString* qt_QSjisCodec_fromUnicode( qt_QSjisCodec* instPointer,qt_QString * uc, int len_in_out){
	return (qt_QCString*)new QCString(((QSjisCodecBridge*)instPointer)->fromUnicode((QString&)* (QString*)uc, (int&)len_in_out));
}
qt_QString * qt_QSjisCodec_toUnicode( qt_QSjisCodec* instPointer,char* chars, int len){
	return (qt_QString *)new QString(((QSjisCodecBridge*)instPointer)->toUnicode((char*)chars, (int)len));
}
int qt_QSjisCodec_heuristicContentMatch( qt_QSjisCodec* instPointer,char* chars, int len){
	return (int) ((QSjisCodecBridge*)instPointer)->heuristicContentMatch((char*)chars, (int)len);
}
int qt_QSjisCodec_heuristicNameMatch( qt_QSjisCodec* instPointer,char* hint){
	return (int) ((QSjisCodecBridge*)instPointer)->heuristicNameMatch((char*)hint);
}
qt_QSjisCodec * qt_new_QSjisCodec(){
	return (qt_QSjisCodec *) new QSjisCodecBridge();
}
void qt_del_QSjisCodec( qt_QSjisCodec* p ){
	delete (QSjisCodecBridge*) p;
}
