Module pygsmd :: Class ShortMessageStorage
[frames] | no frames]

Class ShortMessageStorage


Nested Classes

Inherited from dbus.service.Interface: __metaclass__

Instance Methods
 
__init__(self, bus, gsm)
Constructor. Either conn or bus_name is required; object_path is also required.
 
get_keyring(self)
 
list_all(self, ok_cb, error_cb)
0 "REC UNREAD" received unread message (i.e. new message) 1 "REC READ" received read message 2 "STO UNSENT" stored unsent message (only applicable to SMs) 3 "STO SENT" stored sent message (only applicable to SMs) 4 "ALL" all messages (only applicable to +CMGL command)
 
delete_all(self, ok_cb, error_cb)
 
store(self, number, text, ok_cb, error_cb)
 
send(self, number, text, ok_cb, error_cb)
 
new(self, newmap)

Inherited from dbus.service.Object: Introspect, __repr__, __str__, add_to_connection, remove_from_connection

Inherited from pyneo.interfaces.storage.Storage: DeleteAll, List, ListAll, New, Store

Inherited from pyneo.interfaces.messenger.Messenger: RegisterAllBroadcast, RegisterBroadcast, Send

Inherited from pyneo.interfaces.authorized.Authorized: GetKeyring

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables

Inherited from dbus.service.Object: SUPPORTS_MULTIPLE_CONNECTIONS, SUPPORTS_MULTIPLE_OBJECT_PATHS

Properties

Inherited from dbus.service.Object: __dbus_object_path__, connection, locations

Inherited from object: __class__

Method Details

__init__(self, bus, gsm)
(Constructor)

 
Constructor. Either conn or bus_name is required; object_path is also required.
Parameters:
  • conn - The connection on which to export this object.

    If None, use the Bus associated with the given bus_name. If there is no bus_name either, the object is not initially available on any Connection.

    For backwards compatibility, if an instance of dbus.service.BusName is passed as the first parameter, this is equivalent to passing its associated Bus as conn, and passing the BusName itself as bus_name.

  • object_path - A D-Bus object path at which to make this Object available immediately. If this is not None, a conn or bus_name must also be provided.
  • bus_name - Represents a well-known name claimed by this process. A reference to the BusName object will be held by this Object, preventing the name from being released during this Object's lifetime (unless it's released manually).
Overrides: object.__init__
(inherited documentation)