ModemManager.GdbusSms

g GObject.GInterface GObject.GInterface ModemManager.GdbusSms ModemManager.GdbusSms GObject.GInterface->ModemManager.GdbusSms

Implementations:

ModemManager.GdbusSmsProxy, ModemManager.GdbusSmsSkeleton

Methods

class

interface_info ()

class

override_properties (klass, property_id_begin)

call_send (cancellable, callback, *user_data)

call_send_finish (res)

call_send_sync (cancellable)

call_store (arg_storage, cancellable, callback, *user_data)

call_store_finish (res)

call_store_sync (arg_storage, cancellable)

complete_send (invocation)

complete_store (invocation)

Virtual Methods

do_handle_send (invocation)

do_handle_store (invocation, arg_storage)

Properties

Name

Type

Flags

Short Description

class

int

r/w

Class

data

GLib.Variant

r/w

Data

delivery-report-request

bool

r/w

DeliveryReportRequest

delivery-state

int

r/w

DeliveryState

discharge-timestamp

str

r/w

DischargeTimestamp

message-reference

int

r/w

MessageReference

number

str

r/w

Number

pdu-type

int

r/w

PduType

service-category

int

r/w

ServiceCategory

smsc

str

r/w

SMSC

state

int

r/w

State

storage

int

r/w

Storage

teleservice-id

int

r/w

TeleserviceId

text

str

r/w

Text

timestamp

str

r/w

Timestamp

validity

GLib.Variant

r/w

Validity

Signals

Name

Short Description

handle-send

Signal emitted when a remote caller is invoking the ‘Send() [gdbus-method-org-freedesktop-ModemManager1-Sms.Send]’ D-Bus method.

handle-store

Signal emitted when a remote caller is invoking the ‘Store() [gdbus-method-org-freedesktop-ModemManager1-Sms.Store]’ D-Bus method.

Fields

None

Class Details

class ModemManager.GdbusSms
Bases:

GObject.GInterface

Structure:

ModemManager.GdbusSmsIface

Abstract interface type for the D-Bus interface ‘org.freedesktop.ModemManager1.Sms [gdbus-interface-org-freedesktop-ModemManager1-Sms.top_of_page]’.

classmethod interface_info()
Returns:

A Gio.DBusInterfaceInfo. Do not free.

Return type:

Gio.DBusInterfaceInfo

Gets a machine-readable description of the ‘org.freedesktop.ModemManager1.Sms [gdbus-interface-org-freedesktop-ModemManager1-Sms.top_of_page]’ D-Bus interface.

classmethod override_properties(klass, property_id_begin)
Parameters:
Returns:

The last property id.

Return type:

int

Overrides all GObject.Object properties in the ModemManager.GdbusSms interface for a concrete class. The properties are overridden in the order they are defined.

call_send(cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘Send() [gdbus-method-org-freedesktop-ModemManager1-Sms.Send]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call ModemManager.GdbusSms.call_send_finish() to get the result of the operation.

See ModemManager.GdbusSms.call_send_sync() for the synchronous, blocking version of this method.

call_send_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusSms.call_send().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Finishes an operation started with ModemManager.GdbusSms.call_send().

call_send_sync(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – A Gio.Cancellable or None.

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the ‘Send() [gdbus-method-org-freedesktop-ModemManager1-Sms.Send]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See ModemManager.GdbusSms.call_send() for the asynchronous version of this method.

call_store(arg_storage, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘Store() [gdbus-method-org-freedesktop-ModemManager1-Sms.Store]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call ModemManager.GdbusSms.call_store_finish() to get the result of the operation.

See ModemManager.GdbusSms.call_store_sync() for the synchronous, blocking version of this method.

call_store_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusSms.call_store().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Finishes an operation started with ModemManager.GdbusSms.call_store().

call_store_sync(arg_storage, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the ‘Store() [gdbus-method-org-freedesktop-ModemManager1-Sms.Store]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See ModemManager.GdbusSms.call_store() for the asynchronous version of this method.

complete_send(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the ‘Send() [gdbus-method-org-freedesktop-ModemManager1-Sms.Send]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

complete_store(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the ‘Store() [gdbus-method-org-freedesktop-ModemManager1-Sms.Store]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

do_handle_send(invocation) virtual
Parameters:

invocation (Gio.DBusMethodInvocation) –

Return type:

bool

do_handle_store(invocation, arg_storage) virtual
Parameters:
Return type:

bool

Signal Details

ModemManager.GdbusSms.signals.handle_send(gdbus_sms, invocation)
Signal Name:

handle-send

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the ‘Send() [gdbus-method-org-freedesktop-ModemManager1-Sms.Send]’ D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call ModemManager.GdbusSms.complete_send() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

ModemManager.GdbusSms.signals.handle_store(gdbus_sms, invocation, arg_storage)
Signal Name:

handle-store

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the ‘Store() [gdbus-method-org-freedesktop-ModemManager1-Sms.Store]’ D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call ModemManager.GdbusSms.complete_store() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

Property Details

ModemManager.GdbusSms.props.class_
Name:

class

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Class” [gdbus-property-org-freedesktop-ModemManager1-Sms.Class]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusSms.props.data
Name:

data

Type:

GLib.Variant

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Data” [gdbus-property-org-freedesktop-ModemManager1-Sms.Data]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusSms.props.delivery_report_request
Name:

delivery-report-request

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“DeliveryReportRequest” [gdbus-property-org-freedesktop-ModemManager1-Sms.DeliveryReportRequest]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusSms.props.delivery_state
Name:

delivery-state

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“DeliveryState” [gdbus-property-org-freedesktop-ModemManager1-Sms.DeliveryState]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusSms.props.discharge_timestamp
Name:

discharge-timestamp

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“DischargeTimestamp” [gdbus-property-org-freedesktop-ModemManager1-Sms.DischargeTimestamp]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusSms.props.message_reference
Name:

message-reference

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“MessageReference” [gdbus-property-org-freedesktop-ModemManager1-Sms.MessageReference]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusSms.props.number
Name:

number

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Number” [gdbus-property-org-freedesktop-ModemManager1-Sms.Number]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusSms.props.pdu_type
Name:

pdu-type

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“PduType” [gdbus-property-org-freedesktop-ModemManager1-Sms.PduType]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusSms.props.service_category
Name:

service-category

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“ServiceCategory” [gdbus-property-org-freedesktop-ModemManager1-Sms.ServiceCategory]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusSms.props.smsc
Name:

smsc

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“SMSC” [gdbus-property-org-freedesktop-ModemManager1-Sms.SMSC]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusSms.props.state
Name:

state

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“State” [gdbus-property-org-freedesktop-ModemManager1-Sms.State]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusSms.props.storage
Name:

storage

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Storage” [gdbus-property-org-freedesktop-ModemManager1-Sms.Storage]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusSms.props.teleservice_id
Name:

teleservice-id

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“TeleserviceId” [gdbus-property-org-freedesktop-ModemManager1-Sms.TeleserviceId]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusSms.props.text
Name:

text

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Text” [gdbus-property-org-freedesktop-ModemManager1-Sms.Text]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusSms.props.timestamp
Name:

timestamp

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Timestamp” [gdbus-property-org-freedesktop-ModemManager1-Sms.Timestamp]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusSms.props.validity
Name:

validity

Type:

GLib.Variant

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Validity” [gdbus-property-org-freedesktop-ModemManager1-Sms.Validity]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.