Open Lighting Architecture
0.9.0
Main Page
Modules
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
ola
rdm
NetworkManagerInterface.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or modify
3
* it under the terms of the GNU General Public License as published by
4
* the Free Software Foundation; either version 2 of the License, or
5
* (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU Library General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software
14
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15
*
16
* NetworkManagerInterface.h
17
* The glue between the ResponderHelper and the OLA network code.
18
* Copyright (C) 2013-2014 Peter Newman
19
*/
20
29
#ifndef INCLUDE_OLA_RDM_NETWORKMANAGERINTERFACE_H_
30
#define INCLUDE_OLA_RDM_NETWORKMANAGERINTERFACE_H_
31
32
#include <
ola/network/IPV4Address.h
>
33
#include <ola/network/Interface.h>
34
#include <ola/network/InterfacePicker.h>
35
#include <
ola/rdm/RDMEnums.h
>
36
37
#include <string>
38
#include <vector>
39
40
namespace
ola {
41
namespace
rdm {
42
46
class
NetworkManagerInterface
{
47
public
:
48
NetworkManagerInterface
() {}
49
virtual
~
NetworkManagerInterface
() {}
50
54
virtual
const
ola::network::InterfacePicker
*
GetInterfacePicker
()
const
= 0;
55
62
virtual
rdm_dhcp_status
GetDHCPStatus
(
63
const
ola::network::Interface
&iface)
const
= 0;
64
74
virtual
bool
GetIPV4DefaultRoute
(
75
ola::network::IPV4Address
*default_route)
const
= 0;
76
80
virtual
const
std::string
GetHostname
()
const
= 0;
81
85
virtual
const
std::string
GetDomainName
()
const
= 0;
86
90
virtual
bool
GetNameServers
(
91
std::vector<ola::network::IPV4Address> *name_servers)
const
= 0;
92
};
93
}
// namespace rdm
94
}
// namespace ola
95
#endif // INCLUDE_OLA_RDM_NETWORKMANAGERINTERFACE_H_
Generated on Fri Apr 4 2014 11:46:03 for Open Lighting Architecture by
1.8.1.2