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
  _assigniceentry(self, entry, numbers, ices, res)
  _assignpbtypeandspeeddialsbytype(self, entry, numbers, speeds, res)
  _build_ice_dict(self)
  _build_media_dict(self, fundamentals, media_data, index_name)
Build & return a dict with keys being the media filenames and values being the name of the index item (index['name'])
  _get_next_pb_id(self)
Return the next available pbentry ID
  _get_speeddials(self)
Return the speed dials dict
  _getinboxmessage(self, sf)
  _readsms(self)
  _save_next_pb_id(self, idnum)
Save the next pbentry ID
  _scheduleextras(self, data, fwversion)
    Inherited from Phone
  getcalendar(self, result)
  savecalendar(self, dict, merge)
  _get_path_index(self, index_file)
    Inherited from Phone
  listsubdirs(self, dir, recurse)
  _update_pb_file(self, pb, fundamentals, pbinfo)
    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, _)
  _build_pb_info(self, fundamentals)
  _copy_fields(self, old, new)
  _get_all_songs(self, fundamentals)
  _get_current_db(self)
  _get_info_from_index(self, filename)
  _get_song_info(self)
  _read_pl_list(self, filename)
  _update_pb_info(self, pbentries, fundamentals)
  _write_a_playlist(self, filename, pl, song_info)
  _write_path_index(self, pbentries, pbmediakey, media_index, index_file, invalid_values)
  _write_playlists(self, playlists, song_info)
    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)
  _is_rs_file(self, filename)
  _mark_files(self, local_files, rs_files, local_dir)
  _schedulecommon(self, entry, data)
  _scheduleexceptions(self, entry, data, exceptionsf)
  _write_index_file(self, type)
    Inherited from LGNewIndexedMedia2
  _guessvtype(self, filename, typemajor)
    Inherited from LGDMPhone
  __del__(self)
  enter_DM(self, e)
  get_challenge_response(self, challenge)
  _DMv6_get_compile_time(self)
  _DMv6_get_esn(self)
  _DMv6_get_extra_data(self, data_field)
  _enter_DMv4(self)
  _enter_DMv5(self)
  _enter_DMv6(self)
  _filefunc(self, func, *args, **kwargs)
  _lock_key(self)
  _OnTimer(self)
  _press_key(self, keys)
  _rotate_left(self, value, nbits)
  _sendbrewcommand(self, func, *args, **kwargs)
  _unlock_key(self)
    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)
  _assignpbtypeandspeeddialsbyposition(self, entry, speeds, res)
  _build_cal_entry(self, event, exceptions, ringtone_index)
  _build_cal_repeat(self, event, exceptions)
  _findmediainindex(self, index, name, pbentryname, type)
  _findserial(self, serial, dict)
Searches dict to find entry with matching serial.
  _get_text_from_sms_msg_with_header(self, msg, num_septets)
  _get_text_from_sms_msg_without_header(self, msg, num_septets)
  _get_voice_id(self, event, entry)
  _getoutboxmessage(self, sf)
  _getquicktext(self)
  _getsender(self, raw, len)
  _normaliseindices(self, d)
turn all negative keys into positive ones for index
  _readhistoryfile(self, fname, folder, res)
  _set_alarm(self, event, entry)
  _set_cal_event(self, event, entry, exceptions, ringtone_index, voice_files)
  _set_repeat_event(self, event, entry, exceptions)
  _set_voice_id(self, event, entry, voice_files)
  _setquicktext(self, result)
    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
  _setmodemodem(self)
    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)
  _setmodebrew(self)
    Inherited from LGPhonebook
  sendpbcommand(self, request, responseclass, callsetmode)
  _setmodelgdmgo(self)
  _setmodephonebook(self)

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
dict _buffer_data = {'1': 2042, '0': 2048, '3': 2042, '2': 20...
tuple _t9keys = ('1', '2', '3', '4', '5', '6', '7', '8', '9', ...
    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...
str _rs_images_path = 'mmc1/images'
str _rs_path = 'mmc1/'
str _rs_ringers_path = 'mmc1/ringers'
    Inherited from LGNewIndexedMedia2
dict _minor_typemap = {'.bmp': 1, '.jpg': 3, '.mid': 4, '.qcp...
    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'...
dict _alarm_info = {0: (1, 0, 0), 1440: (5, 0, 24), 2880: (6,...
tuple _default_alarm = (0, 100, 100)
dict _phone_dow = {32: 64, 1: 2048, 2: 1024, 4: 512, 8: 256, ...
dict _repeat_values = {17: 'daily', 18: 'daily', 19: 'weekly'...
    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'
int _brewepochtounix = 315964800                                                             
    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)

_build_media_dict(self, fundamentals, media_data, index_name)

Build & return a dict with keys being the media filenames and values being the name of the index item (index['name'])
Overrides:
phones.com_lgvx8550.Phone._build_media_dict

_get_next_pb_id(self)

Return the next available pbentry ID
Overrides:
phones.com_lgvx8550.Phone._get_next_pb_id

_get_speeddials(self)

Return the speed dials dict
Overrides:
phones.com_lgvx8550.Phone._get_speeddials

_save_next_pb_id(self, idnum)

Save the next pbentry ID
Overrides:
phones.com_lgvx8550.Phone._save_next_pb_id

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