/***************************************************************************
                            kde_QCStringList.cpp -  description
                             -------------------
    begin                : Mon Oct 15 14:17:29 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Mon Oct 15 14:17:29 2001, using kdoc $.
 ***************************************************************************/

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

#include <dcopclient.h>

static QCStringList::Iterator	iterator;

kde_QCStringList * kde_new_QCStringList(){
	return (kde_QCStringList *) new QCStringList();
}
void kde_QCStringList_begin( kde_QCStringList* instPointer){
	iterator = ((QCStringList*)instPointer)->begin();
	return;
}
qt_QCString * kde_QCStringList_current(){
	if ( *iterator == NULL ) {
		return NULL;
	} else {
		return (qt_QCString *) new QCString(*iterator);
	}
}
qt_QCString * kde_QCStringList_next(){
	iterator++;
	return kde_QCStringList_current();
}
void kde_QCStringList_clear( kde_QCStringList* instPointer){
	((QCStringList*)instPointer)->clear();
}
void kde_QCStringList_append( kde_QCStringList* instPointer, qt_QCString * string){
	((QCStringList*)instPointer)->append((QCString&) * (QCString*)string);
}

