PolkitQt1::UnixProcessSubject

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.

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

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

Constructor & Destructor Documentation

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

Parameters
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)
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
processPolkitUnixProcess 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
pidAn 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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 15 2024 11:56:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.