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

Type Phone

  LGIndexedMedia --+    
                   |    
     LGPhonebook --+    
                   |    
      object --+   |    
               |   |    
           Phone --+    
                   |    
RealBrewProtocol --+    
                   |    
               Phone --+
                       |
                      Phone


Talk to the LG 6190 cell phone
Method Summary
  __init__(self, logtarget, commport)
Calls all the constructors and sets initial modes
  eval_detect_data(self, res)
  getcamindex(self, indexfile, location, getmedia)
Read an index file
  getindex(self, indexfile, location, getmedia)
Read an index file
  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
  getmediaindex(self, builtins, maps, results, key)
Gets the media (wallpaper/ringtone) index
  getphoneinfo(self, phone_info)
  savemedia(self, mediakey, mediaindexkey, maps, results, merge, reindexfunction)
Actually saves out the media
    Inherited from Phone
  detectphone(_, coms, likely_ports, res, _module, _log)
(Class method)
  extractphonebookentry(self, entry, speeds, fundamentals)
Return a phonebook entry in BitPim format.
  get_cal(self, sch_file, exceptions, ringtone_index)
  get_detect_data(self, res)
  get_esn(self, data)
  getcalendar(self, result)
  getfundamentals(self, results)
Gets information fundamental to interopating with the phone and UI.
  getgroups(self, results)
  getphonebook(self, result)
Reads the phonebook data.
  getringtoneindices(self, results)
  getwallpaperindices(self, results)
  is_mode_brew(self)
  makeentry(self, counter, entry, data)
Creates pbentry object
  savecalendar(self, dict, merge)
  savegroups(self, data)
  savememo(self, result, merge)
  savephonebook(self, data)
Saves out the phonebook
  savesms(self, result, merge)
  set_cal(self, sch_file, cal_dict, ringtone_index, voice_files)
    Inherited from Phone
  alert(self, message, wait)
Raises an alert in the main thread
  close(self)
  getcallhistory(self, result)
  getmemo(self, result)
  getsms(self, result)
  log(self, str)
Log a message
  logdata(self, str, data, klass)
Log some data with option data object/class for the analyser
  progress(self, pos, max, desc)
Update the progress meter
  raisecommsdnaexception(self, str)
Raise a comms DeviceNeedsAttention Exception
  raisecommsexception(self, str, klass)
  readobject(self, filename, object_class, logtitle, uselocalfs)
Read the specified filename and bind it to the object class
  setmode(self, desiredmode)
Ensure the phone is in the right mode
  writeobject(self, filename, obj, logtitle, uselocalfs)
Writhe the object into the file
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)
    Inherited from RealBrewProtocol
  basename(self, path)
  dirname(self, filename)
  exists(self, path)
  explore0c(self)
  get_brew_esn(self)
  getfilecontents(self, file, use_cache)
  getfilesystem(self, dir, recurse)
  getfirmwareinformation(self)
  hassubdirs(self, dir)
  isdir(self, path)
  isfile(self, filename)
  join(self, *args)
  listfiles(self, dir)
  listsubdirs(self, dir, recurse)
  mkdir(self, name)
  mkdirs(self, directory)
  modemmoderequest(self)
  offlinerequest(self, reset, delay)
  rmdir(self, name)
  rmdirs(self, path)
  rmfile(self, name)
  sendbrewcommand(self, request, responseclass, callsetmode)
  setfileattr(self, filename, date)
  statfile(self, name)
  writefile(self, name, contents)
    Inherited from LGPhonebook
  sendpbcommand(self, request, responseclass, callsetmode)
    Inherited from LGIndexedMedia
  getringtones(self, result)
  getwallpapers(self, result)
  saveringtones(self, results, merge)
  savewallpapers(self, results, merge)

Class Variable Summary
str brew_version_file = 'OWS/paramtable1.fil'
str brew_version_txt_key = 'LG6190_version_data'
tuple builtinimages = ()
tuple builtinringtones = ('Ring 1', 'Ring 2', 'Ring 3', 'Ring ...
str desc = 'LG 6190'
NoneType helpid = None                                                                  
tuple imagelocations = ((10, 'download/dloadindex/brewImageInd...
str my_model = 'lg6190'
str ringerindexfilename = 'download/dloadindex/brewRingerInd...
tuple ringtonelocations = ((50, 'download/dloadindex/brewRinge...
str serialsname = 'lg6190'
str wallpaperindexfilename = 'download/dloadindex/brewImageI...
    Inherited from Phone
str esn_file = 'nvm/$SYS.ESN'
str esn_file_key = 'esn_file'
str lgpbinfo_key = 'lgpbinfo'
    Inherited from Phone
NotImplementedType getcallhistory = NotImplemented
NotImplementedType getmemo = NotImplemented
NotImplementedType getplaylist = NotImplemented
NotImplementedType getsms = NotImplemented
NotImplementedType gett9db = NotImplemented
NotImplementedType gettodo = NotImplemented
str MODEMODEM = 'modemodem'
str MODENONE = 'modenone'
    Inherited from RealBrewProtocol
str brewterminator = '~'
str MODEBREW = 'modebrew'
    Inherited from LGPhonebook
str MODEPHONEBOOK = 'modephonebook'
str pbterminator = '~'

Instance Method Details

__init__(self, logtarget, commport)
(Constructor)

Calls all the constructors and sets initial modes
Overrides:
phones.com_lgvx4400.Phone.__init__

getcamindex(self, indexfile, location, getmedia=False)

Read an index file

getindex(self, indexfile, location, getmedia=False)

Read an index file
Overrides:
phones.com_lg.LGIndexedMedia.getindex

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
Overrides:
phones.com_lg.LGIndexedMedia.getmedia

getmediaindex(self, builtins, maps, results, key)

Gets the media (wallpaper/ringtone) index
Parameters:
builtins - the builtin list on the phone
maps - the list of index files and locations
results - places results in this dict
key - key to place results in
Overrides:
phones.com_lg.LGIndexedMedia.getmediaindex

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

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:
phones.com_lg.LGIndexedMedia.savemedia

Class Variable Details

brew_version_file

Type:
str
Value:
'OWS/paramtable1.fil'                                                  

brew_version_txt_key

Type:
str
Value:
'LG6190_version_data'                                                  

builtinimages

Type:
tuple
Value:
()                                                                     

builtinringtones

Type:
tuple
Value:
('Ring 1',
 'Ring 2',
 'Ring 3',
 'Ring 4',
 'Ring 5',
 'Default tone',
 'Fearwell',
 'Arabesque',
...                                                                    

desc

Type:
str
Value:
'LG 6190'                                                              

helpid

Type:
NoneType
Value:
None                                                                  

imagelocations

Type:
tuple
Value:
((10, 'download/dloadindex/brewImageIndex.map', 'usr/Wallpaper', 'imag\
es', 30),
 (50, 'cam/pics.dat', 'cam', 'camera', 60))                            

my_model

Type:
str
Value:
'lg6190'                                                               

ringerindexfilename

Type:
str
Value:
'download/dloadindex/brewRingerIndex.map'                              

ringtonelocations

Type:
tuple
Value:
((50,
  'download/dloadindex/brewRingerIndex.map',
  'usr/Ringtone',
  'ringers',
  30),)                                                                

serialsname

Type:
str
Value:
'lg6190'                                                               

wallpaperindexfilename

Type:
str
Value:
'download/dloadindex/brewImageIndex.map'                               

Generated by Epydoc 2.1 on Fri Aug 15 18:58:35 2008 http://epydoc.sf.net