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

Type Phone

     LGUncountedIndexedMedia --+                
                               |                
               LGDMPhone --+   |                
                           |   |                
   LGNewIndexedMedia --+   |   |                
                       |   |   |                
      LGNewIndexedMedia2 --+   |                
                           |   |                
   LGNewIndexedMedia --+   |   |                
                       |   |   |                
  LGIndexedMedia --+   |   |   |                
                   |   |   |   |                
     LGPhonebook --+   |   |   |                
                   |   |   |   |                
      object --+   |   |   |   |                
               |   |   |   |   |                
           Phone --+   |   |   |                
                   |   |   |   |                
RealBrewProtocol --+   |   |   |                
                   |   |   |   |                
               Phone --+   |   |                
                       |   |   |                
                   Phone --+   |                
                           |   |                
                       Phone --+                
                               |                
                           Phone --+            
                                   |            
                               Phone --+        
                                       |        
                RealBrewProtocol --+   |        
                                   |   |        
                   RealBrewProtocol2 --+        
                                       |        
                                   Phone --+    
                                           |    
                                       Phone --+
                                               |
                                              Phone

Known Subclasses:
Phone

Talk to the LG VX9100 cell phone
Method Summary
  __init__(self, logtarget, commport)
  extractphonebookentry(self, entry, numbers, speeds, ices, fundamentals, rt_name, wp_name)
Return a phonebook entry in BitPim format.
  getgroups(self, results)
Read groups
  getindex(self, filename)
read an index file
  getphonebook(self, result)
Reads the phonebook data.
  make_entry(self, pn_entries, speeddials, ice_entries, entry_num0, entry_num1, pb_entry, data, ring_pathf, rt_index, picid_pathf, wp_index)
Create a pbfileentry from a bitpim phonebook entry
  make_ice_entry(self, ice_id, pb_id)
Create a iceentry from a pb_id and ice_id
  make_pn_entry(self, phone_number, number_type, pn_id, pbpn_id, pe_id)
Create a non-blank pnfileentry frome a phone number string
  savegroups(self, data)
  savephonebook(self, data)
Saves out the phonebook
  saveringtones(self, results, merge)
  savewallpapers(self, results, merge)
  setDMversion(self)
Define the DM version required for this phone, default to DMv5
    Inherited from Phone
  getcalendar(self, result)
  savecalendar(self, dict, merge)
    Inherited from Phone
  listsubdirs(self, dir, recurse)
    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
  get_firmware_version(self)
  saveplaylist(self, result, merge)
  savet9db(self, result, _)
    Inherited from Phone
  get_detect_data(self, res)
  get_esn(self, data)
    Inherited from LGUncountedIndexedMedia
  external_storage_present(self)
  getmedia(self, maps, results, key)
  getmediaindex(self, builtins, maps, results, key)
Gets the media (wallpaper/ringtone) index
  getringtoneindices(self, results)
  getringtones(self, result)
  getwallpaperindices(self, results)
  getwallpapers(self, result)
  is_external_media(self, filename)
  savemedia(self, mediakey, mediaindexkey, maps, results, merge, reindexfunction, update_index_file)
Actually saves out the media
    Inherited from Phone
  getcalendarcommon(self, entry, event)
  getexceptions(self)
  getphoneinfo(self, phone_info)
  getrepeattype(self, entry, exceptions)
  makerepeat(self, repeat)
  savememo(self, result, merge)
  setalarm(self, entry, data)
    Inherited from LGDMPhone
  __del__(self)
  enter_DM(self, e)
  get_challenge_response(self, challenge)
    Inherited from Phone
  detectphone(_, coms, likely_ports, res, _module, _log)
(Class method)
  eval_detect_data(self, res)
  get_cal(self, sch_file, exceptions, ringtone_index)
  getfundamentals(self, results)
Gets information fundamental to interopating with the phone and UI.
  is_mode_brew(self)
  makeentry(self, counter, entry, data)
Creates pbentry object
  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)
  getplaylist(self, result)
  getsms(self, result)
  gett9db(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)
  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)

