2
* Copyright (C) 2011 Tuomo Penttinen, all rights reserved.
4
* Author: Tuomo Penttinen <tp@herqq.org>
6
* This file is part of Herqq UPnP Av (HUPnPAv) library.
8
* Herqq UPnP Av is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation, either version 3 of the License, or
11
* (at your option) any later version.
13
* Herqq UPnP Av is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with Herqq UPnP Av. If not, see <http://www.gnu.org/licenses/>.
22
#include "hprotocolinforesult.h"
33
HProtocolInfoResult::HProtocolInfoResult() :
38
HProtocolInfoResult::HProtocolInfoResult(
39
const HProtocolInfos& source, const HProtocolInfos& sink) :
40
m_source(source), m_sink(sink)
44
bool HProtocolInfoResult::isEmpty() const
46
return m_source.isEmpty() && m_sink.isEmpty();
49
bool HProtocolInfoResult::setSource(const HProtocolInfos& arg)
51
foreach(const HProtocolInfo& info, arg)
62
bool HProtocolInfoResult::setSink(const HProtocolInfos& arg)
64
foreach(const HProtocolInfo& info, arg)
75
bool operator==(const HProtocolInfoResult& obj1, const HProtocolInfoResult& obj2)
77
return obj1.sink() == obj2.sink() &&
78
obj1.source() == obj2.source();