PulseAudio Qt Bindings

operation.cpp
1/*
2 SPDX-FileCopyrightText: 2014-2015 Harald Sitter <sitter@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#include "operation.h"
8
9namespace PulseAudioQt
10{
11PAOperation::PAOperation(pa_operation *operation)
12 : m_operation(operation)
13{
14}
15
16PAOperation::~PAOperation()
17{
18 if (m_operation) {
19 pa_operation_unref(m_operation);
20 }
21}
22
23PAOperation &PAOperation::operator=(pa_operation *operation)
24{
25 m_operation = operation;
26 return *this;
27}
28
30{
31 return !m_operation;
32}
33
34pa_operation *&PAOperation::operator*()
35{
36 return m_operation;
37}
38
39PAOperation::operator bool()
40{
41 return m_operation;
42}
43
44} // PulseAudioQt
pa_operation *& operator*()
operator *
Definition operation.cpp:34
bool operator!()
operator !
Definition operation.cpp:29
PAOperation(pa_operation *operation=nullptr)
PAOperation.
Definition operation.cpp:11
The primary namespace of PulseAudioQt.
Definition card.cpp:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:07 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.