StateMachine object, that is used for communication with phone.
param Locale: What locales to use for gammu error messages, default is
'auto' which does autodetection according to user locales type Locale:
string
int
|
|
int
|
|
hash
|
|
string
|
AddFolder(ParentFolderID,
Name)
Adds folder to filesystem. |
|
|
int
|
AddMemory(Value)
Adds memory (phonebooks or calls) entry. |
|
|
tuple
|
AddSMS(Value)
Adds SMS to specified folder. |
|
|
None
|
|
int
|
|
None
|
|
None
|
|
None
|
|
None
|
|
None
|
DeleteAllMemory(Type)
Deletes all memory (phonebooks or calls) entries of specified
type. |
|
|
None
|
|
None
|
|
None
|
|
None
|
|
None
|
DeleteMemory(Type,
Location)
Deletes memory (phonebooks or calls) entry. |
|
|
None
|
|
None
|
|
None
|
|
None
|
DialService(Number,
ShowNumber)
Dials number and starts voice call. |
|
|
None
|
DialVoice(Number,
ShowNumber)
Dials number and starts voice call. |
|
|
None
|
|
hash
|
GetAlarm(Location)
Reads alarm set in phone. |
|
|
hash
|
GetBatteryCharge()
Gets information about batery charge and phone charging state. |
|
|
hash
|
|
hash
|
|
string
|
|
hash
|
|
hash
|
GetConfig(Section)
Gets specified config section. |
|
|
datetime.datetime
|
|
list
|
|
hash
|
|
hash
|
|
tuple
|
|
hash
|
|
string
|
|
string
|
GetIMEI()
Reads IMEI/serial number from phone. |
|
|
hash
|
GetLocale()
Gets locale information from phone. |
|
|
string
|
|
string
|
|
hash
|
GetMemory(Type,
Location)
Reads entry from memory (phonebooks or calls). |
|
|
hash
|
|
tuple
|
|
hash
|
|
hash
|
|
hash
|
|
hash
|
GetNextMemory(Type,
Start,
Location)
Reads entry from memory (phonebooks or calls). |
|
|
|
|
hash
|
GetNextSMS(Folder,
Start,
Location)
Reads next (or first if start set) SMS message. |
|
|
hash
|
|
string
|
|
string
|
GetPPM()
Gets PPM (Post Programmable Memory) from phone. |
|
|
string
|
|
string
|
|
hash
|
GetSMS(Folder,
Location)
Reads SMS message. |
|
|
hash
|
GetSMSC(Location)
Gets SMS Service Center number and SMS settings. |
|
|
list
|
|
hash
|
GetSMSStatus()
Gets information about SMS memory (read/unread/size of memory for
both SIM and phone). |
|
|
string
|
|
hash
|
|
hash
|
|
hash
|
GetToDo(Location)
Reads ToDo from phone. |
|
|
hash
|
|
None
|
|
None
|
Init(Replies)
Initialises the connection with phone. |
|
|
None
|
PressKey(Key,
Press)
Emulates key press. |
|
|
None
|
ReadConfig(Section,
Configuration)
Reads specified section of gammurc |
|
|
int
|
|
None
|
Reset(Hard)
Performs phone reset. |
|
|
None
|
|
hash
|
|
int
|
|
int
|
|
None
|
SetAlarm(DateTime,
Location,
Repeating,
Text)
Sets alarm in phone. |
|
|
None
|
|
int
|
|
None
|
SetConfig(Section,
Values)
Sets specified config section. |
|
|
None
|
|
None
|
|
None
|
SetDebugLevel(Level)
Sets state machine debug level accorting to passed string. |
|
|
None
|
SetFileAttributes(Filename,
ReadOnly,
Protected,
System,
Hidden)
Sets file attributes. |
|
|
None
|
|
None
|
SetIncomingCall(Enable)
Activates/deactivates noticing about incoming calls. |
|
|
None
|
SetIncomingCallback(Callback)
Sets callback function which is called whenever any (enabled)
incoming event appears. |
|
|
None
|
|
None
|
SetIncomingUSSD(Enable)
Activates/deactivates noticing about incoming USSDs (UnStructured
Supplementary Services). |
|
|
None
|
SetLocale(DateSeparator,
DateFormat,
AMPMTime)
Sets locale of phone. |
|
|
int
|
SetMemory(Value)
Sets memory (phonebooks or calls) entry. |
|
|
tuple
|
|
None
|
SetSMSC(Value)
Sets SMS Service Center number and SMS settings. |
|
|
None
|
|
int
|
|
None
|
|
None
|
|
None
|
Terminate()
Terminates the connection with phone. |
|
|
None
|
|
None
|
|
|
__init__(Locale)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature |
|
|
|
__new__(T,
S,
...)
Returns:
a new object with type S, a subtype of T |
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|