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

KDEsu

  • sources
  • kde-4.12
  • kdelibs
  • 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 
18 namespace KDESu {
19 
24 class KDESU_EXPORT SshProcess: public StubProcess
25 {
26 public:
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 
67 protected:
68  virtual QByteArray display();
69  virtual QByteArray displayAuth();
70 
71 private:
72  int ConverseSsh(const char *password, int check);
73 
74 protected:
75  virtual void virtual_hook( int id, void* data );
76 private:
77  class SshProcessPrivate;
78  SshProcessPrivate * const d;
79 };
80 
81 }
82 
83 #endif
kdesu_export.h
KDESu::SshProcess::Errors
Errors
Definition: ssh.h:32
stub.h
KDESu::SshProcess
Executes a remote command, using ssh.
Definition: ssh.h:24
KDESu::StubProcess
Chat with kdesu_stub.
Definition: stub.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:48 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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