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

#include <qevent.h>

class QKeyEventBridge : public QKeyEvent
{
public:
	QKeyEventBridge(Type type, int key, int ascii, int state, const QString& text, bool autorep, ushort count) : QKeyEvent(type, key, ascii, state, text, autorep, count) {}
};

qt_QKeyEvent * qt_new_QKeyEvent(int type, int key, int ascii, int state, qt_QString * text, int autorep, unsigned short count){
	return (qt_QKeyEvent *) new QKeyEventBridge((QEvent::Type)type, (int)key, (int)ascii, (int)state, (QString&)* (QString*)text, (bool)autorep, (ushort)count);
}
int qt_QKeyEvent_key( qt_QKeyEvent* instPointer){
	return (int) ((QKeyEventBridge*)instPointer)->key();
}
int qt_QKeyEvent_ascii( qt_QKeyEvent* instPointer){
	return (int) ((QKeyEventBridge*)instPointer)->ascii();
}
int qt_QKeyEvent_state( qt_QKeyEvent* instPointer){
	return (int) ((QKeyEventBridge*)instPointer)->state();
}
int qt_QKeyEvent_stateAfter( qt_QKeyEvent* instPointer){
	return (int) ((QKeyEventBridge*)instPointer)->stateAfter();
}
int qt_QKeyEvent_isAccepted( qt_QKeyEvent* instPointer){
	return (int) ((QKeyEventBridge*)instPointer)->isAccepted();
}
qt_QString * qt_QKeyEvent_text( qt_QKeyEvent* instPointer){
	return (qt_QString *)new QString(((QKeyEventBridge*)instPointer)->text());
}
int qt_QKeyEvent_isAutoRepeat( qt_QKeyEvent* instPointer){
	return (int) ((QKeyEventBridge*)instPointer)->isAutoRepeat();
}
int qt_QKeyEvent_count( qt_QKeyEvent* instPointer){
	return (int) ((QKeyEventBridge*)instPointer)->count();
}
void qt_QKeyEvent_accept( qt_QKeyEvent* instPointer){
	((QKeyEventBridge*)instPointer)->accept();
	return;
}
void qt_QKeyEvent_ignore( qt_QKeyEvent* instPointer){
	((QKeyEventBridge*)instPointer)->ignore();
	return;
}
