dbusmock.templates.urfkill ========================== .. py:module:: dbusmock.templates.urfkill .. autoapi-nested-parse:: urfkill mock template This creates the expected methods and properties of the main urfkill object, but no devices. You can specify any property such as urfkill in "parameters". Attributes ---------- .. autoapisummary:: dbusmock.templates.urfkill.__author__ dbusmock.templates.urfkill.__copyright__ dbusmock.templates.urfkill.SYSTEM_BUS dbusmock.templates.urfkill.BUS_NAME dbusmock.templates.urfkill.MAIN_OBJ dbusmock.templates.urfkill.MAIN_IFACE dbusmock.templates.urfkill.individual_objects dbusmock.templates.urfkill.type2objectname dbusmock.templates.urfkill.KS_NOTAVAILABLE dbusmock.templates.urfkill.KS_UNBLOCKED dbusmock.templates.urfkill.KS_SOFTBLOCKED dbusmock.templates.urfkill.KS_HARDBLOCKED Functions --------- .. autoapisummary:: dbusmock.templates.urfkill.toggle_flight_mode dbusmock.templates.urfkill.block dbusmock.templates.urfkill.load Module Contents --------------- .. py:data:: __author__ :value: 'Jussi Pakkanen' .. py:data:: __copyright__ :value: Multiline-String .. raw:: html
Show Value .. code-block:: python """ (C) 2015 Canonical ltd (c) 2017 - 2022 Martin Pitt """ .. raw:: html
.. py:data:: SYSTEM_BUS :value: True .. py:data:: BUS_NAME :value: 'org.freedesktop.URfkill' .. py:data:: MAIN_OBJ :value: '/org/freedesktop/URfkill' .. py:data:: MAIN_IFACE :value: 'org.freedesktop.URfkill' .. py:data:: individual_objects :value: ['BLUETOOTH', 'FM', 'GPS', 'NFC', 'UWB', 'WIMAX', 'WLAN', 'WWAN'] .. py:data:: type2objectname .. py:data:: KS_NOTAVAILABLE :value: -1 .. py:data:: KS_UNBLOCKED :value: 0 .. py:data:: KS_SOFTBLOCKED :value: 1 .. py:data:: KS_HARDBLOCKED :value: 2 .. py:function:: toggle_flight_mode(self, new_block_state) .. py:function:: block(self, index, should_block) .. py:function:: load(mock, parameters)