Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
tdesu
tdesu
tdesu
ssh.h
1
/* vi: ts=8 sts=4 sw=4
2
*
3
* $Id$
4
*
5
* This file is part of the KDE project, module tdesu.
6
* Copyright (C) 2000 Geert Jansen <jansen@kde.org>
7
*
8
* This is free software; you can use this library under the GNU Library
9
* General Public License, version 2. See the file "COPYING.LIB" for the
10
* exact licensing terms.
11
*/
12
13
#ifndef __SSH_h_Included__
14
#define __SSH_h_Included__
15
16
#include <tqcstring.h>
17
18
#include "stub.h"
19
20
#include <tdelibs_export.h>
21
26
class
TDESU_EXPORT
SshProcess
:
public
StubProcess
27
{
28
public
:
29
SshProcess
(
const
TQCString &host=0,
const
TQCString &user=0,
const
TQCString &command=0);
30
~
SshProcess
();
31
32
enum
Errors { SshNotFound=1, SshNeedsPassword, SshIncorrectPassword };
33
37
void
setHost
(
const
TQCString &host) { m_Host = host; }
38
42
void
setStub(
const
TQCString &stub);
43
51
int
checkNeedPassword();
52
57
int
checkInstall(
const
char
*password);
58
62
int
exec
(
const
char
*password,
int
check=0);
63
64
TQCString prompt() {
return
m_Prompt; }
65
TQCString error() {
return
m_Error; }
66
67
protected
:
68
virtual
TQCString
display
();
69
virtual
TQCString displayAuth();
70
virtual
TQCString
dcopServer
();
71
72
private
:
73
TQCString dcopForward();
74
int
ConverseSsh(
const
char
*password,
int
check);
75
76
int
m_dcopPort;
77
int
m_dcopSrv;
78
TQCString m_Prompt;
79
TQCString m_Host;
80
TQCString m_Error;
81
TQCString m_Stub;
82
83
protected
:
84
virtual
void
virtual_hook(
int
id
,
void
* data );
85
private
:
86
class
SshProcessPrivate;
87
SshProcessPrivate *d;
88
};
89
90
#endif
tdesu
Skip menu "tdesu"
Main Page
Class Hierarchy
Alphabetical List
Class List
File List
Class Members
Related Pages
tdesu
Skip menu "tdesu"
arts
dcop
dnssd
interfaces
kspeech
interface
library
tdetexteditor
kate
kded
kdoctools
kimgio
kjs
libtdemid
libtdescreensaver
tdeabc
tdecmshell
tdecore
tdefx
tdehtml
tdeinit
tdeio
bookmarks
httpfilter
kpasswdserver
kssl
tdefile
tdeio
tdeioexec
tdeioslave
http
tdemdi
tdemdi
tdenewstuff
tdeparts
tdeprint
tderandr
tderesources
tdespell2
tdesu
tdeui
tdeunittest
tdeutils
tdewallet