%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/orca/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/orca/__pycache__/sleep_mode_manager.cpython-312.pyc |
� g f � � � d Z dZdZdZdZdZddlmZ ddlmZ dd lm Z dd lm Z ddlmZ ddlmZ dd l mZ G d� d� Z e� Zd� Zy)zModule for sleep modez$Id$z $Revision$z$Date$zCopyright (c) 2024 Igalia, S.L.�LGPL� )�cmdnames)�debug)�input_event)�keybindings)�messages)�script_manager)�AXObjectc �@ � e Zd ZdZd� Zd d�Zdd�Zd� Zd� Zd� Z dd �Z y) �SleepModeManagerz#Provides sleep mode implementation.c �p � | j d� | _ t j � | _ g | _ y )NT)�get_handlers� _handlersr �KeyBindings� _bindings�_apps)�selfs �9/usr/lib/python3/dist-packages/orca/sleep_mode_manager.py�__init__zSleepModeManager.__init__) s+ � ��*�*�4�0���$�0�0�2����� � c � � |rCd}t j t j |d� | j � | j S | j j � r| j � | j S )z+Returns the sleep-mode-manager keybindings.z(SLEEP MODE MANAGER: Refreshing bindings.T)r �printMessage� LEVEL_INFO�_setup_bindingsr �isEmpty)r �refresh� is_desktop�msgs r �get_bindingszSleepModeManager.get_bindings. sd � � �<�C����u�/�/��d�;�� � �"� �~�~�� �^�^� #� #� %�� � �"��~�~�r c � � |r7d}t j t j |d� | j � | j S )z(Returns the sleep-mode-manager handlers.z(SLEEP MODE MANAGER: Refreshing handlers.T)r r r �_setup_handlersr )r r r s r r zSleepModeManager.get_handlers: s: � � �<�C����u�/�/��d�;�� � �"��~�~�r c � � |xr t |� | j v }|r)d|g}t j t j |d� |S )z-Returns True if sleep mode is active for app.z!SLEEP MODE MANAGER: Is active forT)�hashr r �printTokensr )r �app�result�tokenss r �is_active_for_appz"SleepModeManager.is_active_for_appD sE � � �0��c��d�j�j�0���9�3�?�F����e�.�.���=�� r c �� � i | _ t j | j t j � | j d<