/***************************************************************************
                            kde_KSessionManaged.cpp -  description
                             -------------------
    begin                : Sun Nov 24 16:54:36 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Nov 24 16:54:36 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_KSessionManaged.h"
}

#include <kapplication.h>

class KSessionManagedBridge : public KSessionManaged
{
public:
	KSessionManagedBridge() : KSessionManaged() {}
	~KSessionManagedBridge() {}
	void protected_virtual_hook(int id, void* data) {
		KSessionManaged::virtual_hook(id, data);
		return;
	}
};

kde_KSessionManaged * kde_new_KSessionManaged(){
	return (kde_KSessionManaged *) new KSessionManagedBridge();
}
void kde_del_KSessionManaged( kde_KSessionManaged* p ){
	delete (KSessionManagedBridge*) p;
}
int kde_KSessionManaged_saveState( kde_KSessionManaged* instPointer,qt_QSessionManager* sm){
	return (int) ((KSessionManagedBridge*)instPointer)->saveState((QSessionManager&)* (QSessionManager*)sm);
}
int kde_KSessionManaged_commitData( kde_KSessionManaged* instPointer,qt_QSessionManager* sm){
	return (int) ((KSessionManagedBridge*)instPointer)->commitData((QSessionManager&)* (QSessionManager*)sm);
}
void kde_KSessionManaged_virtual_hook( kde_KSessionManaged* instPointer,int identifier, void* data){
	((KSessionManagedBridge*)instPointer)->protected_virtual_hook((int)identifier, (void*)data);
	return;
}
