PulseAudioQt::PAOperation Class Reference

#include <operation.h>

Public Member Functions

 PAOperation (pa_operation *operation=nullptr)
 operator bool ()
bool operator! ()
pa_operation *& operator* ()
PAOperationoperator= (pa_operation *operation)

Detailed Description

The PAOperation class Helps with management of pa_operations.

pa_operations need to be expicitly unref'd after use, so this class is essentially a fancy scoping helper where destruction of an instance would also unref the held operation (if there is one).

Definition at line 21 of file operation.h.

Constructor & Destructor Documentation

PulseAudioQt::PAOperation::PAOperation ( pa_operation *  operation = nullptr)


operationoperation to manage the scope of

Definition at line 11 of file operation.cpp.

Member Function Documentation

PulseAudioQt::PAOperation::operator bool ( )

operator bool representing whether there is an operation

Definition at line 39 of file operation.cpp.

bool PulseAudioQt::PAOperation::operator! ( )

operator !

whether or not there is an operation pointer

Definition at line 29 of file operation.cpp.

pa_operation *& PulseAudioQt::PAOperation::operator* ( )

operator *

pointer to internal pa_operation object

Definition at line 34 of file operation.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Nov 26 2020 23:04:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.