Search for usage in LXR

PolkitQt1::UnixProcessSubject Class Reference

#include <Subject>

Inheritance diagram for PolkitQt1::UnixProcessSubject:

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
Subjectoperator= (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.

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

Definition at line 103 of file polkitqt1-subject.h.

Constructor & Destructor Documentation

◆ UnixProcessSubject() [1/3]

PolkitQt1::UnixProcessSubject::UnixProcessSubject ( qint64 pid)

Subject constructor, takes one parameter - PID.

The start time of process will be looked automatically.

pidAn 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.

pidAn Unix process PID.
startTimeAn Unix process start time.

Definition at line 112 of file polkitqt1-subject.cpp.

◆ UnixProcessSubject() [3/3]

PolkitQt1::UnixProcessSubject::UnixProcessSubject ( PolkitUnixProcess * process)

Subject constructor, it creates UnixProcess object from PolkitUnixProcess object.

Use this only if you are completely aware of what are you doing!
processPolkitUnixProcess object

Definition at line 118 of file polkitqt1-subject.cpp.

Member Function Documentation

◆ pid()

qint64 PolkitQt1::UnixProcessSubject::pid ( ) const

Returns Unix process PID.

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.

pidAn Unix process PID.

Definition at line 139 of file polkitqt1-subject.cpp.

◆ startTime()

qint64 PolkitQt1::UnixProcessSubject::startTime ( ) const

Returns Unix process start time.

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.

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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:56:39 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.