/***************************************************************************
                            kde_KRandomSequence.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, 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 "kde_KRandomSequence.h"
}

#include <krandomsequence.h>

class KRandomSequenceBridge : public KRandomSequence
{
public:
	KRandomSequenceBridge(long lngSeed) : KRandomSequence(lngSeed) {}
	~KRandomSequenceBridge() {}
	KRandomSequenceBridge(const KRandomSequence& a) : KRandomSequence(a) {}
};

kde_KRandomSequence * kde_new_KRandomSequence(long lngSeed){
	return (kde_KRandomSequence *) new KRandomSequenceBridge((long)lngSeed);
}
void kde_del_KRandomSequence( kde_KRandomSequence* p ){
	delete (KRandomSequenceBridge*) p;
}
kde_KRandomSequence * kde_new_KRandomSequence1(kde_KRandomSequence* a){
	return (kde_KRandomSequence *) new KRandomSequenceBridge((KRandomSequence&)* (KRandomSequence*)a);
}
void kde_KRandomSequence_setSeed( kde_KRandomSequence* instPointer,long lngSeed){
	((KRandomSequenceBridge*)instPointer)->setSeed((long)lngSeed);
	return;
}
double kde_KRandomSequence_getDouble( kde_KRandomSequence* instPointer){
	return (double) ((KRandomSequenceBridge*)instPointer)->getDouble();
}
unsigned long kde_KRandomSequence_getLong( kde_KRandomSequence* instPointer,unsigned long max){
	return (unsigned long) ((KRandomSequenceBridge*)instPointer)->getLong((unsigned long)max);
}
int kde_KRandomSequence_getBool( kde_KRandomSequence* instPointer){
	return (int) ((KRandomSequenceBridge*)instPointer)->getBool();
}
void kde_KRandomSequence_randomize( kde_KRandomSequence* instPointer,qt_QGList* list){
	((KRandomSequenceBridge*)instPointer)->randomize((QGList*)list);
	return;
}
void kde_KRandomSequence_modulate( kde_KRandomSequence* instPointer,int i){
	((KRandomSequenceBridge*)instPointer)->modulate((int)i);
	return;
}
