PulseAudio Qt Bindings

operation.cpp
1 /*
2  SPDX-FileCopyrightText: 2014-2015 Harald Sitter <[email protected]>
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 
9 namespace PulseAudioQt
10 {
11 PAOperation::PAOperation(pa_operation *operation)
12  : m_operation(operation)
13 {
14 }
15 
16 PAOperation::~PAOperation()
17 {
18  if (m_operation) {
19  pa_operation_unref(m_operation);
20  }
21 }
22 
23 PAOperation &PAOperation::operator=(pa_operation *operation)
24 {
25  m_operation = operation;
26  return *this;
27 }
28 
30 {
31  return !m_operation;
32 }
33 
34 pa_operation *&PAOperation::operator*()
35 {
36  return m_operation;
37 }
38 
39 PAOperation::operator bool()
40 {
41  return m_operation;
42 }
43 
44 } // PulseAudioQt
PAOperation(pa_operation *operation=nullptr)
PAOperation.
Definition: operation.cpp:11
bool operator!()
operator !
Definition: operation.cpp:29
pa_operation *& operator*()
operator *
Definition: operation.cpp:34
The primary namespace of PulseAudioQt.
Definition: card.cpp:16
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jun 25 2022 06:12:40 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.