Package gammu :: Class SMSD
[hide private]
[frames] | no frames]

Class SMSD

source code

object --+
         |
        SMSD

SMSD(Config)

SMSD object, that is used for communication with phone.

param Config: Path to SMSD configuration file type Config: string

Instance Methods [hide private]
dict
GetStatus()
Returns SMSD status.
source code
string
InjectSMS(Message)
Decodes multi part SMS message.
source code
None
MainLoop(MaxFailures)
Runs SMS daemon.
source code
None
Shutdown()
Flags SMS daemon to stop.
source code
 
__init__(Config)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
a new object with type S, a subtype of T
__new__(T, S, ...) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

GetStatus()

source code 

Returns SMSD status.

Returns: dict
Dict with status values

InjectSMS(Message)

source code 

Decodes multi part SMS message.

Parameters:
  • Message (list) - Nessage to inject (can be multipart)
Returns: string
ID of inserted message

MainLoop(MaxFailures)

source code 

Runs SMS daemon.

Parameters:
  • MaxFailures (int) - After how many init failures SMSD ends. Defaults to 0, what means never.
Returns: None
None

Shutdown()

source code 

Flags SMS daemon to stop.

Returns: None
None

__init__(Config)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__

__new__(T, S, ...)

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__