PolkitQt1::Subject

Search for usage in LXR

#include <Subject>

Inheritance diagram for PolkitQt1::Subject:

Public Member Functions

 Subject (const Subject &other)
 
bool isValid () const
 
Subjectoperator= (const Subject &other)
 
PolkitSubject * subject () const
 
QString toString () const
 

Static Public Member Functions

static Subject fromString (const QString &string)
 

Protected Member Functions

 Subject (PolkitSubject *subject)
 
void setSubject (PolkitSubject *subject)
 

Detailed Description

This class represents PolicyKit subjects.

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

This class encapsulates the PolkitSubject interface.

See also
UnixProcess
SystemBusName
UnixSession

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

Constructor & Destructor Documentation

◆ Subject() [1/3]

PolkitQt1::Subject::Subject ( )

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

◆ Subject() [2/3]

PolkitQt1::Subject::Subject ( const Subject & other)

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

◆ ~Subject()

PolkitQt1::Subject::~Subject ( )

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

◆ Subject() [3/3]

PolkitQt1::Subject::Subject ( PolkitSubject * subject)
protected

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

Member Function Documentation

◆ fromString()

Subject PolkitQt1::Subject::fromString ( const QString & string)
static

Creates the Subject object from string reprezentation.

Parameters
stringstring reprezentation of the object
Returns
Pointer to new Subject instance

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

◆ isValid()

bool PolkitQt1::Subject::isValid ( ) const

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

◆ operator=()

Subject & PolkitQt1::Subject::operator= ( const Subject & other)

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

◆ setSubject()

void PolkitQt1::Subject::setSubject ( PolkitSubject * subject)
protected

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

◆ subject()

PolkitSubject * PolkitQt1::Subject::subject ( ) const

Gets PolkitSubject object.

Warning
It shouldn't be used directly unless you are completely aware of what are you doing
Returns
Pointer to PolkitSubject instance

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

◆ toString()

QString PolkitQt1::Subject::toString ( ) const

Serialization of object to the string.

Returns
Serialized Subject object

Definition at line 88 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

KDE's Doxygen guidelines are available online.