Changeset View
Changeset View
Standalone View
Standalone View
src/port.cpp
Show All 19 Lines | |||||
20 | 20 | | |||
21 | #include "port.h" | 21 | #include "port.h" | ||
22 | 22 | | |||
23 | namespace QPulseAudio | 23 | namespace QPulseAudio | ||
24 | { | 24 | { | ||
25 | 25 | | |||
26 | Port::Port(QObject *parent) | 26 | Port::Port(QObject *parent) | ||
27 | : Profile(parent) | 27 | : Profile(parent) | ||
28 | , m_isAvailable(false) | 28 | , m_availability(Unknown) | ||
29 | { | 29 | { | ||
30 | } | 30 | } | ||
31 | 31 | | |||
32 | Port::~Port() | 32 | Port::~Port() | ||
33 | { | 33 | { | ||
34 | } | 34 | } | ||
35 | 35 | | |||
36 | bool Port::isAvailable() const | 36 | Port::Availability Port::availability() const | ||
37 | { | 37 | { | ||
38 | return m_isAvailable; | 38 | return m_availability; | ||
39 | } | 39 | } | ||
romangg: Better put the definition of this getter in the header. | |||||
drosca: I prefer function definitions always in cpp file. | |||||
romangg: Ok | |||||
40 | 40 | | |||
41 | } // QPulseAudio | 41 | } // QPulseAudio |
Better put the definition of this getter in the header.