Package phones :: Module com_lgvx8100 :: 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 --+
                                    |
                                   Phone
Known Subclasses:

Talk to the LG VX8100 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_firmware_version(self) source code
 
setDMversion(self)
Define the DM version required for this phone, default to DMv5
source code
 
getgroups(self, results) source code
 
savegroups(self, data) source code
 
getmemo(self, result) source code
 
savememo(self, result, merge) source code
 
getexceptions(self) source code
 
getcalendarcommon(self, entry, event) source code
 
getcalendar(self, result) source code
 
makerepeat(self, repeat) source code
 
_scheduleexceptions(self, entry, data, exceptionsf) source code
 
_schedulecommon(self, entry, data) source code
 
savecalendar(self, dict, merge) source code
 
getrepeattype(self, entry, exceptions) source code
 
setalarm(self, entry, data) source code
 
getphoneinfo(self, phone_info) 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

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, 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-VX8100'
  helpid = 'phone-lgvx8100.htm'
  protocolclass
Various descriptions of data specific to LG VX8000
  serialsname = 'lgvx8100'
  builtinringtones = ('Low Beep Once', 'Low Beeps', 'Loud Beep O...
  ringtonelocations = (('ringers', 'dload/my_ringtone.dat', 'dlo...
  calendarlocation = 'sch/newschedule.dat'
  calendarexceptionlocation = 'sch/newschexception.dat'
  calenderrequiresreboot = 0
  memolocation = 'sch/neomemo.dat'
  builtinwallpapers = ()
  wallpaperlocations = (('images', 'dload/image.dat', 'dload/ima...
  _rs_path = 'mmc1/'
  _rs_ringers_path = 'mmc1/ringers'
  _rs_images_path = 'mmc1/images'
  media_info = {'images': {'date': False, 'dunno': 0, 'icon': 0,...
  my_model = 'VX8100'

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__

setDMversion(self)

source code 

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

Overrides: com_lg.LGDMPhone.setDMversion

getgroups(self, results)

source code 
Overrides: com_lgvx4400.Phone.getgroups

savegroups(self, data)

source code 
Overrides: com_lgvx4400.Phone.savegroups

getmemo(self, result)

source code 
Overrides: getmemo

savememo(self, result, merge)

source code 
Overrides: com_lgvx4400.Phone.savememo

getcalendar(self, result)

source code 
Overrides: com_lgvx4400.Phone.getcalendar

savecalendar(self, dict, merge)

source code 
Overrides: com_lgvx4400.Phone.savecalendar

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

Class Variable Details [hide private]

protocolclass

Various descriptions of data specific to LG VX8000

Value:
phones.p_lgvx8100

builtinringtones

Value:
('Low Beep Once',
 'Low Beeps',
 'Loud Beep Once',
 'Loud Beeps',
 'VZW Default Ringtone',
 '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',
  100,
  50,
  0,
  0,
...

media_info

Value:
{'images': {'date': False,
            'dunno': 0,
            'icon': 0,
            'index': 100,
            'indexfile': 'dload/image.dat',
            'localpath': 'brew/16452/mp',
            'maxsize': 155,
            'rspath': 'mmc1/images',
...