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

Class Phone

source code

                com_brew.RealBrewProtocol --+            
                                            |            
                   com_brew.RealBrewProtocol2 --+        
                                                |        
       com_lg.LGUncountedIndexedMedia --+       |        
                                        |       |        
     com_lg.LGNewIndexedMedia --+       |       |        
                                |       |       |        
        com_lg.LGNewIndexedMedia2 --+   |       |        
                                    |   |       |        
                 com_lg.LGDMPhone --+   |       |        
                                    |   |       |        
     com_lg.LGNewIndexedMedia --+   |   |       |        
                                |   |   |       |        
               object --+       |   |   |       |        
                        |       |   |   |       |        
          com_phone.Phone --+   |   |   |       |        
                            |   |   |   |       |        
com_brew.RealBrewProtocol --+   |   |   |       |        
                            |   |   |   |       |        
       com_lg.LGPhonebook --+   |   |   |       |        
                            |   |   |   |       |        
    com_lg.LGIndexedMedia --+   |   |   |       |        
                            |   |   |   |       |        
           com_lgvx4400.Phone --+   |   |       |        
                                |   |   |       |        
               com_lgvx7000.Phone --+   |       |        
                                    |   |       |        
                   com_lgvx8100.Phone --+       |        
                                        |       |        
                       com_lgvx8300.Phone --+   |        
                                            |   |        
                           com_lgvx8500.Phone --+        
                                                |        
                               com_lgvx8700.Phone --+    
                                                    |    
                                   com_lgvx8550.Phone --+
                                                        |
                                                       Phone
Known Subclasses:

Talk to the LG VX9100 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
 
setDMversion(self)
Define the DM version required for this phone, default to DMv5
source code
 
getgroups(self, results)
Read groups
source code
 
savegroups(self, data) source code
 
_get_speeddials(self)
Return the speed dials dict
source code
 
_build_media_dict(self, fundamentals, media_data, index_name)
Build & return a dict with keys being the media filenames and values being the name of the index item (index['name'])
source code
 
_build_ice_dict(self) source code
 
getphonebook(self, result)
Reads the phonebook data.
source code
 
extractphonebookentry(self, entry, numbers, speeds, ices, fundamentals, rt_name, wp_name)
Return a phonebook entry in BitPim format.
source code
 
_assignpbtypeandspeeddialsbytype(self, entry, numbers, speeds, res) source code
 
_assigniceentry(self, entry, numbers, ices, res) source code
 
_get_next_pb_id(self)
Return the next available pbentry ID
source code
 
_save_next_pb_id(self, idnum)
Save the next pbentry ID
source code
 
savephonebook(self, data)
Saves out the phonebook
source code
 
make_pn_entry(self, phone_number, number_type, pn_id, pbpn_id, pe_id)
Create a non-blank pnfileentry frome a phone number string
source code
 
make_ice_entry(self, ice_id, pb_id)
Create a iceentry from a pb_id and ice_id
source code
 
make_entry(self, pn_entries, speeddials, ice_entries, entry_num0, entry_num1, pb_entry, data, ring_pathf, rt_index, picid_pathf, wp_index)
Create a pbfileentry from a bitpim phonebook entry
source code
 
_scheduleextras(self, data, fwversion) source code
 
savewallpapers(self, results, merge) source code
 
saveringtones(self, results, merge) source code
 
getindex(self, filename)
read an index file
source code
 
_readsms(self) source code
 
_getinboxmessage(self, sf) source code

Inherited from com_lgvx8550.Phone: getcalendar, savecalendar

Inherited from com_lgvx8550.Phone (private): _get_path_index

Inherited from com_lgvx8700.Phone: listsubdirs

Inherited from com_lgvx8700.Phone (private): _update_pb_file

Inherited from com_brew.RealBrewProtocol2: closefile, exists, getfilecontents, getfilecontents2, getfilesystem, listfiles, mkdir, openfile, reconfig_directory, rmdir, rmfile, statfile, writefile

Inherited from com_lgvx8500.Phone: get_firmware_version, getplaylist, gett9db, saveplaylist, savet9db

Inherited from com_lgvx8300.Phone: get_detect_data, get_esn

Inherited from com_lg.LGUncountedIndexedMedia: external_storage_present, getmedia, getmediaindex, getringtoneindices, getringtones, getwallpaperindices, getwallpapers, is_external_media, savemedia

Inherited from com_lgvx8100.Phone: getcalendarcommon, getexceptions, getmemo, getphoneinfo, getrepeattype, makerepeat, savememo, setalarm

Inherited from com_lg.LGNewIndexedMedia2 (private): _guessvtype

Inherited from com_lg.LGDMPhone: __del__, enter_DM, get_challenge_response

Inherited from com_lgvx4400.Phone: eval_detect_data, get_cal, getcallhistory, getfundamentals, getsms, is_mode_brew, makeentry, savesms, set_cal

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, explore0c, get_brew_esn, getfirmwareinformation, hassubdirs, isdir, isfile, join, mkdirs, modemmoderequest, offlinerequest, rmdirs, sendbrewcommand, setfileattr

Inherited from com_brew.RealBrewProtocol (private): _setmodebrew

Inherited from com_lg.LGPhonebook: sendpbcommand

Class Methods [hide private]

Inherited from com_lgvx4400.Phone: detectphone

Class Variables [hide private]
  desc = 'LG-VX9100'
  helpid = 'phone-lgvx9100.htm'
  protocolclass
