Diffstat (limited to 'noncore/settings/networksettings2/networksettings2/asdevice.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/networksettings2/asdevice.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/noncore/settings/networksettings2/networksettings2/asdevice.h b/noncore/settings/networksettings2/networksettings2/asdevice.h index 058fc4c..19241c1 100644 --- a/noncore/settings/networksettings2/networksettings2/asdevice.h +++ b/noncore/settings/networksettings2/networksettings2/asdevice.h | |||
@@ -1,37 +1,31 @@ | |||
1 | #ifndef ASDEVICE_H | 1 | #ifndef ASDEVICE_H |
2 | #define ASDEVICE_H | 2 | #define ASDEVICE_H |
3 | 3 | ||
4 | #include "system.h" | 4 | #include "system.h" |
5 | #include "netnode.h" | 5 | #include "netnode.h" |
6 | 6 | ||
7 | // pure virtual (component oriented) interface of any | 7 | // pure virtual (component oriented) interface of any |
8 | // plugin that offers a device | 8 | // plugin that offers a device |
9 | class AsDevice : public RuntimeInfo { | 9 | class AsDevice : public RuntimeInfo { |
10 | 10 | ||
11 | public : | 11 | public : |
12 | 12 | ||
13 | AsDevice( ANetNodeInstance * NNI ) : | 13 | AsDevice( ANetNodeInstance * NNI ) : |
14 | RuntimeInfo( NNI ) { | 14 | RuntimeInfo( NNI ) { |
15 | AssignedInterface = 0; | 15 | AssignedInterface = 0; |
16 | } | 16 | } |
17 | 17 | ||
18 | // return the interface assigned to this device | 18 | // return the interface assigned to this device |
19 | // e.g eth0, wlan, ... | 19 | // e.g eth0, wlan, ... |
20 | InterfaceInfo * assignedInterface( void ) | 20 | InterfaceInfo * assignedInterface( void ) |
21 | { return AssignedInterface; } | 21 | { return AssignedInterface; } |
22 | virtual void assignInterface( InterfaceInfo * NI ) | 22 | virtual void assignInterface( InterfaceInfo * NI ) |
23 | { AssignedInterface = NI; } | 23 | { AssignedInterface = NI; } |
24 | 24 | ||
25 | // number of device to configure for this Device type | ||
26 | virtual long count( void ) | ||
27 | { return 1; } | ||
28 | // generate NIC name of device number ... | ||
29 | virtual QString genNic( long NicNr ) = 0; | ||
30 | |||
31 | private : | 25 | private : |
32 | 26 | ||
33 | InterfaceInfo * AssignedInterface; | 27 | InterfaceInfo * AssignedInterface; |
34 | 28 | ||
35 | }; | 29 | }; |
36 | 30 | ||
37 | #endif | 31 | #endif |