connectivity-cpp  0.0.1
wifi/link.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authors:
17  * Antti Kaijanmäki <antti.kaijanmaki@canonical.com>
18  */
19 
20 #ifndef COM_UBUNTU_CONNECTIVITY_NETWORKING_WIFI_LINK
21 #define COM_UBUNTU_CONNECTIVITY_NETWORKING_WIFI_LINK
22 
25 
26 #include <core/property.h>
27 
28 #include <set>
29 
30 namespace com {
31 namespace ubuntu {
32 namespace connectivity {
33 namespace networking {
34 namespace wifi {
35 
36 #ifndef CONNECTIVITY_CPP_EXPORT
37 #define CONNECTIVITY_CPP_EXPORT __attribute ((visibility ("default")))
38 #endif
39 
43 {
44 public:
45  typedef std::shared_ptr<Link> Ptr;
46  typedef unsigned int Id;
47 
48  Link() = default;
49  Link(const Link&) = delete;
50  virtual ~Link() = default;
51 
52  virtual const core::Property<std::set<AccessPoint::Ptr>>& accessPoints() = 0;
53 
54  virtual void connect_to(AccessPoint::Ptr accessPoint) = 0;
55 
56  virtual const core::Property<AccessPoint::Ptr>& activeAccessPoint() = 0;
57 };
58 
59 }
60 }
61 }
62 }
63 }
64  #endif