connectivity-cpp
0.0.1
wwan/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
#ifndef COM_UBUNTU_CONNECTIVITY_NETWORKING_WWAN_DEVICE
20
#define COM_UBUNTU_CONNECTIVITY_NETWORKING_WWAN_DEVICE
21
22
#include <memory>
23
#include <string>
24
25
#include <boost/signals2/signal.hpp>
26
27
namespace
com {
28
namespace
ubuntu {
29
namespace
connectivity {
30
namespace
networking {
31
namespace
wwan {
32
33
#ifndef CONNECTIVITY_CPP_EXPORT
34
#define CONNECTIVITY_CPP_EXPORT __attribute ((visibility ("default")))
35
#endif
36
37
class
CONNECTIVITY_CPP_EXPORT
38
Link :
public
com::ubuntu::connectivity::networking::Link
39
{
40
public
:
41
typedef
std::shared_ptr<Link> Ptr;
42
enum class
Type {
43
GSM,
44
CDMA,
45
BLUETOOTH_DUN,
46
BLUETOOTH_PAN
47
};
48
49
virtual
~Link() {}
50
51
virtual
State state()
const
= 0;
52
virtual
Type wwanType()
const
= 0;
53
};
54
55
}
56
}
57
}
58
}
59
60
#endif
com::ubuntu::connectivity::networking::Link
Definition:
link.h:34
CONNECTIVITY_CPP_EXPORT
#define CONNECTIVITY_CPP_EXPORT
include
com
ubuntu
connectivity
networking
wwan
link.h
Generated on Wed Mar 12 2014 00:25:42 for connectivity-cpp by
1.8.6