/***************************************************************************
                            qt_QLibrary.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_QLibrary.h"
}

#include <qlibrary.h>

class QLibraryBridge : public QLibrary
{
public:
	QLibraryBridge(const QString& filename) : QLibrary(filename) {}
	~QLibraryBridge() {}
};

qt_QLibrary * qt_new_QLibrary(qt_QString * filename){
	return (qt_QLibrary *) new QLibraryBridge((QString&)* (QString*)filename);
}
void qt_del_QLibrary( qt_QLibrary* p ){
	delete (QLibraryBridge*) p;
}
void* qt_QLibrary_resolve( qt_QLibrary* instPointer,char* arg1){
	return (void*) ((QLibraryBridge*)instPointer)->resolve((char*)arg1);
}
int qt_QLibrary_load( qt_QLibrary* instPointer){
	return (int) ((QLibraryBridge*)instPointer)->load();
}
int qt_QLibrary_unload( qt_QLibrary* instPointer){
	return (int) ((QLibraryBridge*)instPointer)->unload();
}
int qt_QLibrary_isLoaded( qt_QLibrary* instPointer){
	return (int) ((QLibraryBridge*)instPointer)->isLoaded();
}
int qt_QLibrary_autoUnload( qt_QLibrary* instPointer){
	return (int) ((QLibraryBridge*)instPointer)->autoUnload();
}
void qt_QLibrary_setAutoUnload( qt_QLibrary* instPointer,int enable){
	((QLibraryBridge*)instPointer)->setAutoUnload((bool)enable);
	return;
}
qt_QString * qt_QLibrary_library( qt_QLibrary* instPointer){
	return (qt_QString *)new QString(((QLibraryBridge*)instPointer)->library());
}
void* qt_QLibrary_resolve1( qt_QString * filename, char* arg1){
	return (void*) QLibraryBridge::resolve((QString&)* (QString*)filename, (char*)arg1);
}