Class Variable Summary
tuple builtinringtones = ('Low Beep Once', 'Low Beeps', 'Loud ...
str desc = 'LG-VX9100'
str external_storage_root = 'mmc1/'
str helpid = 'phone-lgvx9100.htm'
str my_model = 'VX9100'
int n = 16                                                                    
tuple ringtonelocations = (('ringers', 'dload/myringtone.dat',...
str serialsname = 'lgvx9100'
tuple wallpaperlocations = (('images', 'dload/image.dat', 'bre...
    Inherited from Phone
str calendarringerlocation = 'sch/toolsRinger.dat'
    Inherited from Phone
tuple builtinwallpapers = ()
str calendarexceptionlocation = 'sch/schexception.dat'
str calendarlocation = 'sch/schedule.dat'
int calenderrequiresreboot = 1                                                                     
str memolocation = 'sch/memo.dat'
    Inherited from Phone
dict media_info = {'images': {'index': 100, 'vtype': 256, 'du...
    Inherited from Phone
str brew_version_file = 'brew/version.txt'
str brew_version_txt_key = 'brew_version.txt'
tuple builtinimages = ('Balloons', 'Soccer', 'Basketball', 'Bi...
str esn_file = 'nvm/$SYS.ESN'
str esn_file_key = 'esn_file'
tuple imagelocations = ((10, 'dloadindex/brewImageIndex.map', ...
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

extractphonebookentry(self, entry, numbers, speeds, ices, fundamentals, rt_name, wp_name)

Return a phonebook entry in BitPim format. This is called from getphonebook.
Overrides:
phones.com_lgvx8550.Phone.extractphonebookentry

getgroups(self, results)

Read groups
Overrides:
phones.com_lgvx8700.Phone.getgroups

getindex(self, filename)

read an index file
Overrides:
phones.com_lg.LGUncountedIndexedMedia.getindex (inherited documentation)

getphonebook(self, result)

Reads the phonebook data. The getfundamentals information will already be in result.
Overrides:
phones.com_lgvx8550.Phone.getphonebook

make_entry(self, pn_entries, speeddials, ice_entries, entry_num0, entry_num1, pb_entry, data, ring_pathf, rt_index, picid_pathf, wp_index)

Create a pbfileentry from a bitpim phonebook entry
Overrides:
phones.com_lgvx8550.Phone.make_entry

make_ice_entry(self, ice_id, pb_id)

Create a iceentry from a pb_id and ice_id
Overrides:
phones.com_lgvx8550.Phone.make_ice_entry

make_pn_entry(self, phone_number, number_type, pn_id, pbpn_id, pe_id)

Create a non-blank pnfileentry frome a phone number string
Overrides:
phones.com_lgvx8550.Phone.make_pn_entry

savephonebook(self, data)

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

setDMversion(self)

Define the DM version required for this phone, default to DMv5
Overrides:
phones.com_lgvx8550.Phone.setDMversion (inherited documentation)

Class Variable Details

builtinringtones

Type:
tuple
Value:
('Low Beep Once',
 'Low Beeps',
 'Loud Beep Once',
 'Loud Beeps',
 'Door Bell',
 'VZW Default Tone',
 'Ringtone 1',
 'Ringtone 2',
...                                                                    

desc

Type:
str
Value:
'LG-VX9100'                                                            

external_storage_root

Type:
str
Value:
'mmc1/'                                                                

helpid

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

my_model

Type:
str
Value:
'VX9100'                                                               

n

Type:
int
Value:
16                                                                    

ringtonelocations

Type:
tuple
Value:
(('ringers',
  'dload/myringtone.dat',
  'brew/mod/10889/ringtones',
  'mmc1/ringers',
  100,
  257,
  100),
 ('sounds', 'dload/mysound.dat', 'brew/mod/18067', '', 100, 2, None),
...                                                                    

serialsname

Type:
str
Value:
'lgvx9100'                                                             

wallpaperlocations

Type:
tuple
Value:
(('images', 'dload/image.dat', 'brew/mod/10888', '', 100, 0, 100),
 ('images(sd)', 'dload/sd_image.dat', 'mmc1/my_pix', '', 100, 16, None\
),
 ('video', 'dload/video.dat', 'brew/mod/10890', '', 100, 3, None),
 ('video(sd)', 'dload/sd_video.dat', 'mmc1/my_flix', '', 100, 19, None\
))                                                                     

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