/***************************************************************************
                            kde_KDEsuClient.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_KDEsuClient.h"
}

#include <kdesu/client.h>

class KDEsuClientBridge : public KDEsuClient
{
public:
	KDEsuClientBridge() : KDEsuClient() {}
	~KDEsuClientBridge() {}
};

kde_KDEsuClient * kde_new_KDEsuClient(){
	return (kde_KDEsuClient *) new KDEsuClientBridge();
}
void kde_del_KDEsuClient( kde_KDEsuClient* p ){
	delete (KDEsuClientBridge*) p;
}
int kde_KDEsuClient_exec( kde_KDEsuClient* instPointer,qt_QCString* command, qt_QCString* user, qt_QCString* options, QCStringList env){
	return (int) ((KDEsuClientBridge*)instPointer)->exec((QCString&)* (QCString*)command, (QCString&)* (QCString*)user, (QCString&)* (QCString*)options, (QCStringList&)env);
}
int kde_KDEsuClient_setPass( kde_KDEsuClient* instPointer,char* pass, int timeout){
	return (int) ((KDEsuClientBridge*)instPointer)->setPass((char*)pass, (int)timeout);
}
int kde_KDEsuClient_setHost( kde_KDEsuClient* instPointer,qt_QCString* host){
	return (int) ((KDEsuClientBridge*)instPointer)->setHost((QCString&)* (QCString*)host);
}
int kde_KDEsuClient_setPriority( kde_KDEsuClient* instPointer,int priority){
	return (int) ((KDEsuClientBridge*)instPointer)->setPriority((int)priority);
}
int kde_KDEsuClient_setScheduler( kde_KDEsuClient* instPointer,int scheduler){
	return (int) ((KDEsuClientBridge*)instPointer)->setScheduler((int)scheduler);
}
int kde_KDEsuClient_delCommand( kde_KDEsuClient* instPointer,qt_QCString* command, qt_QCString* user){
	return (int) ((KDEsuClientBridge*)instPointer)->delCommand((QCString&)* (QCString*)command, (QCString&)* (QCString*)user);
}
int kde_KDEsuClient_setVar( kde_KDEsuClient* instPointer,qt_QCString* key, qt_QCString* value, int timeout, qt_QCString* group){
	return (int) ((KDEsuClientBridge*)instPointer)->setVar((QCString&)* (QCString*)key, (QCString&)* (QCString*)value, (int)timeout, (QCString&)* (QCString*)group);
}
qt_QCString* kde_KDEsuClient_getVar( kde_KDEsuClient* instPointer,qt_QCString* key){
	return (qt_QCString*)new QCString(((KDEsuClientBridge*)instPointer)->getVar((QCString&)* (QCString*)key));
}
int kde_KDEsuClient_findGroup( kde_KDEsuClient* instPointer,qt_QCString* group){
	return (int) ((KDEsuClientBridge*)instPointer)->findGroup((QCString&)* (QCString*)group);
}
int kde_KDEsuClient_delVar( kde_KDEsuClient* instPointer,qt_QCString* key){
	return (int) ((KDEsuClientBridge*)instPointer)->delVar((QCString&)* (QCString*)key);
}
int kde_KDEsuClient_delVars( kde_KDEsuClient* instPointer,qt_QCString* special_key){
	return (int) ((KDEsuClientBridge*)instPointer)->delVars((QCString&)* (QCString*)special_key);
}
int kde_KDEsuClient_delGroup( kde_KDEsuClient* instPointer,qt_QCString* group){
	return (int) ((KDEsuClientBridge*)instPointer)->delGroup((QCString&)* (QCString*)group);
}
int kde_KDEsuClient_ping( kde_KDEsuClient* instPointer){
	return (int) ((KDEsuClientBridge*)instPointer)->ping();
}
int kde_KDEsuClient_stopServer( kde_KDEsuClient* instPointer){
	return (int) ((KDEsuClientBridge*)instPointer)->stopServer();
}
int kde_KDEsuClient_startServer( kde_KDEsuClient* instPointer){
	return (int) ((KDEsuClientBridge*)instPointer)->startServer();
}
int kde_KDEsuClient_isServerSGID( kde_KDEsuClient* instPointer){
	return (int) ((KDEsuClientBridge*)instPointer)->isServerSGID();
}
