/***************************************************************************
                            kde_SshProcess.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_SshProcess.h"
}

#include <kdesu/ssh.h>

class SshProcessBridge : public SshProcess
{
public:
	SshProcessBridge(const QCString& host, const QCString& user, const QCString& command) : SshProcess(host, user, command) {}
	~SshProcessBridge() {}
	 QCString  protected_display() {
		return ( QCString ) SshProcess::display();
	}
	 QCString  protected_displayAuth() {
		return ( QCString ) SshProcess::displayAuth();
	}
	 QCString  protected_dcopServer() {
		return ( QCString ) SshProcess::dcopServer();
	}
};

kde_SshProcess * kde_new_SshProcess(qt_QCString* host, qt_QCString* user, qt_QCString* command){
	return (kde_SshProcess *) new SshProcessBridge((QCString&)* (QCString*)host, (QCString&)* (QCString*)user, (QCString&)* (QCString*)command);
}
void kde_del_SshProcess( kde_SshProcess* p ){
	delete (SshProcessBridge*) p;
}
void kde_SshProcess_setHost( kde_SshProcess* instPointer,qt_QCString* host){
	((SshProcessBridge*)instPointer)->setHost((QCString&)* (QCString*)host);
	return;
}
void kde_SshProcess_setStub( kde_SshProcess* instPointer,qt_QCString* stub){
	((SshProcessBridge*)instPointer)->setStub((QCString&)* (QCString*)stub);
	return;
}
int kde_SshProcess_checkNeedPassword( kde_SshProcess* instPointer){
	return (int) ((SshProcessBridge*)instPointer)->checkNeedPassword();
}
int kde_SshProcess_checkInstall( kde_SshProcess* instPointer,char* password){
	return (int) ((SshProcessBridge*)instPointer)->checkInstall((char*)password);
}
int kde_SshProcess_exec( kde_SshProcess* instPointer,char* password, int check){
	return (int) ((SshProcessBridge*)instPointer)->exec((char*)password, (int)check);
}
qt_QCString* kde_SshProcess_prompt( kde_SshProcess* instPointer){
	return (qt_QCString*)new QCString(((SshProcessBridge*)instPointer)->prompt());
}
qt_QCString* kde_SshProcess_error( kde_SshProcess* instPointer){
	return (qt_QCString*)new QCString(((SshProcessBridge*)instPointer)->error());
}
qt_QCString* kde_SshProcess_display( kde_SshProcess* instPointer){
	return (qt_QCString*)new QCString(((SshProcessBridge*)instPointer)->protected_display());
}
qt_QCString* kde_SshProcess_displayAuth( kde_SshProcess* instPointer){
	return (qt_QCString*)new QCString(((SshProcessBridge*)instPointer)->protected_displayAuth());
}
qt_QCString* kde_SshProcess_dcopServer( kde_SshProcess* instPointer){
	return (qt_QCString*)new QCString(((SshProcessBridge*)instPointer)->protected_dcopServer());
}
