/***************************************************************************
                            qt_QGDict.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_QGDict.h"
}

#include <qgdict.h>
#include <qdatastream.h>

class QGDictBridge : public QGDict
{
public:
	QGDictBridge(uint len, KeyType kt, bool cs, bool ck) : QGDict(len, kt, cs, ck) {}
	QGDictBridge(const QGDict& arg1) : QGDict(arg1) {}
	~QGDictBridge() {}
	bool  protected_remove_string(const QString& key, QPtrCollection::Item item) {
		return (bool ) QGDict::remove_string(key, item);
	}
	bool  protected_remove_ascii(const char* key, QPtrCollection::Item item) {
		return (bool ) QGDict::remove_ascii(key, item);
	}
	bool  protected_remove_int(long key, QPtrCollection::Item item) {
		return (bool ) QGDict::remove_int(key, item);
	}
	bool  protected_remove_ptr(void* key, QPtrCollection::Item item) {
		return (bool ) QGDict::remove_ptr(key, item);
	}
	QPtrCollection::Item  protected_take_string(const QString& key) {
		return (QPtrCollection::Item ) QGDict::take_string(key);
	}
	QPtrCollection::Item  protected_take_ascii(const char* key) {
		return (QPtrCollection::Item ) QGDict::take_ascii(key);
	}
	QPtrCollection::Item  protected_take_int(long key) {
		return (QPtrCollection::Item ) QGDict::take_int(key);
	}
	QPtrCollection::Item  protected_take_ptr(void* key) {
		return (QPtrCollection::Item ) QGDict::take_ptr(key);
	}
	void protected_clear() {
		QGDict::clear();
		return;
	}
	void protected_resize(uint arg1) {
		QGDict::resize(arg1);
		return;
	}
	int  protected_hashKeyString(const QString& arg1) {
		return (int ) QGDict::hashKeyString(arg1);
	}
	int  protected_hashKeyAscii(const char* arg1) {
		return (int ) QGDict::hashKeyAscii(arg1);
	}
	void protected_statistics() {
		QGDict::statistics();
		return;
	}
	 QDataStream & protected_read(QDataStream& arg1, QPtrCollection::Item& arg2) {
		return ( QDataStream &) QGDict::read(arg1, arg2);
	}
	 QDataStream & protected_write(QDataStream& arg1, QPtrCollection::Item arg2) {
		return ( QDataStream &) QGDict::write(arg1, arg2);
	}
};

unsigned int qt_QGDict_count( qt_QGDict* instPointer){
	return (unsigned int) ((QGDictBridge*)instPointer)->count();
}
unsigned int qt_QGDict_size( qt_QGDict* instPointer){
	return (unsigned int) ((QGDictBridge*)instPointer)->size();
}
QPtrCollection::Item qt_QGDict_look_string( qt_QGDict* instPointer,qt_QString * key, QPtrCollection::Item arg1, int arg2){
	return (QPtrCollection::Item) ((QGDictBridge*)instPointer)->look_string((QString&)* (QString*)key, (QPtrCollection::Item)arg1, (int)arg2);
}
QPtrCollection::Item qt_QGDict_look_ascii( qt_QGDict* instPointer,char* key, QPtrCollection::Item arg1, int arg2){
	return (QPtrCollection::Item) ((QGDictBridge*)instPointer)->look_ascii((char*)key, (QPtrCollection::Item)arg1, (int)arg2);
}
QPtrCollection::Item qt_QGDict_look_int( qt_QGDict* instPointer,long key, QPtrCollection::Item arg1, int arg2){
	return (QPtrCollection::Item) ((QGDictBridge*)instPointer)->look_int((long)key, (QPtrCollection::Item)arg1, (int)arg2);
}
QPtrCollection::Item qt_QGDict_look_ptr( qt_QGDict* instPointer,void* key, QPtrCollection::Item arg1, int arg2){
	return (QPtrCollection::Item) ((QGDictBridge*)instPointer)->look_ptr((void*)key, (QPtrCollection::Item)arg1, (int)arg2);
}
qt_QDataStream * qt_QGDict_read( qt_QGDict* instPointer,qt_QDataStream * arg1){
	return (qt_QDataStream *) ( QDataStream *)&((QGDictBridge*)instPointer)->read((QDataStream&)* (QDataStream*)arg1);
}
qt_QDataStream * qt_QGDict_write( qt_QGDict* instPointer,qt_QDataStream * arg1){
	return (qt_QDataStream *) ( QDataStream *)&((QGDictBridge*)instPointer)->write((QDataStream&)* (QDataStream*)arg1);
}
//qt_QGDict * qt_new_QGDict(unsigned int len, int kt, int cs, int ck){
//	return (qt_QGDict *) new QGDictBridge((uint)len, (QGDict::KeyType)kt, (bool)cs, (bool)ck);
//}
//qt_QGDict * qt_new_QGDict1(qt_QGDict* arg1){
//	return (qt_QGDict *) new QGDictBridge((QGDict&)* (QGDict*)arg1);
//}
void qt_del_QGDict( qt_QGDict* p ){
	delete (QGDictBridge*) p;
}
int qt_QGDict_remove_string( qt_QGDict* instPointer,qt_QString * key, QPtrCollection::Item item){
	return (int) ((QGDictBridge*)instPointer)->protected_remove_string((QString&)* (QString*)key, (QPtrCollection::Item)item);
}
int qt_QGDict_remove_ascii( qt_QGDict* instPointer,char* key, QPtrCollection::Item item){
	return (int) ((QGDictBridge*)instPointer)->protected_remove_ascii((char*)key, (QPtrCollection::Item)item);
}
int qt_QGDict_remove_int( qt_QGDict* instPointer,long key, QPtrCollection::Item item){
	return (int) ((QGDictBridge*)instPointer)->protected_remove_int((long)key, (QPtrCollection::Item)item);
}
int qt_QGDict_remove_ptr( qt_QGDict* instPointer,void* key, QPtrCollection::Item item){
	return (int) ((QGDictBridge*)instPointer)->protected_remove_ptr((void*)key, (QPtrCollection::Item)item);
}
QPtrCollection::Item qt_QGDict_take_string( qt_QGDict* instPointer,qt_QString * key){
	return (QPtrCollection::Item) ((QGDictBridge*)instPointer)->protected_take_string((QString&)* (QString*)key);
}
QPtrCollection::Item qt_QGDict_take_ascii( qt_QGDict* instPointer,char* key){
	return (QPtrCollection::Item) ((QGDictBridge*)instPointer)->protected_take_ascii((char*)key);
}
QPtrCollection::Item qt_QGDict_take_int( qt_QGDict* instPointer,long key){
	return (QPtrCollection::Item) ((QGDictBridge*)instPointer)->protected_take_int((long)key);
}
QPtrCollection::Item qt_QGDict_take_ptr( qt_QGDict* instPointer,void* key){
	return (QPtrCollection::Item) ((QGDictBridge*)instPointer)->protected_take_ptr((void*)key);
}
void qt_QGDict_clear( qt_QGDict* instPointer){
	((QGDictBridge*)instPointer)->protected_clear();
	return;
}
void qt_QGDict_resize( qt_QGDict* instPointer,unsigned int arg1){
	((QGDictBridge*)instPointer)->protected_resize((uint)arg1);
	return;
}
int qt_QGDict_hashKeyString( qt_QGDict* instPointer,qt_QString * arg1){
	return (int) ((QGDictBridge*)instPointer)->protected_hashKeyString((QString&)* (QString*)arg1);
}
int qt_QGDict_hashKeyAscii( qt_QGDict* instPointer,char* arg1){
	return (int) ((QGDictBridge*)instPointer)->protected_hashKeyAscii((char*)arg1);
}
void qt_QGDict_statistics( qt_QGDict* instPointer){
	((QGDictBridge*)instPointer)->protected_statistics();
	return;
}
qt_QDataStream * qt_QGDict_read1( qt_QGDict* instPointer,qt_QDataStream * arg1, QPtrCollection::Item arg2){
	return (qt_QDataStream *) ( QDataStream *)&((QGDictBridge*)instPointer)->protected_read((QDataStream&)* (QDataStream*)arg1, (QPtrCollection::Item&)arg2);
}
qt_QDataStream * qt_QGDict_write1( qt_QGDict* instPointer,qt_QDataStream * arg1, QPtrCollection::Item arg2){
	return (qt_QDataStream *) ( QDataStream *)&((QGDictBridge*)instPointer)->protected_write((QDataStream&)* (QDataStream*)arg1, (QPtrCollection::Item)arg2);
}
