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

Type Phone

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


Talk to the LG LX570 (Musiq) cell phone
Method Summary
  __init__(self, logtarget, commport)
Calls all the constructors and sets initial modes
  get_esn(self, data)
  getgroups(self, result)
  getringtoneindices(self, results)
  getwallpaperindices(self, results)
  getwallpapers(self, result)
  makeentry(self, counter, entry, data)
Creates pbentry object
  savephonebook(self, data)
Saves out the phonebook
  saveringtones(self, results, merge)
    Inherited from RealBrewProtocol2
  closefile(self, handle)
  exists(self, name)
  getfilecontents(self, file, use_cache)
  getfilecontents2(self, filename, start, size)
  getfilesystem(self, dir, recurse, directories, files)
  listfiles(self, dir)
  mkdir(self, name)
  openfile(self, name, mode, flags)
  reconfig_directory(self)
  rmdir(self, name)
  rmfile(self, name)
  statfile(self, name)
  writefile(self, name, contents)
    Inherited from Phone
  detectphone(_, coms, likely_ports, res, _module, _log)
(Class method)
  eval_detect_data(self, res)
  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)
  getcalendar(self, result)
  getfundamentals(self, results)
Gets information fundamental to interopating with the phone and UI.
  getphonebook(self, result)
Reads the phonebook data.
  is_mode_brew(self)
  savecalendar(self, dict, merge)
  savegroups(self, data)
  savememo(self, result, merge)
  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)
  explore0c(self)
  get_brew_esn(self)
  getfirmwareinformation(self)
  hassubdirs(self, dir)
  isdir(self, path)
  isfile(self, filename)
  join(self, *args)
  listsubdirs(self, dir, recurse)
  mkdirs(self, directory)
  modemmoderequest(self)
  offlinerequest(self, reset, delay)
  rmdirs(self, path)
  sendbrewcommand(self, request, responseclass, callsetmode)
  setfileattr(self, filename, date)
    Inherited from LGPhonebook
  sendpbcommand(self, request, responseclass, callsetmode)
    Inherited from LGIndexedMedia
  getindex(self, indexfile)
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
  getringtones(self, result)
  savemedia(self, mediakey, mediaindexkey, maps, results, merge, reindexfunction)
Actually saves out the media
  savewallpapers(self, results, merge)

Class Variable Summary
tuple builtinimages = ()
tuple builtinringtones = ('Tone 1', 'Tone 2', 'Tone 3', 'Tone ...
str desc = 'LG-LX570'
str helpid = 'phone-lglx570.htm'
tuple imagelocations = ((1536, 'setas/dcamIndex.map', 'Dcam/Wa...
str my_model = 'LX570'
tuple ringtonelocations = ((4352, 'setas/voicememoRingerIndex....
str serialsname = 'lglx570'
tuple wallpaperdirs = ('Dcam/Review', 'Dcam/Wallet')
    Inherited from Phone
str brew_version_file = 'brew/version.txt'
str brew_version_txt_key = 'brew_version.txt'
str esn_file = 'nvm/$SYS.ESN'
str esn_file_key = 'esn_file'
str lgpbinfo_key = 'lgpbinfo'
str ringerindexfilename = 'dloadindex/brewRingerIndex.map'
str wallpaperindexfilename = 'dloadindex/brewImageIndex.map'...
    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__ (inherited documentation)

makeentry(self, counter, entry, data)

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:
phones.com_lgvx4400.Phone.makeentry

savephonebook(self, data)

Saves out the phonebook
Overrides:
phones.com_lgvx4400.Phone.savephonebook

Class Variable Details

builtinimages

Type:
tuple
Value:
()                                                                     

builtinringtones

Type:
tuple
Value:
('Tone 1',
 'Tone 2',
 'Tone 3',
 'Tone 4',
 'Tone 5',
 'Tone 6',
 'Tone 7',
 'Tone 8',
...                                                                    

desc

Type:
str
Value:
'LG-LX570'                                                             

helpid

Type:
str
Value:
'phone-lglx570.htm'                                                    

imagelocations

Type:
tuple
Value:
((1536, 'setas/dcamIndex.map', 'Dcam/Wallet', 'images', 255),)         

my_model

Type:
str
Value:
'LX570'                                                                

ringtonelocations

Type:
tuple
Value:
((4352,
  'setas/voicememoRingerIndex.map',
  'VoiceDB/All/Memos',
  'voice memo',
  35),
 (4608, 'setas/mcRingerIndex.map', 'melodyComposer', 'my melodies', 20\
))                                                                     

serialsname

Type:
str
Value:
'lglx570'                                                              

wallpaperdirs

Type:
tuple
Value:
('Dcam/Review', 'Dcam/Wallet')                                         

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