PolkitQt1::UnixSessionSubject

Search for usage in LXR

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
 
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 unix session.

Author
Jaroslav Reznik jrezn.nosp@m.ik@r.nosp@m.edhat.nosp@m..com

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]

PolkitQt1::UnixSessionSubject::UnixSessionSubject ( const QString & sessionId)
explicit

Subject constructor, takes one parameter - session id.

Parameters
sessionIdThe session id.

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

◆ UnixSessionSubject() [2/3]

PolkitQt1::UnixSessionSubject::UnixSessionSubject ( qint64 pid)
explicit

Subject constructor, takes one parameter - pid of process.

Synchronous!

Parameters
pidThe session's process pid.

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

◆ UnixSessionSubject() [3/3]

PolkitQt1::UnixSessionSubject::UnixSessionSubject ( PolkitSystemBusName * pkUnixSession)
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
pkUnixSessionPolkitUnixSession object

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

Member Function Documentation

◆ sessionId()

QString PolkitQt1::UnixSessionSubject::sessionId ( ) const

Returns session id.

Returns
A session id.

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

◆ setSessionId()

void PolkitQt1::UnixSessionSubject::setSessionId ( const QString & sessionId)

Sets session id.

Parameters
sessionIdA 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 Mon Nov 18 2024 12:13:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.