• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDEsu

  • kdesu
ssh.h
Go to the documentation of this file.
1/* vi: ts=8 sts=4 sw=4
2 *
3 * This file is part of the KDE project, module kdesu.
4 * Copyright (C) 2000 Geert Jansen <jansen@kde.org>
5 *
6 * This is free software; you can use this library under the GNU Library
7 * General Public License, version 2. See the file "COPYING.LIB" for the
8 * exact licensing terms.
9 */
10
11#ifndef __SSH_h_Included__
12#define __SSH_h_Included__
13
14#include "stub.h"
15
16#include <kdesu/kdesu_export.h>
17
18namespace KDESu {
19
24class KDESU_EXPORT SshProcess: public StubProcess
25{
26public:
27 explicit SshProcess(const QByteArray &host = QByteArray(),
28 const QByteArray &user = QByteArray(),
29 const QByteArray &command = QByteArray());
30 ~SshProcess();
31
32 enum Errors { SshNotFound=1, SshNeedsPassword, SshIncorrectPassword };
33
37 void setHost(const QByteArray &host);
38
42 void setStub(const QByteArray &stub);
43
51 int checkNeedPassword();
52
57 int checkInstall(const char *password);
58
62 int exec(const char *password, int check=0);
63
64 QByteArray prompt() const;
65 QByteArray error() const;
66
67protected:
68 virtual QByteArray display();
69 virtual QByteArray displayAuth();
70
71private:
72 int ConverseSsh(const char *password, int check);
73
74protected:
75 virtual void virtual_hook( int id, void* data );
76private:
77 class SshProcessPrivate;
78 SshProcessPrivate * const d;
79};
80
81}
82
83#endif
KDESu::SshProcess
Executes a remote command, using ssh.
Definition: ssh.h:25
KDESu::SshProcess::Errors
Errors
Definition: ssh.h:32
KDESu::StubProcess
Chat with kdesu_stub.
Definition: stub.h:33
kdesu_export.h
KDESu
Definition: client.cpp:41
stub.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEsu

Skip menu "KDEsu"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal