Package phones :: Module com_toshibavm4050 :: Class Phone
[hide private]
[frames] | no frames]

Class Phone

source code

               object --+    
                        |    
          com_phone.Phone --+
                            |
com_brew.RealBrewProtocol --+
                            |
                           Phone

Talk to Toshiba VM4050 cell phone

Nested Classes [hide private]

Inherited from com_brew.RealBrewProtocol: DirCache

Instance Methods [hide private]
 
__init__(self, logtarget, commport)
Calls all the constructors and sets initial modes
source code
 
getfundamentals(self, results)
Gets information fundamental to interopating with the phone and UI.
source code
 
getmediaindex(self, builtins, results, key)
Gets the media (wallpaper/ringtone) index
source code
 
getwallpaperindices(self, results) source code
 
getringtoneindices(self, results) source code
 
listsubdirs(self, dir='', recurse=0) source code
 
enable_data_transfer(self) source code
 
disable_data_transfer(self) source code
 
readdatarecord(self) source code
 
writedatarecord(self, record) source code
 
get_esn(self, data=None) source code
 
getcalendar(self, result) source code
 
getwallpapers(self, result) source code
 
getringtones(self, result) source code
 
getphonebook(self, result)
Reads the phonebook data.
source code
 
_get_ringtone(self, ringer_group, ringer_index) source code
 
__find_index(self, map, ringer) source code
 
_getringtone_group_index(self, ringtone) source code
 
extractphonebookentry(self, entry, result)
Return a phonebook entry in BitPim format.
source code
 
makephonebookentry(self, fields) source code
 
savephonebook(self, data) source code
 
sendpbentrytophone(self, entry) source code
 
deletepbentry(self, slot) source code
 
sendpbcommand(self, request, responseclass) source code
 
get_detect_data(self, res) source code

Inherited from com_phone.Phone: alert, close, log, logdata, progress, raisecommsdnaexception, raisecommsexception, readobject, setmode, writeobject

Inherited from com_phone.Phone (private): _setmodemodem

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Inherited from com_brew.RealBrewProtocol: basename, dirname, exists, explore0c, get_brew_esn, getfilecontents, getfilesystem, getfirmwareinformation, hassubdirs, isdir, isfile, join, listfiles, mkdir, mkdirs, modemmoderequest, offlinerequest, rmdir, rmdirs, rmfile, sendbrewcommand, setfileattr, statfile, writefile

Inherited from com_brew.RealBrewProtocol (private): _setmodebrew

Class Methods [hide private]
 
detectphone(_, coms, likely_ports, res, _module, _log) source code
Class Variables [hide private]
  desc = 'Toshiba VM4050'
  helpid = 'phone-toshiba_vm4050.htm'
  protocolclass
Various descriptions of data specific to Audiovox CDM8900
  serialsname = 'toshibavm4050'
  builtinimages = ()
  builtinringtones = ('Common', 'Ring 1', 'Ring 2', 'Ring 3', 'R...
  _type_map = {0: 'phone', 1: 'home', 2: 'office', 3: 'cell', 4:...
  _ringer_pattern1_map = {256: 'Ring 1', 257: 'Ring 2', 258: 'Ri...
  _ringer_pattern2_map = {9: 'Alarm 1', 10: 'Alarm 2', 11: 'Alar...
  _ringer_melody_map = {0: 'Stars & Stripes', 1: 'When the Saint...

Inherited from com_phone.Phone: MODEMODEM, MODENONE, getcallhistory, getmemo, getplaylist, getsms, gett9db, gettodo

Inherited from com_brew.RealBrewProtocol: MODEBREW, brewterminator

Inherited from com_brew.RealBrewProtocol (private): _brewepochtounix

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, logtarget, commport)
(Constructor)

source code 

Calls all the constructors and sets initial modes

Overrides: com_brew.RealBrewProtocol.__init__

getfundamentals(self, results)

source code 

Gets information fundamental to interopating with the phone and UI.

Currently this is:

  • 'uniqueserial' a unique serial number representing the phone
  • 'groups' the phonebook groups
  • 'wallpaper-index' map index numbers to names
  • 'ringtone-index' map index numbers to ringtone names

This method is called before we read the phonebook data or before we write phonebook data.

getmediaindex(self, builtins, results, key)

source code 

Gets the media (wallpaper/ringtone) index

Parameters:
  • builtins - the builtin list on the phone
  • results - places results in this dict
  • maps - the list of index files and locations
  • key - key to place results in

listsubdirs(self, dir='', recurse=0)

source code 
Overrides: com_brew.RealBrewProtocol.listsubdirs

getphonebook(self, result)

source code 

Reads the phonebook data. The getfundamentals information will already be in result.

extractphonebookentry(self, entry, result)

source code 

Return a phonebook entry in BitPim format. This is called from getphonebook.


Class Variable Details [hide private]

protocolclass

Various descriptions of data specific to Audiovox CDM8900

Value:
phones.p_toshibavm4050

builtinringtones

Value:
('Common',
 'Ring 1',
 'Ring 2',
 'Ring 3',
 'Ring 4',
 'Ring 5',
 'Ring 6',
 'Ring 7',
...

_type_map

Value:
{0: 'phone', 1: 'home', 2: 'office', 3: 'cell', 4: 'pager', 5: 'fax'}

_ringer_pattern1_map

Value:
{256: 'Ring 1',
 257: 'Ring 2',
 258: 'Ring 3',
 259: 'Ring 4',
 260: 'Ring 5',
 261: 'Ring 6',
 262: 'Ring 7',
 263: 'Ring 8',
...

_ringer_pattern2_map

Value:
{9: 'Alarm 1',
 10: 'Alarm 2',
 11: 'Alarm 3',
 12: 'Alarm 4',
 13: 'Alarm 5',
 14: 'Alarm 6',
 15: 'Alarm 7',
 16: 'Alarm 8',
...

_ringer_melody_map

Value:
{0: 'Stars & Stripes',
 1: 'When the Saints',
 2: 'Bach',
 3: 'William Tell',
 4: 'Nachtmusik',
 5: 'Str Serenade',
 6: 'Toccata',
 7: 'Meistersinger',
...