• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdesu
 

tdesu

  • tdesu
ssh.h
1/*
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
26class TDESU_EXPORT SshProcess: public StubProcess
27{
28public:
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
67protected:
68 virtual TQCString display();
69 virtual TQCString displayAuth();
70 virtual TQCString dcopServer();
71
72private:
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
83protected:
84 virtual void virtual_hook( int id, void* data );
85private:
86 class SshProcessPrivate;
87 SshProcessPrivate *d;
88};
89
90#endif
PtyProcess::exec
int exec(const TQCString &command, const QCStringList &args)
Forks off and execute a command.
Definition: process.cpp:324
SshProcess
Executes a remote command, using ssh.
Definition: ssh.h:27
SshProcess::setHost
void setHost(const TQCString &host)
Sets the target host.
Definition: ssh.h:37
StubProcess
Chat with tdesu_stub.
Definition: stub.h:33
StubProcess::display
virtual TQCString display()
This virtual function can be overloaded when special behavior is desired.
Definition: stub.h:100
StubProcess::dcopServer
virtual TQCString dcopServer()
See display.
Definition: stub.h:110

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
Generated for tdesu by doxygen 1.9.4
This website is maintained by Timothy Pearson.