Sound |
volume.ycp |
Module where an attemp of inserting module is provided, if everything goes well adjusting volume is done here otherwise error message is displayed | |
|
|
This module has an unstable interface. |
Steps:
1. try to insert kernel module
2. on succes unmute and volume dialog
3. on fail display error message
Imports
Includes
Local Functions |
local
VolumeCon (map save_entry, integer vol)
->
term
UI controls for volume setting dialog
- Parameters:
-
save_entry map with card info vol initial volume (0-100)
- Return value:
-
volume dialog contents
local
VolumeDialog (map save_entry, boolean finish, integer card_id)
->
symbol
This dialog simply reads user input and calls apropriate set funtion
- Parameters:
-
save_entry finish show 'finish' button instead of 'next' card_id
- Return value:
-
next dialog
local
ErrorDialog (map save_entry, string err, boolean finish)
->
symbol
shows error message in wizard
- Parameters:
-
save_entry card config err error string to be shown finish show 'finish' button instead of 'next'
- Return value:
-
`back | `cancel
local
sound_volume (map save_entry, integer card_id, boolean finish, boolean quick, list save_info)
->
map
shows volume dialog for normal setup or success dialog for quick setup in case of failure show error dialog with 'next' button disabled
- Parameters:
-
save_entry card config card_id id of currently donfigured card finish show 'finish' button instead of 'next' quick quick/normal config save_info config of previuosly configured cards
- Return value:
-
result and next dialog