security_level
Vars | |
available_levels | A list of initialised security level datums |
---|---|
current_security_level | Currently set security level |
security_level_set_timer_id | Option reference of a timer id of the latest set security level. Only set when security level is changed to one with set_delay > 0 |
Procs | |
announce_security_level | Handles announcements of the newly set security level |
do_set_level | Actually sets the security level after the announcement |
get_colored_current_security_level_name | Returns security level name formatted with it's color |
get_current_level_as_number | Returns the current security level as a number In case the subsystem hasn't finished initializing yet, returns default security level |
get_current_level_as_text | Returns the current security level as text |
number_level_to_text | Converts a number security level to a text |
pre_set_level | Do things before the actual security level set, like executing security level specific pre change behavior |
set_level | Sets a new security level as our current level |
text_level_to_number | Converts a text security level to a number |
Var Details
available_levels
A list of initialised security level datums
current_security_level
Currently set security level
security_level_set_timer_id
Option reference of a timer id of the latest set security level. Only set when security level is changed to one with set_delay
> 0
Proc Details
announce_security_level
Handles announcements of the newly set security level
Arguments:
- selected_level - The new security level that has been set
do_set_level
Actually sets the security level after the announcement
Sends COMSIG_SECURITY_LEVEL_CHANGED
in the end
Arguments:
- selected_level - The datum of security level selected to be changed to
get_colored_current_security_level_name
Returns security level name formatted with it's color
get_current_level_as_number
Returns the current security level as a number In case the subsystem hasn't finished initializing yet, returns default security level
get_current_level_as_text
Returns the current security level as text
number_level_to_text
Converts a number security level to a text
Arguments:
- level - The number security level to convert
pre_set_level
Do things before the actual security level set, like executing security level specific pre change behavior
Arguments:
- selected_level - The datum of security level selected to be changed to
set_level
Sets a new security level as our current level
This is how everything should change the security level
Arguments:
- new_level - The new security level that will become our current level, could be number or name of security level
text_level_to_number
Converts a text security level to a number
Arguments:
- level - The text security level to convert