connectivity-cpp  0.0.1
service/tethering/service.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_SERVICE_TETHERING_SERVICE
21 #define COM_UBUNTU_CONNECTIVITY_NETWORKING_SERVICE_TETHERING_SERVICE
22 
24 
25 namespace com {
26 namespace ubuntu {
27 namespace connectivity {
28 namespace networking {
29 namespace service {
30 
31 namespace tethering {
32 
34 class
35 Service : public com::ubuntu::connectivity::networking::Service
36 {
37 public:
38  typedef std::shared_ptr<Service> Ptr;
39  virtual ~Service() = default;
40 
41  /*
42  * Which link is shared to the client devices.
43  */
44  const Property<std::shared_ptr<Link>> &shared() = 0;
45 
46  /*
47  * Which link is used to serve the clients.
48  */
49  const Property<std::shared_ptr<Link>> &sharedOver() = 0;
50 
51 
52 protected:
53  Service() = default;
54 };
55 
56 }
57 }
58 }
59 }
60 }
61 }
62 
63 #endif