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 (qint64 pid)
 
 UnixSessionSubject (PolkitSystemBusName *pkUnixSession)
 
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[email protected][email protected][email protected]edhat[email protected].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

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

Subject constructor, takes one parameter - session id.

Parameters
sessionIdThe session id.

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

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

Subject constructor, takes one parameter - pid of process.

Synchronous!

Parameters
pidThe session's process pid.

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

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

Member Function Documentation

QString PolkitQt1::UnixSessionSubject::sessionId ( ) const

Returns session id.

Returns
A session id.

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

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

Sets session id.

Parameters
sessionIdA session id.

Definition at line 211 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.