connectivity-cpp  0.0.1
access-point.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_ACCESS_POINT
21 #define COM_UBUNTU_CONNECTIVITY_NETWORKING_WIFI_ACCESS_POINT
22 
23 #include <string>
24 #include <core/property.h>
25 
26 namespace com {
27 namespace ubuntu {
28 namespace connectivity {
29 namespace networking {
30 namespace wifi {
31 
32 #ifndef CONNECTIVITY_CPP_EXPORT
33 #define CONNECTIVITY_CPP_EXPORT __attribute ((visibility ("default")))
34 #endif
35 
38 AccessPoint
39 {
40 public:
41  typedef std::shared_ptr<AccessPoint> Ptr;
42  virtual ~AccessPoint() = default;
43 
44  /* from 0.00 to 100.00,
45  * -1 not available
46  */
47  virtual const core::Property<double>& strength() = 0;
48 
49  virtual std::string ssid() = 0;
50  virtual bool secured() = 0;
51  virtual bool adhoc() = 0;
52 };
53 
54 }
55 }
56 }
57 }
58 }
59 
60 #endif
#define CONNECTIVITY_CPP_EXPORT
Definition: access-point.h:33