dbusmock.templates.ofono

ofonod D-Bus mock template

Attributes

__author__

__copyright__

BUS_NAME

MAIN_OBJ

MAIN_IFACE

SYSTEM_BUS

NOT_IMPLEMENTED

Functions

load(mock, parameters)

AddModem(self, name, _properties)

Convenience method to add a modem

new_modem_serial(mock)

new_imsi(mock)

new_iccid(mock)

add_voice_call_api(mock)

Add org.ofono.VoiceCallManager API to a mock

Dial(self, number, _hide_callerid)

HangupAll(self)

get_all_operators(mock)

add_netreg_api(mock)

Add org.ofono.NetworkRegistration API to a mock

add_simmanager_api(self, mock)

Add org.ofono.SimManager API to a mock

add_connectionmanager_api(mock)

Add org.ofono.ConnectionManager API to a mock

Module Contents

dbusmock.templates.ofono.__author__ = 'Martin Pitt'[source]
Show Value
"""
(c) 2013 Canonical Ltd.
(c) 2017 - 2022 Martin Pitt <martin@piware.de>
"""
dbusmock.templates.ofono.BUS_NAME = 'org.ofono'[source]
dbusmock.templates.ofono.MAIN_OBJ = '/'[source]
dbusmock.templates.ofono.MAIN_IFACE = 'org.ofono.Manager'[source]
dbusmock.templates.ofono.SYSTEM_BUS = True[source]
dbusmock.templates.ofono.NOT_IMPLEMENTED = 'raise dbus.exceptions.DBusException("not implemented", name="org.ofono.Error.NotImplemented")'[source]
dbusmock.templates.ofono.load(mock, parameters)[source]
dbusmock.templates.ofono.AddModem(self, name, _properties)[source]

Convenience method to add a modem

You have to specify a device name which must be a valid part of an object path, e. g. “mock_ac”. For future extensions you can specify a “properties” array, but no extra properties are supported for now.

Returns the new object path.

dbusmock.templates.ofono.new_modem_serial(mock)[source]
dbusmock.templates.ofono.new_imsi(mock)[source]
dbusmock.templates.ofono.new_iccid(mock)[source]
dbusmock.templates.ofono.add_voice_call_api(mock)[source]

Add org.ofono.VoiceCallManager API to a mock

dbusmock.templates.ofono.Dial(self, number, _hide_callerid)[source]
dbusmock.templates.ofono.HangupAll(self)[source]
dbusmock.templates.ofono.get_all_operators(mock)[source]
dbusmock.templates.ofono.add_netreg_api(mock)[source]

Add org.ofono.NetworkRegistration API to a mock

dbusmock.templates.ofono.add_simmanager_api(self, mock)[source]

Add org.ofono.SimManager API to a mock

dbusmock.templates.ofono.add_connectionmanager_api(mock)[source]

Add org.ofono.ConnectionManager API to a mock