Package phones :: Module com_lgvx9800 :: 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
Known Subclasses:

Talk to the LG VX9800 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
 
get_esn(self, data=None) source code
 
get_detect_data(self, res) source code
 
_is_rs_file(self, filename) 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
 
_mark_files(self, local_files, rs_files, local_dir) source code
 
_write_index_file(self, type) source code
 
savemedia(self, mediakey, mediaindexkey, maps, results, merge, reindexfunction)
Actually saves out the media
source code
 
savephonebook(self, data)
Saves out the phonebook
source code
 
_readsms(self) source code
 
_read_pl_list(self, file_name) source code
 
getplaylist(self, result) source code
 
_write_playlists(self, pl, all_songs) source code
 
saveplaylist(self, result, merge) 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: __del__, 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, getcallhistory, getfundamentals, getphonebook, 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, 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-VX9800'
  helpid = 'phone-lgvx9800.htm'
  protocolclass
Various descriptions of data specific to LG VX9800
  serialsname = 'lgvx9800'
  my_model = 'VX9800'
  builtinringtones = ('Low Beep Once', 'Low Beeps', 'Loud Beep O...
  ringtonelocations = (('ringers', 'dload/my_ringtone.dat', 'dlo...
  calendarlocation = 'sch/schedule.dat'
  calendarexceptionlocation = 'sch/schexception.dat'
  calenderrequiresreboot = 0
  memolocation = 'sch/memo.dat'
  builtinwallpapers = ()
  wallpaperlocations = 'images', 'dload/image.dat', 'dload/image...
  _rs_path = 'mmc1/'
  _rs_ringers_path = _rs_path+ 'ringers'
  _rs_images_path = _rs_path+ 'images'
  media_info = {'ringers': {'localpath': 'brew/16452/lk/mr', 'rs...

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

get_esn(self, data=None)

source code 
Overrides: com_lgvx4400.Phone.get_esn

get_detect_data(self, res)

source code 
Overrides: com_lgvx4400.Phone.get_detect_data

_is_rs_file(self, filename)

source code 
Overrides: com_lgvx8100.Phone._is_rs_file

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)

_mark_files(self, local_files, rs_files, local_dir)

source code 
Overrides: com_lgvx8100.Phone._mark_files

_write_index_file(self, type)

source code 
Overrides: com_lgvx8100.Phone._write_index_file

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

savephonebook(self, data)

source code 

Saves out the phonebook

Overrides: com_lgvx4400.Phone.savephonebook

_readsms(self)

source code 
Overrides: com_lgvx4400.Phone._readsms

getplaylist(self, result)

source code 
Overrides: getplaylist

Class Variable Details [hide private]

protocolclass

Various descriptions of data specific to LG VX9800

Value:
phones.p_lgvx9800

builtinringtones

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

ringtonelocations

Value:
(('ringers',
  'dload/my_ringtone.dat',
  'dload/my_ringtonesize.dat',
  'brew/16452/lk/mr',
  100,
  150,
  513,
  1,
...

wallpaperlocations

Value:
'images', 'dload/image.dat', 'dload/imagesize.dat', 'brew/16452/mp', 1\
00, 50, 0, 0, 0, ('video', 'dload/video.dat', None, 'brew/16452/mf', 1\
000, 50, 0x0304, 0, 0),

media_info

Value:
{'ringers': {'localpath': 'brew/16452/lk/mr', 'rspath': _rs_ringers_pa\
th, 'vtype': protocolclass.MEDIA_TYPE_RINGTONE, 'icon': protocolclass.\
MEDIA_RINGTONE_DEFAULT_ICON, 'index': 100, 'maxsize': 155, 'indexfile'\
: 'dload/my_ringtone.dat', 'sizefile': 'dload/my_ringtonesize.dat', 'd\
unno': 0, 'date': False,}, 'sounds': {'localpath': 'brew/16452/ms', 'r\
spath': None, 'vtype': protocolclass.MEDIA_TYPE_SOUND, 'icon': protoco\
lclass.MEDIA_IMAGE_DEFAULT_ICON, 'index': 100, 'maxsize': 155, 'indexf\
ile': 'dload/mysound.dat', 'sizefile': 'dload/mysoundsize.dat', 'dunno\
...