diff options
author | Michael Goddard <michael.goddard@nokia.com> | 2012-01-23 11:52:42 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-23 07:30:16 +0100 |
commit | 01e7cb99500790861aeba8fc1a9ff7f4355aaace (patch) | |
tree | 32bf06c55e4152ded134fed2acd78d33ec508887 /src/multimedia/audio/qaudiodeviceinfo.h | |
parent | 7d826e38e70f763541ccceaabef4574d02fe9c5b (diff) |
Implement QAudioDeviceInfo operator==/!=
Compares some of the useful parts, but perhaps should be made more
tolerant.
Also refactored the auto test to properly skip if there are no
(output) devices, rather than manually skip.
Task-number: QTBUG-13723
Change-Id: I3b83f87a440a83f4237fa119a23009bc99e7626a
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
Diffstat (limited to 'src/multimedia/audio/qaudiodeviceinfo.h')
-rw-r--r-- | src/multimedia/audio/qaudiodeviceinfo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/multimedia/audio/qaudiodeviceinfo.h b/src/multimedia/audio/qaudiodeviceinfo.h index 0e5598fb4..f21622bb7 100644 --- a/src/multimedia/audio/qaudiodeviceinfo.h +++ b/src/multimedia/audio/qaudiodeviceinfo.h @@ -76,6 +76,9 @@ public: QAudioDeviceInfo& operator=(const QAudioDeviceInfo& other); + bool operator==(const QAudioDeviceInfo &other) const; + bool operator!=(const QAudioDeviceInfo &other) const; + bool isNull() const; QString deviceName() const; |