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

Class Phone

source code

               object --+        
                        |        
          com_phone.Phone --+    
                            |    
com_brew.RealBrewProtocol --+    
                            |    
     com_samsung_packet.Phone --+
                                |
                               Phone

Nested Classes [hide private]

Inherited from com_brew.RealBrewProtocol: DirCache

Instance Methods [hide private]
 
getfundamentals(self, results)
Gets information fundamental to interopating with the phone and UI.
source code
 
_get_builtin_index(self, builtin_list) source code
 
read_groups(self) source code
 
_extract_misc(self, res, entry, fundamentals) source code
 
_extract_wallpaper(self, res, entry, fundamentals) source code
 
_extract_ringtone(self, res, entry, fundamentals) source code
 
_extract_number(self, res, entry, idx, fundamentals) source code
 
_extract_numbers(self, res, entry, fundamentals) source code
 
extractphonebookentry(self, entry, fundamentals) source code
 
getphonebook(self, result)
Read the phonebook data.
source code
 
get_wallpaper_index(self) source code
 
getwallpapers(self, fundamentals)
Read camera pictures from the phone
source code

Inherited from com_samsung_packet.Phone: __init__, get_battery_level, get_esn, get_manufacturer, get_model, getbasicinfo, getcalendar, getmemo, getphoneinfo, gettodo, makeentry, pblinerepair, process_calendar, savecalendar, savegroups, savememo, savephonebook, savetodo, sendpbcommand

Inherited from com_phone.Phone: alert, close, log, logdata, progress, raisecommsdnaexception, raisecommsexception, readobject, setmode, writeobject

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

Class Methods [hide private]
 
detectphone(_, coms, likely_ports, res, _module, _log) source code
Class Variables [hide private]
  desc = 'SPH-A790'
  protocolclass
  serialsname = 'spha790'
  builtin_ringtones = ((0, ['Default Tone']), (68, ['Tone 1', 'T...
  builtin_pictures = ((1, ['People 1', 'People 2', 'People 3', '...
  camera_picture_index = 100
  number_type_dict = {0: 'cell', 1: 'home', 2: 'office', 3: 'pag...
  getringtones = NotImplemented
  x = 9

Inherited from com_samsung_packet.Phone: MODEPHONEBOOK, builtinimages, builtinringtones, getcallhistory

Inherited from com_phone.Phone: MODEMODEM, MODENONE, getplaylist, getsms, gett9db

Inherited from com_brew.RealBrewProtocol: MODEBREW, brewterminator

Inherited from com_brew.RealBrewProtocol (private): _brewepochtounix

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getfundamentals(self, results)

source code 

Gets information fundamental to interopating with the phone and UI.

Currently this is:

  • 'uniqueserial' a unique serial number representing the phone
  • 'groups' the phonebook groups
  • 'wallpaper-index' map index numbers to names
  • 'ringtone-index' map index numbers to ringtone names

This method is called before we read the phonebook data or before we write phonebook data.

read_groups(self)

source code 
Overrides: com_samsung_packet.Phone.read_groups

extractphonebookentry(self, entry, fundamentals)

source code 
Overrides: com_samsung_packet.Phone.extractphonebookentry

getphonebook(self, result)

source code 

Read the phonebook data.

Overrides: com_samsung_packet.Phone.getphonebook

Class Variable Details [hide private]

protocolclass

Value:
phones.p_samsungspha790

builtin_ringtones

Value:
((0, ['Default Tone']),
 (68,
  ['Tone 1',
   'Tone 2',
   'Tone 3',
   'Tone 4',
   'Tone 5',
   'Tone 6',
...

builtin_pictures

Value:
((1,
  ['People 1',
   'People 2',
   'People 3',
   'People 4',
   'People 5',
   'People 6',
   'People 7',
...

number_type_dict

Value:
{0: 'cell', 1: 'home', 2: 'office', 3: 'pager', 4: 'fax'}