/***************************************************************************
                            kde_KKey.cpp -  description
                             -------------------
    begin                : Tue Mar 19 20:11:49 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Mar 19 20:11:49 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_KKey.h"
}

#include <kshortcut.h>

class KKeyBridge : public KKey
{
public:
	KKeyBridge() : KKey() {}
	KKeyBridge(int keyQt) : KKey(keyQt) {}
	KKeyBridge(const QKeySequence& arg1) : KKey(arg1) {}
	KKeyBridge(const QKeyEvent* arg1) : KKey(arg1) {}
	KKeyBridge(const KKey& arg1) : KKey(arg1) {}
	KKeyBridge(const QString& arg1) : KKey(arg1) {}
	KKeyBridge(uint key, uint mod) : KKey(key, mod) {}
	~KKeyBridge() {}
};

kde_KKey * kde_new_KKey(){
	return (kde_KKey *) new KKeyBridge();
}
kde_KKey * kde_new_KKey1(int keyQt){
	return (kde_KKey *) new KKeyBridge((int)keyQt);
}
kde_KKey * kde_new_KKey2(qt_QKeySequence* arg1){
	return (kde_KKey *) new KKeyBridge((QKeySequence&)* (QKeySequence*)arg1);
}
kde_KKey * kde_new_KKey3(qt_QKeyEvent* arg1){
	return (kde_KKey *) new KKeyBridge((QKeyEvent*)arg1);
}
kde_KKey * kde_new_KKey4(kde_KKey* arg1){
	return (kde_KKey *) new KKeyBridge((KKey&)* (KKey*)arg1);
}
kde_KKey * kde_new_KKey5(qt_QString * arg1){
	return (kde_KKey *) new KKeyBridge((QString&)* (QString*)arg1);
}
kde_KKey * kde_new_KKey6(unsigned int key, unsigned int mod){
	return (kde_KKey *) new KKeyBridge((uint)key, (uint)mod);
}
void kde_del_KKey( kde_KKey* p ){
	delete (KKeyBridge*) p;
}
void kde_KKey_clear( kde_KKey* instPointer){
	((KKeyBridge*)instPointer)->clear();
	return;
}
int kde_KKey_init( kde_KKey* instPointer,int keyQt){
	return (int) ((KKeyBridge*)instPointer)->init((int)keyQt);
}
int kde_KKey_init1( kde_KKey* instPointer,qt_QKeySequence* arg1){
	return (int) ((KKeyBridge*)instPointer)->init((QKeySequence&)* (QKeySequence*)arg1);
}
int kde_KKey_init2( kde_KKey* instPointer,qt_QKeyEvent* arg1){
	return (int) ((KKeyBridge*)instPointer)->init((QKeyEvent*)arg1);
}
int kde_KKey_init3( kde_KKey* instPointer,kde_KKey* arg1){
	return (int) ((KKeyBridge*)instPointer)->init((KKey&)* (KKey*)arg1);
}
int kde_KKey_init4( kde_KKey* instPointer,qt_QString * arg1){
	return (int) ((KKeyBridge*)instPointer)->init((QString&)* (QString*)arg1);
}
int kde_KKey_init5( kde_KKey* instPointer,unsigned int key, unsigned int mod){
	return (int) ((KKeyBridge*)instPointer)->init((uint)key, (uint)mod);
}
int kde_KKey_isNull( kde_KKey* instPointer){
	return (int) ((KKeyBridge*)instPointer)->isNull();
}
//int kde_KKey_isValidQt( kde_KKey* instPointer){
//	return (int) ((KKeyBridge*)instPointer)->isValidQt();
//}
//int kde_KKey_isValidNative( kde_KKey* instPointer){
//	return (int) ((KKeyBridge*)instPointer)->isValidNative();
//}
unsigned int kde_KKey_sym( kde_KKey* instPointer){
	return (unsigned int) ((KKeyBridge*)instPointer)->sym();
}
unsigned int kde_KKey_modFlags( kde_KKey* instPointer){
	return (unsigned int) ((KKeyBridge*)instPointer)->modFlags();
}
int kde_KKey_compare( kde_KKey* instPointer,kde_KKey* arg1){
	return (int) ((KKeyBridge*)instPointer)->compare((KKey&)* (KKey*)arg1);
}
int kde_KKey_keyCodeQt( kde_KKey* instPointer){
	return (int) ((KKeyBridge*)instPointer)->keyCodeQt();
}
qt_QString * kde_KKey_toString( kde_KKey* instPointer){
	return (qt_QString *)new QString(((KKeyBridge*)instPointer)->toString());
}
qt_QString * kde_KKey_toStringInternal( kde_KKey* instPointer){
	return (qt_QString *)new QString(((KKeyBridge*)instPointer)->toStringInternal());
}
void kde_KKey_simplify( kde_KKey* instPointer){
	((KKeyBridge*)instPointer)->simplify();
	return;
}
kde_KKey* kde_KKey_null( ){
	return (kde_KKey*) ( KKey *)&KKeyBridge::null();
}
qt_QString * kde_KKey_modFlagLabel( int arg1){
	return (qt_QString *)new QString(KKeyBridge::modFlagLabel((KKey::ModFlag)arg1));
}
