Konsole
ProcessInfo.h
Go to the documentation of this file.
QString userHomeDir() const
Returns the user's home directory of the process.
Definition: ProcessInfo.cpp:252
QMap< QString, QString > environment(bool *ok) const
Returns the environment bindings which the process was started with.
Definition: ProcessInfo.cpp:200
QString currentDir(bool *ok) const
Returns the current working directory of the process.
Definition: ProcessInfo.cpp:300
void setUserName(const QString &name)
Sets the user name of the process as set by readUserName()
Definition: ProcessInfo.cpp:274
virtual bool readProcessInfo(int pid, bool readEnvironment)
This is called on construction to read the process state Subclasses should reimplement this function ...
Definition: ProcessInfo.cpp:357
void setCurrentDir(const QString &dir)
Sets the current working directory for the process.
Definition: ProcessInfo.cpp:307
int foregroundPid(bool *ok) const
Returns the id of the current foreground process.
Definition: ProcessInfo.cpp:226
void setPid(int pid)
Sets the process id associated with this ProcessInfo instance.
Definition: ProcessInfo.cpp:262
static ProcessInfo * newInstance(int pid, bool readEnvironment=false)
Constructs a new instance of a suitable ProcessInfo sub-class for the current platform which provides...
Definition: ProcessInfo.cpp:1165
NullProcessInfo(int pid, bool readEnvironment=false)
Constructs a new NullProcessInfo instance.
Definition: ProcessInfo.cpp:352
ProcessInfo(int pid, bool readEnvironment=false)
Constructs a new process instance.
Definition: ProcessInfo.cpp:68
QString userName() const
Returns the user name which the user initially logged into on the remote computer.
Definition: ProcessInfo.cpp:1119
void setName(const QString &name)
Sets the name of the process as returned by name()
Definition: ProcessInfo.cpp:313
void setUserHomeDir()
Forces the user home directory to be calculated.
Definition: ProcessInfo.cpp:280
QString name(bool *ok) const
Returns the name of the current process.
Definition: ProcessInfo.cpp:233
QString command() const
Returns the command which the user specified to execute on the remote computer when starting the SSH ...
Definition: ProcessInfo.cpp:1131
Implementation of ProcessInfo for Unix platforms which uses the /proc filesystem. ...
Definition: ProcessInfo.h:354
void addEnvironmentBinding(const QString &name, const QString &value)
Adds an environment binding for the process, as returned by environment()
Definition: ProcessInfo.cpp:328
Lightweight class which provides additional information about SSH processes.
Definition: ProcessInfo.h:406
Takes a snapshot of the state of a process and provides access to information such as the process nam...
Definition: ProcessInfo.h:74
QString format(const QString &text) const
Parses an input string, looking for markers beginning with a '' character and returns a string with t...
Definition: ProcessInfo.cpp:120
UnixProcessInfo(int pid, bool readEnvironment=false)
Constructs a new instance of UnixProcessInfo.
Definition: ProcessInfo.cpp:367
void setUserId(int uid)
Sets the user id associated with this ProcessInfo instance.
Definition: ProcessInfo.cpp:268
virtual bool readProcessInfo(int pid, bool readEnvironment)
Implementation of ProcessInfo::readProcessInfo(); calls the four private methods below in turn...
Definition: ProcessInfo.cpp:372
virtual void readUserName(void)=0
QString host() const
Returns the host which the user has connected to.
Definition: ProcessInfo.cpp:1123
void setForegroundPid(int pid)
Sets the foreground process id as returned by foregroundPid()
Definition: ProcessInfo.cpp:294
Error
This enum describes the errors which can occur when trying to read a process's information.
Definition: ProcessInfo.h:197
QString validCurrentDir() const
Returns the current working directory of the process (or its parent)
Definition: ProcessInfo.cpp:101
bool isValid() const
Returns true if the process state was read successfully.
Definition: ProcessInfo.cpp:207
virtual void readUserName(void)
Definition: ProcessInfo.cpp:389
SSHProcessInfo(const ProcessInfo &process)
Constructs a new SSHProcessInfo instance which provides additional information about the specified SS...
Definition: ProcessInfo.cpp:1017
Implementation of ProcessInfo which does nothing.
Definition: ProcessInfo.h:336
QString format(const QString &input) const
Operates in the same way as ProcessInfo::format(), except that the set of markers understood is diffe...
Definition: ProcessInfo.cpp:1135
int parentPid(bool *ok) const
Returns the id of the parent process id was read successfully or false otherwise. ...
Definition: ProcessInfo.cpp:219
QVector< QString > arguments(bool *ok) const
Returns the command-line arguments which the process was started with.
Definition: ProcessInfo.cpp:193
void addArgument(const QString &argument)
Adds a commandline argument for the process, as returned by arguments()
Definition: ProcessInfo.cpp:318
Konsole does not have permission to obtain the process information.
Definition: ProcessInfo.h:203
void setParentPid(int pid)
Sets the parent process id as returned by parentPid()
Definition: ProcessInfo.cpp:289
virtual void readUserName(void)
Definition: ProcessInfo.cpp:362
void clearArguments()
clear the commandline arguments for the process, as returned by arguments()
Definition: ProcessInfo.cpp:323
virtual bool readProcessInfo(int pid, bool readEnvironment)=0
This is called on construction to read the process state Subclasses should reimplement this function ...
QString port() const
Returns the port on host which the user has connected to.
Definition: ProcessInfo.cpp:1127
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.