Network configuration |
modules/Modem.ycp |
Modem data | |
|
Representation of the configuration of modem.
Input and output routines.
Imports
Includes
Global VariablesGlobal Functions
Local Variables |
global
hotplug
->
string
Hotplug type ("" if not hot pluggable)
local
Hardware
->
list<map>
Hardware information
- See
-
ReadHardware
global
AbortFunction
->
block<boolean>
Abort function return boolean return true if abort
local
modified
->
boolean
Data was modified?
local
operation
->
symbol
Which operation is pending?
global
Modified ()
->
boolean
Data was modified?
- Return value:
-
true if modified
global
Read ()
->
boolean
Read all network settings from the SCR
- Return value:
-
true on success
global
Write ()
->
boolean
Update the SCR according to network settings
- Return value:
-
true on success
global
Select (string dev)
->
boolean
Select the given device
- Parameters:
-
dev device to select ("" for new device, default values)
- Return value:
-
true if success
global
Add ()
->
boolean
Add a new device
- Return value:
-
true if success
global
Edit (string name)
->
boolean
Edit the given device
- Parameters:
-
name device to edit
- Return value:
-
true if success
global
Delete (string name)
->
boolean
Delete the given device
- Parameters:
-
name device to delete
- Return value:
-
true if success
global
Commit ()
->
boolean
Commit the pending operation
- Return value:
-
true if success
global
Import (map settings)
->
boolean
Import data
- Parameters:
-
settings settings to be imported
- Return value:
-
true on success
global
Export ()
->
map
Export data
- Return value:
-
dumped settings (later acceptable by Import())
global
Summary (boolean split)
->
list
Create a textual summary and a list of unconfigured devices
- Parameters:
-
split split configured and unconfigured?
- Return value:
-
summary of the current configuration
global
Overview ()
->
list
Create an overview table with all configured devices
- Return value:
-
table items
global
SelectHW (integer which)
->
void
Select the hardware component
- Parameters:
-
which index of the component
global
Adding ()
->
boolean
Used to see whether we are in the process of adding a new interface or editing an existing one.
- Return value:
-
adding?