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

Class Phone

source code

               object --+        
                        |        
          com_phone.Phone --+    
                            |    
com_brew.RealBrewProtocol --+    
                            |    
     com_samsung_packet.Phone --+
                                |
                               Phone
Known Subclasses:

Talk to a Samsung SPH-A620 phone

Nested Classes [hide private]

Inherited from com_brew.RealBrewProtocol: DirCache

Instance Methods [hide private]
 
__init__(self, logtarget, commport)
Call all the contructors and sets initial modes
source code
 
getfundamentals(self, results)
Gets information fundamental to interopating with the phone and UI.
source code
 
amsanalyze(self, results) source code
 
pblinerepair(self, line)
Extend incomplete lines
source code
 
countcommas(self, line) source code
 
getringtones(self, results) source code
 
getwallpapers(self, results) source code
 
getmedia(self, maps, results, key)
Returns the contents of media as a dicxt where the key is a name returned by getindex, and the value is the contents of the media
source code
 
getmediaindex(self, maps, results, key)
Get the media (wallpaper/ringtone) index for stuff not in amsRegistry
source code
 
_findmediaindex(self, index, name, pbentryname, type) source code
 
getstring(self, contents, start)
Get a null terminated string from contents
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

Inherited from com_samsung_packet.Phone: extractphonebookentry, get_battery_level, get_esn, get_manufacturer, get_model, getbasicinfo, getcalendar, getmemo, getphonebook, getphoneinfo, gettodo, makeentry, process_calendar, read_groups, 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 Variables [hide private]
  desc = 'SPH-A620'
  helpid = 'phones-samsung.htm'
  protocolclass
Proposed descriptions of data usign AT commands
  serialsname = 'spha620'
  imagelocations = ((400, 'digital_cam/wallet', 'camera', 100, 1...
  ringtonelocations = ()
  __audio_mimetype = {'mid': 'audio/midi', 'pmd': 'application/x...
  __image_mimetype = {'bmp': 'image/bmp', 'gif': 'image/gif', 'j...

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]

__init__(self, logtarget, commport)
(Constructor)

source code 

Call all the contructors and sets initial modes

Overrides: com_brew.RealBrewProtocol.__init__

pblinerepair(self, line)

source code 

Extend incomplete lines

Overrides: com_samsung_packet.Phone.pblinerepair

getmediaindex(self, maps, results, key)

source code 

Get the media (wallpaper/ringtone) index for stuff not in amsRegistry

Parameters:
  • results - places results in this dict
  • maps - the list of locations
  • key - key to place results in

Class Variable Details [hide private]

protocolclass

Proposed descriptions of data usign AT commands

Value:
phones.p_samsungspha620

imagelocations

Value:
((400, 'digital_cam/wallet', 'camera', 100, 148),
 (300, 'digital_cam/jpeg', 'camera', 100, 148))

__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/jpg',
 'png': 'image/png'}