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

Class Phone

source code

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

Talk to a Samsung SPH-M300 (Diag) phone

Nested Classes [hide private]

Inherited from com_brew.RealBrewProtocol: DirCache

Instance Methods [hide private]
 
__init__(self, logtarget, commport)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
read_groups(self)
Read and return the group dict
source code
 
getfundamentals(self, results)
Gets information fundamental to interopating with the phone and UI.
source code
 
_get_camera_index(self, res)
Get the index of images stored in the camera
source code
 
_get_savedtophone_index(self, res)
Get the index of saved-to-phone images
source code
 
_get_builtin_index(self, rt_index, wp_index)
Get the indices of builtin ringtones and wallpapers
source code
 
_get_ams_index(self, rt_index, wp_index)
Get the index of ringtones and wallpapers in AmsRegistry
source code
 
getmediaindex(self, results) source code
 
getringtones(self, results) source code
 
getwallpapers(self, results) source code
 
makegcd(self, filename, size, mimetable)
Build a GCD file for filename
source code
 
saveringtones(self, result, merge) source code
 
savewallpapers(self, result, merge) source code
 
is_mode_brew(self) source code
 
get_detect_data(self, res) source code
 
eval_detect_data(self, res) source code

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

Inherited from com_phone.Phone (private): _setmodemodem

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-M300'
  helpid = 'phone-samsungsphm300.htm'
  protocolclass
  serialsname = 'sphm300'
  builtinringtones = ('Ring 1', 'Ring 2', 'Ring 3', 'Ring 4', 'R...
  builtinimages = ('People 1', 'People 2', 'People 3', 'People 4...
  numbertypetab = ('cell', 'home', 'office', 'pager', 'fax')
  builtingroups = ('Unassigned', 'Family', 'Friends', 'Colleague...
  __audio_mimetype = {'mid': 'audio/midi', 'pmd': 'application/x...
  __image_mimetype = {'bmp': 'image/bmp', 'gif': 'image/gif', 'j...
  getphonebook = NotImplemented
  getcalendar = NotImplemented
  x = 10

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

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]

__init__(self, logtarget, commport)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: com_brew.RealBrewProtocol.__init__

Class Variable Details [hide private]

protocolclass

Value:
phones.p_samsungsphm300

builtinringtones

Value:
('Ring 1',
 'Ring 2',
 'Ring 3',
 'Ring 4',
 'Ring 5',
 'Ring 6',
 'Ring 7',
 'Ring 8',
...

builtinimages

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

builtingroups

Value:
('Unassigned', 'Family', 'Friends', 'Colleagues', 'VIPs', None)

__audio_mimetype

Value:
{'mid': 'audio/midi',
 'pmd': 'application/x-pmd',
 'qcp': 'audio/vnd.qcelp'}

__image_mimetype

Value:
{'bmp': 'image/bmp',
 'gif': 'image/gif',
 'jpeg': 'image/jpeg',
 'jpg': 'image/jpeg',
 'png': 'image/png'}