A class for representing a UNIX process.
More...
#include <Subject>
A class for representing a UNIX process.
- Author
- Jaroslav Reznik jrezn.nosp@m.ik@r.nosp@m.edhat.nosp@m..com
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
◆ UnixProcessSubject() [1/3]
PolkitQt1::UnixProcessSubject::UnixProcessSubject |
( |
qint64 |
pid | ) |
|
|
explicit |
Subject constructor, takes one parameter - PID. The start time of process will be looked automatically.
- Parameters
-
◆ 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. |
◆ UnixProcessSubject() [3/3]
PolkitQt1::UnixProcessSubject::UnixProcessSubject |
( |
PolkitUnixProcess * |
process | ) |
|
|
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 |
◆ pid()
qint64 PolkitQt1::UnixProcessSubject::pid |
( |
| ) |
const |
Returns Unix process PID.
- Returns
- A PID of associated Unix process.
◆ setPid()
void PolkitQt1::UnixProcessSubject::setPid |
( |
qint64 |
pid | ) |
|
Sets Unix process PID.
- Parameters
-
◆ startTime()
qint64 PolkitQt1::UnixProcessSubject::startTime |
( |
| ) |
const |
Returns Unix process start time.
- Returns
- A start time of associated Unix process.
◆ uid()
qint64 PolkitQt1::UnixProcessSubject::uid |
( |
| ) |
const |
Returns Unix process UID.
- Returns
- A UID of associated Unix process.
The documentation for this class was generated from the following files: