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

Class Phone

source code

     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 --+
                                        |
                                       Phone

Talk to the LG VX5200 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
 
__del__(self) source code
 
getmedia(self, maps, results, 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_lgvx8100.Phone: get_firmware_version, getcalendar, getcalendarcommon, getexceptions, getgroups, getmemo, getphoneinfo, getrepeattype, makerepeat, savecalendar, savegroups, savememo, setDMversion, setalarm

Inherited from com_lg.LGNewIndexedMedia2: getmediaindex

Inherited from com_lg.LGNewIndexedMedia2 (private): _guessvtype

Inherited from com_lg.LGDMPhone: enter_DM, get_challenge_response

Inherited from com_lg.LGNewIndexedMedia: getindex, getringtoneindices, getringtones, getwallpaperindices, getwallpapers, saveringtones, savewallpapers

Inherited from com_lgvx4400.Phone: eval_detect_data, extractphonebookentry, get_cal, get_detect_data, get_esn, getcallhistory, getfundamentals, getphonebook, getsms, is_mode_brew, makeentry, 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

Class Methods [hide private]

Inherited from com_lgvx4400.Phone: detectphone

Class Variables [hide private]
  desc = 'LG-VX5200'
  helpid = 'phone-lgvx5200.htm'
  protocolclass
Various descriptions of data specific to LG VX5200
  serialsname = 'lgvx5200'
  builtinringtones = 'Low Beep Once', 'Low Beeps', 'Loud Beep On...
  ringtonelocations = (('ringers', 'dload/ringtone.dat', '', 'us...
  calendarlocation = 'sch/schedule.dat'
  calendarexceptionlocation = 'sch/schexception.dat'
  calenderrequiresreboot = 1
  memolocation = 'sch/memo.dat'
  builtinwallpapers = ()
  wallpaperlocations = (('images', 'dload/image.dat', 'dload/ima...
  my_model = 'VX5200'

Inherited from com_lgvx8100.Phone: media_info

Inherited from com_lg.LGNewIndexedMedia2 (private): _minor_typemap

Inherited from com_lgvx7000.Phone: n

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, 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__

__del__(self)
(Destructor)

source code 
Overrides: com_lg.LGDMPhone.__del__

getmedia(self, maps, results, 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
(inherited documentation)

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

source code 

Actually saves out the media

Parameters:
  • mediakey - key of the media (eg 'wallpapers' or 'ringtones')
  • 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
(inherited documentation)

Class Variable Details [hide private]

protocolclass

Various descriptions of data specific to LG VX5200

Value:
phones.p_lgvx5200

builtinringtones

Value:
'Low Beep Once', 'Low Beeps', 'Loud Beep Once', 'Loud Beeps', 'VZW Def\
ault Ringtone'+ tuple(['Ringtone '+`n`for n in range(1, 11)])+('No Rin\
g',)

ringtonelocations

Value:
(('ringers',
  'dload/ringtone.dat',
  '',
  'user/sound/ringer',
  100,
  150,
  513,
  1,
...

wallpaperlocations

Value:
(('images',
  'dload/image.dat',
  'dload/imagesize.dat',
  'dload/img',
  100,
  50,
  0,
  0,
...