PulseAudioQt::PAOperation
PulseAudioQt::PAOperation Class Reference
#include <operation.h>
Public Member Functions | |
PAOperation (pa_operation *operation=nullptr) | |
operator bool () | |
bool | operator! () |
pa_operation *& | operator* () |
PAOperation & | operator= (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
◆ PAOperation()
|
explicit |
- Parameters
-
operation operation to manage the scope of
Definition at line 11 of file operation.cpp.
◆ ~PAOperation()
PulseAudioQt::PAOperation::~PAOperation | ( | ) |
Definition at line 16 of file operation.cpp.
Member Function Documentation
◆ operator bool()
PulseAudioQt::PAOperation::operator bool | ( | ) |
operator bool representing whether there is an operation
Definition at line 39 of file operation.cpp.
◆ operator!()
bool PulseAudioQt::PAOperation::operator! | ( | ) |
operator !
- Returns
- whether or not there is an operation pointer
Definition at line 29 of file operation.cpp.
◆ operator*()
pa_operation *& PulseAudioQt::PAOperation::operator* | ( | ) |
operator *
- Returns
- pointer to internal pa_operation object
Definition at line 34 of file operation.cpp.
◆ operator=()
PAOperation & PulseAudioQt::PAOperation::operator= | ( | pa_operation * | operation | ) |
Definition at line 23 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-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:50:53 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:50:53 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.