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

Class Phone

source code

               object --+        
                        |        
          com_phone.Phone --+    
                            |    
com_brew.RealBrewProtocol --+    
                            |    
       com_lg.LGPhonebook --+    
                            |    
    com_lg.LGIndexedMedia --+    
                            |    
           com_lgvx4400.Phone --+
                                |
                               Phone

Talk to the LG VX3200 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
 
makeentry(self, counter, entry, dict)
Creates pbentry object
source code
 
getindex(self, indexfile)
Read an index file
source code
 
getmedia(self, maps, result, key)
Returns the contents of media as a dict where the key is a name as returned by getindex, and the value is the contents of the media
source code
 
savemedia(self, mediakey, mediaindexkey, maps, results, merge, reindexfunction)
Actually saves out the media
source code

Inherited from com_lgvx4400.Phone: eval_detect_data, extractphonebookentry, get_cal, get_detect_data, get_esn, getcalendar, getcallhistory, getfundamentals, getgroups, getmemo, getphonebook, getringtoneindices, getsms, getwallpaperindices, is_mode_brew, savecalendar, savegroups, savememo, savephonebook, 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, exists, explore0c, get_brew_esn, getfilecontents, getfilesystem, getfirmwareinformation, hassubdirs, isdir, isfile, join, listfiles, listsubdirs, mkdir, mkdirs, modemmoderequest, offlinerequest, rmdir, rmdirs, rmfile, sendbrewcommand, setfileattr, statfile, writefile

Inherited from com_brew.RealBrewProtocol (private): _setmodebrew

Inherited from com_lg.LGPhonebook: sendpbcommand

Inherited from com_lg.LGIndexedMedia: getmediaindex, getringtones, getwallpapers, saveringtones, savewallpapers

Class Methods [hide private]

Inherited from com_lgvx4400.Phone: detectphone

Class Variables [hide private]
  desc = 'LG-VX3200'
  helpid = 'phone-lgvx3200.htm'
  wallpaperindexfilename = 'download/dloadindex/brewImageIndex.map'
  ringerindexfilename = 'download/dloadindex/brewRingerIndex.map'
  protocolclass
Various descriptions of data specific to LG VX3200
  serialsname = 'lgvx3200'
  imagelocations = ((11, 'download/dloadindex/brewImageIndex.map...
  ringtonelocations = ((27, 'download/dloadindex/brewRingerIndex...
  builtinimages = ('Sport 1', 'Sport 2', 'Nature 1', 'Nature 2',...
  builtinringtones = ('Ring 1', 'Ring 2', 'Ring 3', 'Ring 4', 'R...
  my_model = 'AX3200'

Inherited from com_lgvx4400.Phone: brew_version_file, brew_version_txt_key, esn_file, esn_file_key, lgpbinfo_key

Inherited from com_phone.Phone: MODEMODEM, MODENONE, getplaylist, gett9db, 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__

makeentry(self, counter, entry, dict)

source code 

Creates pbentry object

Parameters:
  • counter - The new entry number
  • entry - The phonebook object (as returned from convertphonebooktophone) that we are using as the source
  • data - The main dictionary, which we use to get access to media indices amongst other things
Overrides: com_lgvx4400.Phone.makeentry
(inherited documentation)

getindex(self, indexfile)

source code 

Read an index file

Overrides: com_lg.LGIndexedMedia.getindex

getmedia(self, maps, result, key)

source code 

Returns the contents of media as a dict where the key is a name as returned by getindex, and the value is the contents of the media

Overrides: com_lg.LGIndexedMedia.getmedia

savemedia(self, mediakey, mediaindexkey, maps, results, merge, reindexfunction)

source code 

Actually saves out the media

Parameters:
  • mediakey - key of the media (eg 'wallpapers' or 'ringtone')
  • mediaindexkey - index key (eg 'wallpaper-index')
  • maps - list index files and locations
  • results - results dict
  • merge - are we merging or overwriting what is there?
  • reindexfunction - the media is re-indexed at the end. this function is called to do it
Overrides: com_lg.LGIndexedMedia.savemedia

Class Variable Details [hide private]

protocolclass

Various descriptions of data specific to LG VX3200

Value:
phones.p_lgvx3200

imagelocations

Value:
((11,
  'download/dloadindex/brewImageIndex.map',
  'download',
  'images',
  3))

ringtonelocations

Value:
((27,
  'download/dloadindex/brewRingerIndex.map',
  'user/sound/ringer',
  'ringers',
  30))

builtinimages

Value:
('Sport 1',
 'Sport 2',
 'Nature 1',
 'Nature 2',
 'Animal',
 'Martini',
 'Goldfish',
 'Umbrellas',
...

builtinringtones

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