PolkitQt1::UnixProcessSubject
#include <Subject>
Public Member Functions | |
UnixProcessSubject (PolkitUnixProcess *process) | |
UnixProcessSubject (qint64 pid) | |
UnixProcessSubject (qint64 pid, quint64 startTime) | |
qint64 | pid () const |
void | setPid (qint64 pid) |
qint64 | startTime () const |
qint64 | uid () const |
Public Member Functions inherited from PolkitQt1::Subject | |
Subject (const Subject &other) | |
bool | isValid () const |
Subject & | operator= (const Subject &other) |
PolkitSubject * | subject () const |
QString | toString () const |
Additional Inherited Members | |
Static Public Member Functions inherited from PolkitQt1::Subject | |
static Subject | fromString (const QString &string) |
Protected Member Functions inherited from PolkitQt1::Subject | |
Subject (PolkitSubject *subject) | |
void | setSubject (PolkitSubject *subject) |
Detailed Description
A class for representing a UNIX process.
To uniquely identify processes, both the process id and the start time of the process (a monotonic increasing value representing the time since the kernel was started) is used.
- See also
- Subject
Definition at line 103 of file polkitqt1-subject.h.
Constructor & Destructor Documentation
◆ UnixProcessSubject() [1/3]
|
explicit |
Subject constructor, takes one parameter - PID.
The start time of process will be looked automatically.
- Parameters
-
pid An Unix process PID.
Definition at line 106 of file polkitqt1-subject.cpp.
◆ UnixProcessSubject() [2/3]
PolkitQt1::UnixProcessSubject::UnixProcessSubject | ( | qint64 | pid, |
quint64 | startTime ) |
Subject constructor, takes two parameters - PID and start time.
- Parameters
-
pid An Unix process PID. startTime An Unix process start time.
Definition at line 112 of file polkitqt1-subject.cpp.
◆ UnixProcessSubject() [3/3]
|
explicit |
Subject constructor, it creates UnixProcess object from PolkitUnixProcess object.
- Warning
- Use this only if you are completely aware of what are you doing!
- Parameters
-
process PolkitUnixProcess object
Definition at line 118 of file polkitqt1-subject.cpp.
Member Function Documentation
◆ pid()
qint64 PolkitQt1::UnixProcessSubject::pid | ( | ) | const |
Returns Unix process PID.
- Returns
- A PID of associated Unix process.
Definition at line 124 of file polkitqt1-subject.cpp.
◆ setPid()
void PolkitQt1::UnixProcessSubject::setPid | ( | qint64 | pid | ) |
Sets Unix process PID.
- Parameters
-
pid An Unix process PID.
Definition at line 139 of file polkitqt1-subject.cpp.
◆ startTime()
qint64 PolkitQt1::UnixProcessSubject::startTime | ( | ) | const |
Returns Unix process start time.
- Returns
- A start time of associated Unix process.
Definition at line 129 of file polkitqt1-subject.cpp.
◆ uid()
qint64 PolkitQt1::UnixProcessSubject::uid | ( | ) | const |
Returns Unix process UID.
- Returns
- A UID of associated Unix process.
Definition at line 134 of file polkitqt1-subject.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:55:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.