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

#include <kcompletion.h>

class KCompletionBridge : public KCompletion
{
public:
	KCompletionBridge() : KCompletion() {}
	~KCompletionBridge() {}
	void protected_postProcessMatch(QString* arg1) {
		KCompletion::postProcessMatch(arg1);
		return;
	}
	void protected_postProcessMatches(QStringList* arg1) {
		KCompletion::postProcessMatches(arg1);
		return;
	}
	void protected_postProcessMatches(KCompletionMatches* arg1) {
		KCompletion::postProcessMatches(arg1);
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};

kde_KCompletion * kde_new_KCompletion(){
	return (kde_KCompletion *) new KCompletionBridge();
}
void kde_del_KCompletion( kde_KCompletion* p ){
	delete (KCompletionBridge*) p;
}
qt_QString * kde_KCompletion_makeCompletion( kde_KCompletion* instPointer,qt_QString * string){
	return (qt_QString *)new QString(((KCompletionBridge*)instPointer)->makeCompletion((QString&)* (QString*)string));
}
qt_QStringList* kde_KCompletion_substringCompletion( kde_KCompletion* instPointer,qt_QString * string){
	return (qt_QStringList*)new QStringList(((KCompletionBridge*)instPointer)->substringCompletion((QString&)* (QString*)string));
}
qt_QString * kde_KCompletion_previousMatch( kde_KCompletion* instPointer){
	return (qt_QString *)new QString(((KCompletionBridge*)instPointer)->previousMatch());
}
qt_QString * kde_KCompletion_nextMatch( kde_KCompletion* instPointer){
	return (qt_QString *)new QString(((KCompletionBridge*)instPointer)->nextMatch());
}
qt_QString * kde_KCompletion_lastMatch( kde_KCompletion* instPointer){
	return (qt_QString *) (const QString *)&((KCompletionBridge*)instPointer)->lastMatch();
}
qt_QStringList* kde_KCompletion_items( kde_KCompletion* instPointer){
	return (qt_QStringList*)new QStringList(((KCompletionBridge*)instPointer)->items());
}
void kde_KCompletion_setCompletionMode( kde_KCompletion* instPointer,int mode){
	((KCompletionBridge*)instPointer)->setCompletionMode((KGlobalSettings::Completion)mode);
	return;
}
int kde_KCompletion_completionMode( kde_KCompletion* instPointer){
	return (int) ((KCompletionBridge*)instPointer)->completionMode();
}
void kde_KCompletion_setOrder( kde_KCompletion* instPointer,int order){
	((KCompletionBridge*)instPointer)->setOrder((KCompletion::CompOrder)order);
	return;
}
int kde_KCompletion_order( kde_KCompletion* instPointer){
	return (int) ((KCompletionBridge*)instPointer)->order();
}
void kde_KCompletion_setIgnoreCase( kde_KCompletion* instPointer,int ignoreCase){
	((KCompletionBridge*)instPointer)->setIgnoreCase((bool)ignoreCase);
	return;
}
int kde_KCompletion_ignoreCase( kde_KCompletion* instPointer){
	return (int) ((KCompletionBridge*)instPointer)->ignoreCase();
}
qt_QStringList* kde_KCompletion_allMatches( kde_KCompletion* instPointer){
	return (qt_QStringList*)new QStringList(((KCompletionBridge*)instPointer)->allMatches());
}
qt_QStringList* kde_KCompletion_allMatches1( kde_KCompletion* instPointer,qt_QString * string){
	return (qt_QStringList*)new QStringList(((KCompletionBridge*)instPointer)->allMatches((QString&)* (QString*)string));
}
KCompletionMatches kde_KCompletion_allWeightedMatches( kde_KCompletion* instPointer){
	return (KCompletionMatches) ((KCompletionBridge*)instPointer)->allWeightedMatches();
}
KCompletionMatches kde_KCompletion_allWeightedMatches1( kde_KCompletion* instPointer,qt_QString * string){
	return (KCompletionMatches) ((KCompletionBridge*)instPointer)->allWeightedMatches((QString&)* (QString*)string);
}
void kde_KCompletion_setEnableSounds( kde_KCompletion* instPointer,int enable){
	((KCompletionBridge*)instPointer)->setEnableSounds((bool)enable);
	return;
}
int kde_KCompletion_isSoundsEnabled( kde_KCompletion* instPointer){
	return (int) ((KCompletionBridge*)instPointer)->isSoundsEnabled();
}
int kde_KCompletion_hasMultipleMatches( kde_KCompletion* instPointer){
	return (int) ((KCompletionBridge*)instPointer)->hasMultipleMatches();
}
void kde_KCompletion_enableSounds( kde_KCompletion* instPointer){
	((KCompletionBridge*)instPointer)->enableSounds();
	return;
}
void kde_KCompletion_disableSounds( kde_KCompletion* instPointer){
	((KCompletionBridge*)instPointer)->disableSounds();
	return;
}
void kde_KCompletion_slotMakeCompletion( kde_KCompletion* instPointer,qt_QString * string){
	((KCompletionBridge*)instPointer)->slotMakeCompletion((QString&)* (QString*)string);
	return;
}
void kde_KCompletion_slotPreviousMatch( kde_KCompletion* instPointer){
	((KCompletionBridge*)instPointer)->slotPreviousMatch();
	return;
}
void kde_KCompletion_slotNextMatch( kde_KCompletion* instPointer){
	((KCompletionBridge*)instPointer)->slotNextMatch();
	return;
}
void kde_KCompletion_insertItems( kde_KCompletion* instPointer,qt_QStringList* items){
	((KCompletionBridge*)instPointer)->insertItems((QStringList&)* (QStringList*)items);
	return;
}
void kde_KCompletion_setItems( kde_KCompletion* instPointer,qt_QStringList* arg1){
	((KCompletionBridge*)instPointer)->setItems((QStringList&)* (QStringList*)arg1);
	return;
}
void kde_KCompletion_addItem( kde_KCompletion* instPointer,qt_QString * arg1){
	((KCompletionBridge*)instPointer)->addItem((QString&)* (QString*)arg1);
	return;
}
void kde_KCompletion_addItem1( kde_KCompletion* instPointer,qt_QString * arg1, unsigned int weight){
	((KCompletionBridge*)instPointer)->addItem((QString&)* (QString*)arg1, (uint)weight);
	return;
}
void kde_KCompletion_removeItem( kde_KCompletion* instPointer,qt_QString * arg1){
	((KCompletionBridge*)instPointer)->removeItem((QString&)* (QString*)arg1);
	return;
}
void kde_KCompletion_clear( kde_KCompletion* instPointer){
	((KCompletionBridge*)instPointer)->clear();
	return;
}
void kde_KCompletion_postProcessMatch( kde_KCompletion* instPointer,qt_QString* arg1){
	((KCompletionBridge*)instPointer)->protected_postProcessMatch((QString*)arg1);
	return;
}
void kde_KCompletion_postProcessMatches( kde_KCompletion* instPointer,qt_QStringList* arg1){
	((KCompletionBridge*)instPointer)->protected_postProcessMatches((QStringList*)arg1);
	return;
}
void kde_KCompletion_postProcessMatches1( kde_KCompletion* instPointer,KCompletionMatches* arg1){
	((KCompletionBridge*)instPointer)->protected_postProcessMatches((KCompletionMatches*)arg1);
	return;
}
