PolkitQt1::SystemBusNameSubject

Search for usage in LXR

PolkitQt1::SystemBusNameSubject Class Reference

#include <Subject>

Inheritance diagram for PolkitQt1::SystemBusNameSubject:

Public Member Functions

 SystemBusNameSubject (const QString &name)
 
 SystemBusNameSubject (PolkitSystemBusName *pkSystemBusName)
 
QString name () const
 
void setName (const QString &name)
 
UnixUserIdentity user ()
 
- 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 process owning a unique name on the system bus.

Author
Jaroslav Reznik jrezn[email protected][email protected][email protected]edhat[email protected].com
See also
Subject

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

Constructor & Destructor Documentation

◆ SystemBusNameSubject() [1/2]

PolkitQt1::SystemBusNameSubject::SystemBusNameSubject ( const QString name)
explicit

Subject constructor, takes one parameter - system bus name.

Parameters
nameA unique system bus name.

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

◆ SystemBusNameSubject() [2/2]

PolkitQt1::SystemBusNameSubject::SystemBusNameSubject ( PolkitSystemBusName *  pkSystemBusName)
explicit

Subject constructor, it creates SystemBusName object from PolkitSystemBusName object.

Warning
Use this only if you are completely aware of what are you doing!
Parameters
pkSystemBusNamePolkitSystemBusName object

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

Member Function Documentation

◆ name()

QString PolkitQt1::SystemBusNameSubject::name ( ) const

Returns system bus name.

Returns
A unique system bus name.

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

◆ setName()

void PolkitQt1::SystemBusNameSubject::setName ( const QString name)

Sets system bus name.

Parameters
nameSystem bus name.

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

◆ user()

UnixUserIdentity PolkitQt1::SystemBusNameSubject::user ( )

Returns the UnixUserIdentity for this subject.

Note
This can be an invalid UnixUserIdentity so be sure to check before using it
Since
0.113

Definition at line 167 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-2022 The KDE developers.
Generated on Tue Aug 16 2022 04:02:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.