 
  
  
 
 
  
   
YaST2 Developers Documentation:   
index.html    
Configuration of power-management
   
   
   
  
  
   
YaST   
   
   
index.htmlfunctions    
   
files.htmlfiles    
   
intro.htmlintro   
  
   
    
     
      
       
Configuration of power-management
      
      
include/power-management/misc.ycp      
     
      
Dialogs definitions      
     
      
       
        
Jiri Srain < mailto:jsrain@suse.czjsrain@suse.cz >       
      
     
     
      
       
This module has an unstable interface.
      
     
    
    
     
      
       
Imports
       
        
Label        
Popup        
PowerManagement       
       
Local Variables
       
        
         
#acpi_actionsacpi_actions         
        
         
#acpi_event_handlersacpi_event_handlers         
        
         
#acpi_event_labelsacpi_event_labels         
       
       
Local Functions
       
        
         
#GetAcpiButtonActionGetAcpiButtonAction (string button)         
        
         
#GetAcpiEventHandlersGetAcpiEventHandlers ()         
        
         
#GetAcpiThermalEventHandlersGetAcpiThermalEventHandlers ()         
        
         
#GetActionAllowedGetActionAllowed (string action)         
        
         
#GetBatteryStatusActionGetBatteryStatusAction (string status)         
        
         
#GetBatteryStatusCapacityGetBatteryStatusCapacity (string status)         
        
         
#SetAcpiButtonActionSetAcpiButtonAction (string button, string action)         
        
         
#SetActionAllowedSetActionAllowed (string action, boolean allowed)         
        
         
#SetBatteryStatusActionSetBatteryStatusAction (string status, string action)         
        
         
#SetBatteryStatusCapacitySetBatteryStatusCapacity (string status, integer capacity)         
       
      
     
    
   
   
   
    
local
     
acpi_event_labels
      
 ->       
map     
    
   
   
 Labels of ACPI events
   
    
local
     
acpi_event_handlers
      
 ->       
list     
    
   
   
 ACPI event items
   
    
local
     
acpi_actions
      
 ->       
list     
    
   
   
 Known ACPI actions
   
    
local
     
GetAcpiEventHandlers ()
      
 ->       
list     
    
   
   
 Get ACPI event items (to combo box)
   
    
     
Return value:    
    
     
      
       
        
       
       
of items       
     
    
   
   
    
local
     
GetAcpiThermalEventHandlers ()
      
 ->       
list     
    
   
   
 Get ACPI event items (to combo box) for thermal management
   
    
     
Return value:    
    
     
      
       
        
       
       
of items       
     
    
   
   
    
local
     
GetBatteryStatusAction (string status)
      
 ->       
string     
    
   
   
 Set battery status action
   
    
     
Parameters:    
    
     
      
       
        
status       
       
the battery status       
     
    
   
   
    
     
Return value:    
    
     
      
       
        
       
       
the action       
     
    
   
   
    
local
     
SetBatteryStatusAction (string status, string action)
      
 ->       
void     
    
   
   
 Set battery status action
   
    
     
Parameters:    
    
     
      
       
        
status       
       
the battery status       
      
       
        
action       
       
string the action       
     
    
   
   
    
local
     
GetBatteryStatusCapacity (string status)
      
 ->       
integer     
    
   
   
 Get battery status capacity
   
    
     
Parameters:    
    
     
      
       
        
status       
       
the battery status       
     
    
   
   
    
     
Return value:    
    
     
      
       
        
       
       
the capacity       
     
    
   
   
    
local
     
SetBatteryStatusCapacity (string status, integer capacity)
      
 ->       
void     
    
   
   
 Set battery status capacity
   
    
     
Parameters:    
    
     
      
       
        
status       
       
the battery status       
      
       
        
capacity       
       
integer the capacity       
     
    
   
   
    
local
     
GetAcpiButtonAction (string button)
      
 ->       
string     
    
   
   
 Get ACPI button action
   
    
     
Parameters:    
    
     
      
       
        
button       
       
string the ACPI button       
     
    
   
   
    
     
Return value:    
    
     
      
       
        
       
       
the action       
     
    
   
   
    
local
     
SetAcpiButtonAction (string button, string action)
      
 ->       
void     
    
   
   
 Set ACPI button action
   
    
     
Parameters:    
    
     
      
       
        
button       
       
string the ACPI button       
      
       
        
action       
       
string the action       
     
    
   
   
    
local
     
GetActionAllowed (string action)
      
 ->       
boolean     
    
   
   
 Get if action is to be allowed
   
    
     
Parameters:    
    
     
      
       
        
action       
       
string the action       
     
    
   
   
    
     
Return value:    
    
     
      
       
        
       
       
true if should be allowed       
     
    
   
   
    
local
     
SetActionAllowed (string action, boolean allowed)
      
 ->       
void     
    
   
   
 Set if action is to be allowed
   
    
     
Parameters:    
    
     
      
       
        
action       
       
string the action       
      
       
        
allowed       
       
boolean true if should be allowed       
     
    
   
  
  
   
   
YaST2 Developers Documentation   
  
 
