MauiKit Terminal
ProcessInfo.h
163 * @param ok Set to true if the current working directory was read successfully or false otherwise
206 };
Implementation of ProcessInfo which does nothing.
Definition ProcessInfo.h:328
Takes a snapshot of the state of a process and provides access to information such as the process nam...
Definition ProcessInfo.h:75
int parentPid(bool *ok) const
Returns the id of the parent process id was read successfully or false otherwise.
Definition ProcessInfo.cpp:210
void setUserName(const QString &name)
Sets the user name of the process as set by readUserName()
Definition ProcessInfo.cpp:265
void clearArguments()
clear the commandline arguments for the process, as returned by arguments()
Definition ProcessInfo.cpp:310
ProcessInfo(int pid, bool readEnvironment=false)
Constructs a new process instance.
Definition ProcessInfo.cpp:60
void addEnvironmentBinding(const QString &name, const QString &value)
Adds an environment binding for the process, as returned by environment()
Definition ProcessInfo.cpp:315
void setName(const QString &name)
Sets the name of the process as returned by name()
Definition ProcessInfo.cpp:300
Error
This enum describes the errors which can occur when trying to read a process's information.
Definition ProcessInfo.h:199
@ PermissionsError
Konsole does not have permission to obtain the process information.
Definition ProcessInfo.h:205
QString currentDir(bool *ok) const
Returns the current working directory of the process.
Definition ProcessInfo.cpp:287
void setParentPid(int pid)
Sets the parent process id as returned by parentPid()
Definition ProcessInfo.cpp:276
void setPid(int pid)
Sets the process id associated with this ProcessInfo instance.
Definition ProcessInfo.cpp:253
int foregroundPid(bool *ok) const
Returns the id of the current foreground process.
Definition ProcessInfo.cpp:217
void setCurrentDir(const QString &dir)
Sets the current working directory for the process.
Definition ProcessInfo.cpp:294
QMap< QString, QString > environment(bool *ok) const
Returns the environment bindings which the process was started with.
Definition ProcessInfo.cpp:191
bool isValid() const
Returns true if the process state was read successfully.
Definition ProcessInfo.cpp:198
QString userHomeDir() const
Returns the user's home directory of the process.
Definition ProcessInfo.cpp:243
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:111
void setUserId(int uid)
Sets the user id associated with this ProcessInfo instance.
Definition ProcessInfo.cpp:259
QString validCurrentDir() const
Returns the current working directory of the process (or its parent)
Definition ProcessInfo.cpp:93
void setForegroundPid(int pid)
Sets the foreground process id as returned by foregroundPid()
Definition ProcessInfo.cpp:281
QVector< QString > arguments(bool *ok) const
Returns the command-line arguments which the process was started with.
Definition ProcessInfo.cpp:184
static std::unique_ptr< 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:1182
void addArgument(const QString &argument)
Adds a commandline argument for the process, as returned by arguments()
Definition ProcessInfo.cpp:305
virtual bool readProcessInfo(int pid, bool readEnvironment)=0
This is called on construction to read the process state Subclasses should reimplement this function ...
Lightweight class which provides additional information about SSH processes.
Definition ProcessInfo.h:399
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:1152
QString userName() const
Returns the user name which the user initially logged into on the remote computer.
Definition ProcessInfo.cpp:1136
QString host() const
Returns the host which the user has connected to.
Definition ProcessInfo.cpp:1140
QString command() const
Returns the command which the user specified to execute on the remote computer when starting the SSH ...
Definition ProcessInfo.cpp:1148
QString port() const
Returns the port on host which the user has connected to.
Definition ProcessInfo.cpp:1144
SSHProcessInfo(const ProcessInfo &process)
Constructs a new SSHProcessInfo instance which provides additional information about the specified SS...
Definition ProcessInfo.cpp:1034
Implementation of ProcessInfo for Unix platforms which uses the /proc filesystem.
Definition ProcessInfo.h:347
UnixProcessInfo(int pid, bool readEnvironment=false)
Constructs a new instance of UnixProcessInfo.
Definition ProcessInfo.cpp:354
bool readProcessInfo(int pid, bool readEnvironment) override
Implementation of ProcessInfo::readProcessInfo(); calls the four private methods below in turn.
Definition ProcessInfo.cpp:359
FileError
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.