PolkitQt1::UnixSessionSubject
PolkitQt1::UnixSessionSubject Class Reference
#include <Subject>
Inheritance diagram for PolkitQt1::UnixSessionSubject:
Public Member Functions | |
UnixSessionSubject (const QString &sessionId) | |
UnixSessionSubject (PolkitSystemBusName *pkUnixSession) | |
UnixSessionSubject (qint64 pid) | |
QString | sessionId () const |
void | setSessionId (const QString &sessionId) |
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 unix session.
The session id is an opaque string obtained from ConsoleKit.
- See also
- Subject
Definition at line 222 of file polkitqt1-subject.h.
Constructor & Destructor Documentation
◆ UnixSessionSubject() [1/3]
|
explicit |
Subject constructor, takes one parameter - session id.
- Parameters
-
sessionId The session id.
Definition at line 178 of file polkitqt1-subject.cpp.
◆ UnixSessionSubject() [2/3]
|
explicit |
Subject constructor, takes one parameter - pid of process.
Synchronous!
- Parameters
-
pid The session's process pid.
Definition at line 184 of file polkitqt1-subject.cpp.
◆ UnixSessionSubject() [3/3]
|
explicit |
Subject constructor, it creates UnixSession object from PolkitUnixSession object.
- Warning
- Use this only if you are completely aware of what are you doing!
- Parameters
-
pkUnixSession PolkitUnixSession object
Definition at line 195 of file polkitqt1-subject.cpp.
Member Function Documentation
◆ sessionId()
QString PolkitQt1::UnixSessionSubject::sessionId | ( | ) | const |
◆ setSessionId()
void PolkitQt1::UnixSessionSubject::setSessionId | ( | const QString & | sessionId | ) |
Sets session id.
- Parameters
-
sessionId A session id.
Definition at line 206 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 Dec 20 2024 11:55:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
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.