/***************************************************************************
                            qt_QGCacheIterator.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_QGCacheIterator.h"
}

#include <qgcache.h>

class QGCacheIteratorBridge : public QGCacheIterator
{
public:
	QGCacheIteratorBridge(const QGCache& arg1) : QGCacheIterator(arg1) {}
	QGCacheIteratorBridge(const QGCacheIterator& arg1) : QGCacheIterator(arg1) {}
	~QGCacheIteratorBridge() {}
	uint  protected_count() {
		return (uint ) QGCacheIterator::count();
	}
	bool  protected_atFirst() {
		return (bool ) QGCacheIterator::atFirst();
	}
	bool  protected_atLast() {
		return (bool ) QGCacheIterator::atLast();
	}
	QPtrCollection::Item  protected_toFirst() {
		return (QPtrCollection::Item ) QGCacheIterator::toFirst();
	}
	QPtrCollection::Item  protected_toLast() {
		return (QPtrCollection::Item ) QGCacheIterator::toLast();
	}
	QPtrCollection::Item  protected_get() {
		return (QPtrCollection::Item ) QGCacheIterator::get();
	}
	QString  protected_getKeyString() {
		return (QString ) QGCacheIterator::getKeyString();
	}
	const char * protected_getKeyAscii() {
		return (const char *) QGCacheIterator::getKeyAscii();
	}
	long  protected_getKeyInt() {
		return (long ) QGCacheIterator::getKeyInt();
	}
};

qt_QGCacheIterator * qt_new_QGCacheIterator(qt_QGCache* arg1){
	return (qt_QGCacheIterator *) new QGCacheIteratorBridge((QGCache&)* (QGCache*)arg1);
}
qt_QGCacheIterator * qt_new_QGCacheIterator1(qt_QGCacheIterator* arg1){
	return (qt_QGCacheIterator *) new QGCacheIteratorBridge((QGCacheIterator&)* (QGCacheIterator*)arg1);
}
void qt_del_QGCacheIterator( qt_QGCacheIterator* p ){
	delete (QGCacheIteratorBridge*) p;
}
unsigned int qt_QGCacheIterator_count( qt_QGCacheIterator* instPointer){
	return (unsigned int) ((QGCacheIteratorBridge*)instPointer)->protected_count();
}
int qt_QGCacheIterator_atFirst( qt_QGCacheIterator* instPointer){
	return (int) ((QGCacheIteratorBridge*)instPointer)->protected_atFirst();
}
int qt_QGCacheIterator_atLast( qt_QGCacheIterator* instPointer){
	return (int) ((QGCacheIteratorBridge*)instPointer)->protected_atLast();
}
QPtrCollection::Item qt_QGCacheIterator_toFirst( qt_QGCacheIterator* instPointer){
	return (QPtrCollection::Item) ((QGCacheIteratorBridge*)instPointer)->protected_toFirst();
}
QPtrCollection::Item qt_QGCacheIterator_toLast( qt_QGCacheIterator* instPointer){
	return (QPtrCollection::Item) ((QGCacheIteratorBridge*)instPointer)->protected_toLast();
}
QPtrCollection::Item qt_QGCacheIterator_get( qt_QGCacheIterator* instPointer){
	return (QPtrCollection::Item) ((QGCacheIteratorBridge*)instPointer)->protected_get();
}
qt_QString * qt_QGCacheIterator_getKeyString( qt_QGCacheIterator* instPointer){
	return (qt_QString *)new QString(((QGCacheIteratorBridge*)instPointer)->protected_getKeyString());
}
char* qt_QGCacheIterator_getKeyAscii( qt_QGCacheIterator* instPointer){
	return (char*) ((QGCacheIteratorBridge*)instPointer)->protected_getKeyAscii();
}
long qt_QGCacheIterator_getKeyInt( qt_QGCacheIterator* instPointer){
	return (long) ((QGCacheIteratorBridge*)instPointer)->protected_getKeyInt();
}