Various descriptions of data specific to LG VX9100
  serialsname = 'lgvx9100'
  my_model = 'VX9100'
  external_storage_root = 'mmc1/'
  builtinringtones = ('Low Beep Once', 'Low Beeps', 'Loud Beep O...
  ringtonelocations = (('ringers', 'dload/myringtone.dat', 'brew...
  wallpaperlocations = (('images', 'dload/image.dat', 'brew/mod/...
  n = 16

Inherited from com_lgvx8550.Phone: calendarringerlocation

Inherited from com_lgvx8500.Phone (private): _buffer_data, _t9keys

Inherited from com_lgvx8300.Phone: builtinwallpapers, calendarexceptionlocation, calendarlocation, calenderrequiresreboot, memolocation

Inherited from com_lgvx8100.Phone: media_info

Inherited from com_lg.LGNewIndexedMedia2 (private): _minor_typemap

Inherited from com_lgvx4400.Phone: brew_version_file, brew_version_txt_key, builtinimages, esn_file, esn_file_key, imagelocations, lgpbinfo_key, ringerindexfilename, wallpaperindexfilename

Inherited from com_phone.Phone: MODEMODEM, MODENONE, gettodo

Inherited from com_brew.RealBrewProtocol: MODEBREW, brewterminator

Inherited from com_brew.RealBrewProtocol (private): _brewepochtounix

Inherited from com_lg.LGPhonebook: MODEPHONEBOOK, pbterminator

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_lg.LGIndexedMedia.__init__

setDMversion(self)

source code 

Define the DM version required for this phone, default to DMv5

Overrides: com_lg.LGDMPhone.setDMversion
(inherited documentation)

getgroups(self, results)

source code 

Read groups

Overrides: com_lgvx4400.Phone.getgroups

savegroups(self, data)

source code 
Overrides: com_lgvx4400.Phone.savegroups

_get_speeddials(self)

source code 

Return the speed dials dict

Overrides: com_lgvx8550.Phone._get_speeddials

_build_media_dict(self, fundamentals, media_data, index_name)

source code 

Build & return a dict with keys being the media filenames and values being the name of the index item (index['name'])

Overrides: com_lgvx8550.Phone._build_media_dict

_build_ice_dict(self)

source code 
Overrides: com_lgvx8550.Phone._build_ice_dict

getphonebook(self, result)

source code 

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

Overrides: com_lgvx4400.Phone.getphonebook

extractphonebookentry(self, entry, numbers, speeds, ices, fundamentals, rt_name, wp_name)

source code 

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

Overrides: com_lgvx4400.Phone.extractphonebookentry

_assignpbtypeandspeeddialsbytype(self, entry, numbers, speeds, res)

source code 
Overrides: com_lgvx4400.Phone._assignpbtypeandspeeddialsbytype

_assigniceentry(self, entry, numbers, ices, res)

source code 
Overrides: com_lgvx8550.Phone._assigniceentry

_get_next_pb_id(self)

source code 

Return the next available pbentry ID

Overrides: com_lgvx8550.Phone._get_next_pb_id

_save_next_pb_id(self, idnum)

source code 

Save the next pbentry ID

Overrides: com_lgvx8550.Phone._save_next_pb_id

savephonebook(self, data)

source code 

Saves out the phonebook

Overrides: com_lgvx4400.Phone.savephonebook

make_pn_entry(self, phone_number, number_type, pn_id, pbpn_id, pe_id)

source code 

Create a non-blank pnfileentry frome a phone number string

Overrides: com_lgvx8550.Phone.make_pn_entry

make_ice_entry(self, ice_id, pb_id)

source code 

Create a iceentry from a pb_id and ice_id

Overrides: com_lgvx8550.Phone.make_ice_entry

make_entry(self, pn_entries, speeddials, ice_entries, entry_num0, entry_num1, pb_entry, data, ring_pathf, rt_index, picid_pathf, wp_index)

source code 

Create a pbfileentry from a bitpim phonebook entry

Overrides: com_lgvx8550.Phone.make_entry

_scheduleextras(self, data, fwversion)

source code 
Overrides: com_lgvx8550.Phone._scheduleextras

savewallpapers(self, results, merge)

source code 
Overrides: com_lg.LGIndexedMedia.savewallpapers

saveringtones(self, results, merge)

source code 
Overrides: com_lg.LGIndexedMedia.saveringtones

getindex(self, filename)

source code 

read an index file

Overrides: com_lg.LGIndexedMedia.getindex
(inherited documentation)

_readsms(self)

source code 
Overrides: com_lgvx4400.Phone._readsms

_getinboxmessage(self, sf)

source code 
Overrides: com_lgvx4400.Phone._getinboxmessage

Class Variable Details [hide private]

protocolclass

Various descriptions of data specific to LG VX9100

Value:
phones.p_lgvx9100

builtinringtones

Value:
('Low Beep Once',
 'Low Beeps',
 'Loud Beep Once',
 'Loud Beeps',
 'Door Bell',
 'VZW Default Tone',
 'Ringtone 1',
 'Ringtone 2',
...

ringtonelocations

Value:
(('ringers',
  'dload/myringtone.dat',
  'brew/mod/10889/ringtones',
  'mmc1/ringers',
  100,
  257,
  100),
 ('sounds', 'dload/mysound.dat', 'brew/mod/18067', '', 100, 2, None),
...

wallpaperlocations

Value:
(('images', 'dload/image.dat', 'brew/mod/10888', '', 100, 0, 100),
 ('images(sd)',
  'dload/sd_image.dat',
  'mmc1/my_pix',
  '',
  100,
  16,
  None),
...