Konsole::SSHProcessInfo

Search for usage in LXR

Konsole::SSHProcessInfo Class Reference

#include <ProcessInfo.h>

Public Member Functions

 SSHProcessInfo (const ProcessInfo &process)
 
QString command () const
 
QString format (const QString &input) const
 
QString host () const
 
QString port () const
 
QString userName () const
 

Detailed Description

Lightweight class which provides additional information about SSH processes.

Definition at line 398 of file ProcessInfo.h.

Constructor & Destructor Documentation

◆ SSHProcessInfo()

SSHProcessInfo::SSHProcessInfo ( const ProcessInfo & process)
explicit

Constructs a new SSHProcessInfo instance which provides additional information about the specified SSH process.

Parameters
processA ProcessInfo instance for a SSH process.

Definition at line 1034 of file ProcessInfo.cpp.

Member Function Documentation

◆ command()

QString SSHProcessInfo::command ( ) const

Returns the command which the user specified to execute on the remote computer when starting the SSH process.

Definition at line 1148 of file ProcessInfo.cpp.

◆ format()

QString SSHProcessInfo::format ( const QString & input) const

Operates in the same way as ProcessInfo::format(), except that the set of markers understood is different:

u - Replaced with user name which the user initially logged into on the remote computer. h - Replaced with the first part of the host name which is connected to. H - Replaced with the full host name of the computer which is connected to. c - Replaced with the command which the user specified to execute when starting the SSH process.

Definition at line 1152 of file ProcessInfo.cpp.

◆ host()

QString SSHProcessInfo::host ( ) const

Returns the host which the user has connected to.

Definition at line 1140 of file ProcessInfo.cpp.

◆ port()

QString SSHProcessInfo::port ( ) const

Returns the port on host which the user has connected to.

Definition at line 1144 of file ProcessInfo.cpp.

◆ userName()

QString SSHProcessInfo::userName ( ) const

Returns the user name which the user initially logged into on the remote computer.

Definition at line 1136 of file ProcessInfo.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:55:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.