2
* Copyright (C) 2015 Canonical, Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 3, as published
6
* by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranties of
10
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11
* PURPOSE. See the GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License along
14
* with this program. If not, see <http://www.gnu.org/licenses/>.
18
#ifndef WFDDEVICEINFO_H_
19
#define WFDDEVICEINFO_H_
25
enum class WpsConfig {
31
enum class WfdDeviceType {
36
kSourceOrPrimarySink = 0x3
39
std::ostream& operator<<(std::ostream &, WfdDeviceType);
43
static WfdDeviceType TypeFromInfoFlags(uint flags);
45
static WfdDeviceInfo Parse(const std::string &str);
49
coupled_sink_support_at_source = 0x4,
50
coupled_sink_support_at_sink = 0x8,
51
session_available = 0x30,
52
session_available_bit1 = 0x10,
53
session_available_bit2 = 0x20
56
bool IsSupported() const;
57
bool IsSupportedSink() const;
58
bool IsSupportedSource() const;
60
WfdDeviceType device_type_ = WfdDeviceType::unknown;
61
ushort ctrl_port_ = 0;