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

#include <kaccel.h>

class KAccelBridge : public KAccel
{
public:
	KAccelBridge(QWidget* pParent, const char* psName) : KAccel(pParent, psName) {}
	KAccelBridge(QWidget* watch, QObject* parent, const char* psName) : KAccel(watch, parent, psName) {}
	~KAccelBridge() {}
	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_KAccel * kde_new_KAccel(qt_QWidget * pParent, char* psName){
	return (kde_KAccel *) new KAccelBridge((QWidget*)pParent, (char*)psName);
}
kde_KAccel * kde_new_KAccel1(qt_QWidget * watch, qt_QObject * parent, char* psName){
	return (kde_KAccel *) new KAccelBridge((QWidget*)watch, (QObject*)parent, (char*)psName);
}
void kde_del_KAccel( kde_KAccel* p ){
	delete (KAccelBridge*) p;
}
kde_KAccelActions* kde_KAccel_actions( kde_KAccel* instPointer){
	return (kde_KAccelActions*) ( KAccelActions *)&((KAccelBridge*)instPointer)->actions();
}
kde_KAccelActions* kde_KAccel_actions1( kde_KAccel* instPointer){
	return (kde_KAccelActions*) (const KAccelActions *)&((KAccelBridge*)instPointer)->actions();
}
int kde_KAccel_isEnabled( kde_KAccel* instPointer){
	return (int) ((KAccelBridge*)instPointer)->isEnabled();
}
void kde_KAccel_setEnabled( kde_KAccel* instPointer,int bEnabled){
	((KAccelBridge*)instPointer)->setEnabled((bool)bEnabled);
	return;
}
//int kde_KAccel_getAutoUpdate( kde_KAccel* instPointer){
//	return (int) ((KAccelBridge*)instPointer)->getAutoUpdate();
//}
int kde_KAccel_setAutoUpdate( kde_KAccel* instPointer,int bAuto){
	return (int) ((KAccelBridge*)instPointer)->setAutoUpdate((bool)bAuto);
}
kde_KAccelAction* kde_KAccel_insert( kde_KAccel* instPointer,qt_QString * sAction, qt_QString * sLabel, qt_QString * sWhatsThis, kde_KShortcut* cutDef, qt_QObject * pObjSlot, char* psMethodSlot, int bConfigurable, int bEnabled){
	return (kde_KAccelAction*) ((KAccelBridge*)instPointer)->insert((QString&)* (QString*)sAction, (QString&)* (QString*)sLabel, (QString&)* (QString*)sWhatsThis, (KShortcut&)* (KShortcut*)cutDef, (QObject*)pObjSlot, (char*)psMethodSlot, (bool)bConfigurable, (bool)bEnabled);
}
kde_KAccelAction* kde_KAccel_insert1( kde_KAccel* instPointer,qt_QString * sAction, qt_QString * sLabel, qt_QString * sWhatsThis, kde_KShortcut* cutDef3, kde_KShortcut* cutDef4, qt_QObject * pObjSlot, char* psMethodSlot, int bConfigurable, int bEnabled){
	return (kde_KAccelAction*) ((KAccelBridge*)instPointer)->insert((QString&)* (QString*)sAction, (QString&)* (QString*)sLabel, (QString&)* (QString*)sWhatsThis, (KShortcut&)* (KShortcut*)cutDef3, (KShortcut&)* (KShortcut*)cutDef4, (QObject*)pObjSlot, (char*)psMethodSlot, (bool)bConfigurable, (bool)bEnabled);
}
kde_KAccelAction* kde_KAccel_insert2( kde_KAccel* instPointer,char* psAction, kde_KShortcut* cutDef, qt_QObject * pObjSlot, char* psMethodSlot, int bConfigurable, int bEnabled){
	return (kde_KAccelAction*) ((KAccelBridge*)instPointer)->insert((char*)psAction, (KShortcut&)* (KShortcut*)cutDef, (QObject*)pObjSlot, (char*)psMethodSlot, (bool)bConfigurable, (bool)bEnabled);
}
kde_KAccelAction* kde_KAccel_insert3( kde_KAccel* instPointer,int identifier, qt_QObject * pObjSlot, char* psMethodSlot, int bConfigurable, int bEnabled){
	return (kde_KAccelAction*) ((KAccelBridge*)instPointer)->insert((KStdAccel::StdAccel)identifier, (QObject*)pObjSlot, (char*)psMethodSlot, (bool)bConfigurable, (bool)bEnabled);
}
//kde_KAccelAction* kde_KAccel_insert4( kde_KAccel* instPointer,qt_QString * sName, qt_QString * sLabel){
//	return (kde_KAccelAction*) ((KAccelBridge*)instPointer)->insert((QString&)* (QString*)sName, (QString&)* (QString*)sLabel);
//}
int kde_KAccel_remove( kde_KAccel* instPointer,qt_QString * sAction){
	return (int) ((KAccelBridge*)instPointer)->remove((QString&)* (QString*)sAction);
}
int kde_KAccel_updateConnections( kde_KAccel* instPointer){
	return (int) ((KAccelBridge*)instPointer)->updateConnections();
}
kde_KShortcut* kde_KAccel_shortcut( kde_KAccel* instPointer,qt_QString * sAction){
	return (kde_KShortcut*) (const KShortcut *)&((KAccelBridge*)instPointer)->shortcut((QString&)* (QString*)sAction);
}
int kde_KAccel_setShortcut( kde_KAccel* instPointer,qt_QString * sAction, kde_KShortcut* arg1){
	return (int) ((KAccelBridge*)instPointer)->setShortcut((QString&)* (QString*)sAction, (KShortcut&)* (KShortcut*)arg1);
}
int kde_KAccel_setSlot( kde_KAccel* instPointer,qt_QString * sAction, qt_QObject * pObjSlot, char* psMethodSlot){
	return (int) ((KAccelBridge*)instPointer)->setSlot((QString&)* (QString*)sAction, (QObject*)pObjSlot, (char*)psMethodSlot);
}
int kde_KAccel_setEnabled1( kde_KAccel* instPointer,qt_QString * sAction, int bEnabled){
	return (int) ((KAccelBridge*)instPointer)->setEnabled((QString&)* (QString*)sAction, (bool)bEnabled);
}
int kde_KAccel_readSettings( kde_KAccel* instPointer,kde_KConfigBase* pConfig){
	return (int) ((KAccelBridge*)instPointer)->readSettings((KConfigBase*)pConfig);
}
int kde_KAccel_writeSettings( kde_KAccel* instPointer,kde_KConfigBase* pConfig){
	return (int) ((KAccelBridge*)instPointer)->writeSettings((KConfigBase*)pConfig);
}
void kde_KAccel_setConfigGroup( kde_KAccel* instPointer,qt_QString * arg1){
	((KAccelBridge*)instPointer)->setConfigGroup((QString&)* (QString*)arg1);
	return;
}
void kde_KAccel_emitKeycodeChanged( kde_KAccel* instPointer){
	((KAccelBridge*)instPointer)->emitKeycodeChanged();
	return;
}
int kde_KAccel_insertItem( kde_KAccel* instPointer,qt_QString * sLabel, qt_QString * sAction, char* psKey, int nIDMenu, qt_QPopupMenu* pMenu, int bConfigurable){
	return (int) ((KAccelBridge*)instPointer)->insertItem((QString&)* (QString*)sLabel, (QString&)* (QString*)sAction, (char*)psKey, (int)nIDMenu, (QPopupMenu*)pMenu, (bool)bConfigurable);
}
int kde_KAccel_insertItem1( kde_KAccel* instPointer,qt_QString * sLabel, qt_QString * sAction, int key, int nIDMenu, qt_QPopupMenu* pMenu, int bConfigurable){
	return (int) ((KAccelBridge*)instPointer)->insertItem((QString&)* (QString*)sLabel, (QString&)* (QString*)sAction, (int)key, (int)nIDMenu, (QPopupMenu*)pMenu, (bool)bConfigurable);
}
int kde_KAccel_insertStdItem( kde_KAccel* instPointer,int identifier, qt_QString * descr){
	return (int) ((KAccelBridge*)instPointer)->insertStdItem((KStdAccel::StdAccel)identifier, (QString&)* (QString*)descr);
}
int kde_KAccel_connectItem( kde_KAccel* instPointer,qt_QString * sAction, qt_QObject * pObjSlot, char* psMethodSlot, int bActivate){
	return (int) ((KAccelBridge*)instPointer)->connectItem((QString&)* (QString*)sAction, (QObject*)pObjSlot, (char*)psMethodSlot, (bool)bActivate);
}
int kde_KAccel_connectItem1( kde_KAccel* instPointer,int accel, qt_QObject * pObjSlot, char* psMethodSlot){
	return (int) ((KAccelBridge*)instPointer)->connectItem((KStdAccel::StdAccel)accel, (QObject*)pObjSlot, (char*)psMethodSlot);
}
int kde_KAccel_removeItem( kde_KAccel* instPointer,qt_QString * sAction){
	return (int) ((KAccelBridge*)instPointer)->removeItem((QString&)* (QString*)sAction);
}
int kde_KAccel_setItemEnabled( kde_KAccel* instPointer,qt_QString * sAction, int bEnable){
	return (int) ((KAccelBridge*)instPointer)->setItemEnabled((QString&)* (QString*)sAction, (bool)bEnable);
}
void kde_KAccel_changeMenuAccel( kde_KAccel* instPointer,qt_QPopupMenu* menu, int identifier, qt_QString * action){
	((KAccelBridge*)instPointer)->changeMenuAccel((QPopupMenu*)menu, (int)identifier, (QString&)* (QString*)action);
	return;
}
void kde_KAccel_changeMenuAccel1( kde_KAccel* instPointer,qt_QPopupMenu* menu, int identifier, int accel){
	((KAccelBridge*)instPointer)->changeMenuAccel((QPopupMenu*)menu, (int)identifier, (KStdAccel::StdAccel)accel);
	return;
}
int kde_KAccel_currentKey( kde_KAccel* instPointer,qt_QString * action){
	return (int) ((KAccelBridge*)instPointer)->currentKey((QString&)* (QString*)action);
}
qt_QString * kde_KAccel_findKey( kde_KAccel* instPointer,int key){
	return (qt_QString *)new QString(((KAccelBridge*)instPointer)->findKey((int)key));
}
int kde_KAccel_stringToKey( qt_QString * arg1){
	return (int) KAccelBridge::stringToKey((QString&)* (QString*)arg1);
}
