dbusmock.templates.modemmanager

ModemManager mock template

This creates the expected methods and properties of the main ModemManager object, but no devices. You can specify any property such as DaemonVersion in “parameters”.

Attributes

__author__

__copyright__

BUS_NAME

MAIN_OBJ

MAIN_IFACE

SYSTEM_BUS

IS_OBJECT_MANAGER

MODEM_IFACE

MODEM_3GPP_IFACE

MODEM_CELL_BROADCAST_IFACE

MODEM_VOICE_IFACE

SIM_IFACE

CBM_IFACE

SIMPLE_MODEM_PATH

Classes

MMModemMode

See

MMModemState

See

MMModemPowerState

See

MMModemAccesssTechnology

See

Functions

load(mock, parameters)

listCbm(_)

deleteCbm(self, cbm_path)

AddSimpleModem(self)

Convenience method to add a simple Modem object

AddCbm(self, state, channel, text)

Convenience method to add a cell broadcast message

Module Contents

dbusmock.templates.modemmanager.__author__ = 'Guido Günther'[source]
dbusmock.templates.modemmanager.BUS_NAME = 'org.freedesktop.ModemManager1'[source]
dbusmock.templates.modemmanager.MAIN_OBJ = '/org/freedesktop/ModemManager1'[source]
dbusmock.templates.modemmanager.MAIN_IFACE = 'org.freedesktop.ModemManager1'[source]
dbusmock.templates.modemmanager.SYSTEM_BUS = True[source]
dbusmock.templates.modemmanager.IS_OBJECT_MANAGER = False[source]
dbusmock.templates.modemmanager.MODEM_IFACE = 'org.freedesktop.ModemManager1.Modem'[source]
dbusmock.templates.modemmanager.MODEM_3GPP_IFACE = 'org.freedesktop.ModemManager1.Modem.Modem3gpp'[source]
dbusmock.templates.modemmanager.MODEM_CELL_BROADCAST_IFACE = 'org.freedesktop.ModemManager1.Modem.CellBroadcast'[source]
dbusmock.templates.modemmanager.MODEM_VOICE_IFACE = 'org.freedesktop.ModemManager1.Modem.Voice'[source]
dbusmock.templates.modemmanager.SIM_IFACE = 'org.freedesktop.ModemManager1.Sim'[source]
dbusmock.templates.modemmanager.CBM_IFACE = 'org.freedesktop.ModemManager1.Cbm'[source]
dbusmock.templates.modemmanager.SIMPLE_MODEM_PATH = '/org/freedesktop/ModemManager1/Modems/8'[source]
class dbusmock.templates.modemmanager.MMModemMode[source]

See https://www.freedesktop.org/software/ModemManager/doc/latest/ModemManager/ModemManager-Flags-and-Enumerations.html#MMModemMode

MODE_NONE = 0[source]
MODE_CS = 1[source]
MODE_2G = 2[source]
MODE_3G = 4[source]
MODE_4G = 8[source]
MODE_5G = 16[source]
class dbusmock.templates.modemmanager.MMModemState[source]

See https://www.freedesktop.org/software/ModemManager/doc/latest/ModemManager/ModemManager-Flags-and-Enumerations.html#MMModemState

STATE_FAILED = -1[source]
STATE_UNKNOWN = 0[source]
STATE_INITIALIZING = 1[source]
STATE_LOCKED = 2[source]
STATE_DISABLED = 3[source]
STATE_DISABLING = 4[source]
STATE_ENABLING = 5[source]
STATE_ENABLED = 6[source]
STATE_SEARCHING = 7[source]
STATE_REGISTERED = 8[source]
STATE_DISCONNECTING = 9[source]
STATE_CONNECTING = 10[source]
STATE_CONNECTED = 11[source]
class dbusmock.templates.modemmanager.MMModemPowerState[source]

See https://www.freedesktop.org/software/ModemManager/doc/latest/ModemManager/ModemManager-Flags-and-Enumerations.html#MMModemPowerState

POWER_STATE_UNKNOWN = 0[source]
POWER_STATE_OFF = 1[source]
POWER_STATE_LOW = 2[source]
POWER_STATE_ON = 3[source]
class dbusmock.templates.modemmanager.MMModemAccesssTechnology[source]

See https://www.freedesktop.org/software/ModemManager/doc/latest/ModemManager/ModemManager-Flags-and-Enumerations.html#MMModemAccessTechnology

ACCESS_TECHNOLOGY_UNKNOWN = 0[source]
ACCESS_TECHNOLOGY_POTS = 1[source]
ACCESS_TECHNOLOGY_GSM = 2[source]
ACCESS_TECHNOLOGY_GSM_COMPACT = 4[source]
ACCESS_TECHNOLOGY_GPRS = 8[source]
ACCESS_TECHNOLOGY_EDGE = 16[source]
ACCESS_TECHNOLOGY_UMTS = 32[source]
ACCESS_TECHNOLOGY_HSDPA = 64[source]
ACCESS_TECHNOLOGY_HSUPA = 128[source]
ACCESS_TECHNOLOGY_HSPA = 256[source]
ACCESS_TECHNOLOGY_HSPA_PLUS = 512[source]
ACCESS_TECHNOLOGY_1XRTT = 1024[source]
ACCESS_TECHNOLOGY_EVDO0 = 2048[source]
ACCESS_TECHNOLOGY_EVDOA = 4096[source]
ACCESS_TECHNOLOGY_EVDOB = 8192[source]
ACCESS_TECHNOLOGY_LTE = 16384[source]
ACCESS_TECHNOLOGY_5GNR = 32768[source]
ACCESS_TECHNOLOGY_LTE_CAT_M = 65536[source]
ACCESS_TECHNOLOGY_LTE_NB_IOT = 131072[source]
dbusmock.templates.modemmanager.load(mock, parameters)[source]
dbusmock.templates.modemmanager.listCbm(_)[source]
dbusmock.templates.modemmanager.deleteCbm(self, cbm_path)[source]
dbusmock.templates.modemmanager.AddSimpleModem(self)[source]

Convenience method to add a simple Modem object

Please note that this does not set any global properties.

Returns the new object path.

dbusmock.templates.modemmanager.AddCbm(self, state, channel, text)[source]

Convenience method to add a cell broadcast message

Returns the new object path.