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

Class Phone

source code

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

Talk to the Samsung SCH-A650 Cell Phone

Nested Classes [hide private]
  parent_phone
Talk to a Samsung phone using AT commands

Inherited from com_brew.RealBrewProtocol: DirCache

Instance Methods [hide private]
 
__init__(self, logtarget, commport)
Calls all the constructors and sets initial modes
source code
 
getfundamentals(self, results)
Gets information fundamental to interopating with the phone and UI.
source code
 
getphonebook(self, result)
Reads the phonebook data.
source code
 
savephonebook(self, data)
Saves out the phonebook
source code
 
__validate_entry(self, pb_entry, pb_groups, ringtone_index) source code
 
_has_duplicate_speeddial(self, pb_book) source code
 
_update_speeddial(self, pb_entry) source code
 
_get_speeddial(self, pb_entry) source code
 
_set_speeddial(self, pb_entry, sd) source code
 
_del_phone_entry(self, pb_entry) source code
 
_same_serial1(self, s1, pb_entry) source code
 
_has_serial1(self, pb_entry) source code
 
_bitpim_serials(self, pb_entry) source code
 
_del_my_serials(self, pb_entry) source code
 
_my_serials(self, pb_entry) source code
 
_get_number_type(self, type) source code
 
_write_phone_entry(self, pb_entry, groups, ringtone_index, phone_book) source code
 
getringtones(self, result) source code
 
saveringtones(self, result, merge) source code
 
getwallpapers(self, result) source code
 
savewallpapers(self, result, merge) source code
 
getmemo(self, result) source code
 
savememo(self, result, merge) source code
 
gettodo(self, result) source code
 
savetodo(self, result, merge) source code
 
getsms(self, result) source code
 
savesms(self, result, merge) source code
 
getphoneinfo(self, phone_info) source code

Inherited from com_samsung.Phone: csvsplit, defrell, del_phone_entry, encode_timedate, extract_timedate, get_analog_digital, get_battery_level, get_calendar_entry, get_canned_msg, get_detect_data, get_esn, get_firmware_version, get_groups, get_manufacturer, get_memo_entry, get_model, get_phone_entry, get_phone_number, get_signal_quality, get_sms_inbox, get_sms_saved, get_sms_sent, get_time_stamp, get_todo_entry, getcalendar, is_mode_modem, is_online, phonize, process_calendar, samsungescape, save_calendar_entry, save_canned_msg, save_memo_entry, save_phone_entry, save_todo_entry, savecalendar, splitandunescape

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

Class Methods [hide private]

Inherited from com_samsung.Phone: detectphone

Class Variables [hide private]
  desc = 'SCH-A650'
  serialsname = 'scha650'
  protocolclass
  __groups_range = xrange(5)
  __phone_entries_range = xrange(1, 501)
  __pb_max_entries = 25
  __pb_max_speeddials = 500
  __pb_entry = 0
  __pb_mem_loc = 1
  __pb_group = 2
  __pb_ringtone = 3
  __pb_name = 4
  __pb_speed_dial = 5
  __pb_home_num = 7
  __pb_office_num = 9
  __pb_mobile_num = 11
  __pb_pager_num = 13
  __pb_fax_num = 15
  __pb_alias = 17
  __pb_email = 21
  __pb_four = 22
  __pb_blanks = (19, 20)
  __pb_date_time_stamp = 24
  __pb_numbers = ({'home': 7}, {'office': 9}, {'cell': 11}, {'pa...
  __pb_max_name_len = 22
  __pb_max_number_len = 32
  __pb_max_emails = 1
  __ringtone_info = ('ringtone', 'ringtone-index', 'ringtone', '...
  __wallpaper_info = ('wallpapers', 'wallpaper-index', 'images',...
  getmedia = None

Inherited from com_samsung.Phone: MODEPHONEBOOK

Inherited from com_phone.Phone: MODEMODEM, MODENONE, getcallhistory, getplaylist, 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 

Calls all the constructors and sets initial modes

Overrides: com_brew.RealBrewProtocol.__init__

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.

getphonebook(self, result)

source code 

Reads the phonebook data. The getfundamentals information will already be in result.

getmemo(self, result)

source code 
Overrides: getmemo

gettodo(self, result)

source code 
Overrides: gettodo

getsms(self, result)

source code 
Overrides: getsms

Class Variable Details [hide private]

protocolclass

Value:
phones.p_samsungscha650

__pb_numbers

Value:
({'home': 7}, {'office': 9}, {'cell': 11}, {'pager': 13}, {'fax': 15})

__ringtone_info

Value:
('ringtone',
 'ringtone-index',
 'ringtone',
 'user/sound/ringer',
 17,
 20)

__wallpaper_info

Value:
('wallpapers', 'wallpaper-index', 'images', 'nvm/brew/shared', 17, 10)