PolkitQt1::UnixProcessSubject

Search for usage in LXR

PolkitQt1::UnixProcessSubject Class Reference

#include <Subject>

Inheritance diagram for PolkitQt1::UnixProcessSubject:

Public Member Functions

 UnixProcessSubject (qint64 pid)
 
 UnixProcessSubject (qint64 pid, quint64 startTime)
 
 UnixProcessSubject (PolkitUnixProcess *process)
 
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[email protected][email protected][email protected]edhat[email protected].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

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 111 of file polkitqt1-subject.cpp.

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 117 of file polkitqt1-subject.cpp.

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 123 of file polkitqt1-subject.cpp.

Member Function Documentation

qint64 PolkitQt1::UnixProcessSubject::pid ( ) const

Returns Unix process PID.

Returns
A PID of associated Unix process.

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

void PolkitQt1::UnixProcessSubject::setPid ( qint64  pid)

Sets Unix process PID.

Parameters
pidAn Unix process PID.

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

qint64 PolkitQt1::UnixProcessSubject::startTime ( ) const

Returns Unix process start time.

Returns
A start time of associated Unix process.

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

qint64 PolkitQt1::UnixProcessSubject::uid ( ) const

Returns Unix process UID.

Returns
A UID of associated Unix process.

Definition at line 139 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-2021 The KDE developers.
Generated on Fri Apr 16 2021 23:06:38 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.