/***************************************************************************
                            qt_QConstString.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_QConstString.h"
}

#include <qstring.h>

class QConstStringBridge : public QConstString
{
public:
	QConstStringBridge(const QChar* unicode, uint length) : QConstString(unicode, length) {}
	~QConstStringBridge() {}
};

qt_QConstString * qt_new_QConstString(qt_QChar* unicode, unsigned int length){
	return (qt_QConstString *) new QConstStringBridge((QChar*)unicode, (uint)length);
}
void qt_del_QConstString( qt_QConstString* p ){
	delete (QConstStringBridge*) p;
}
qt_QString * qt_QConstString_string( qt_QConstString* instPointer){
	return (qt_QString *) (const QString *)&((QConstStringBridge*)instPointer)->string();
}
