Package phones :: Module com_samsungscha310 :: 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-A310 Cell Phone

Nested Classes [hide private]

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
 
get_ringtone_index(self) source code
 
_get_phonebook(self, result, show_progress=True)
Reads the phonebook data.
source code
 
getphonebook(self, result)
Reads the phonebook data.
source code
 
_extract_phone_entry(self, entry, fundamentals) source code
 
savephonebook(self, data)
Saves out the phonebook
source code
 
__validate_entry(self, pb_entry, pb_groups) 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) 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-A310'
  serialsname = 'scha310'
  __groups_range = xrange(5)
  __phone_entries_range = xrange(1, 501)
  __pb_max_entries = 23
  __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_secret = 6
  __pb_home_num = 7
  __pb_office_num = 9
  __pb_mobile_num = 11
  __pb_pager_num = 13
  __pb_fax_num = 15
  __pb_no_label_num = 17
  __pb_blanks = (19, 20)
  __pb_email = 21
  __pb_date_time_stamp = 22
  __pb_numbers = ({'home': 7}, {'office': 9}, {'cell': 11}, {'pa...
  __pb_max_name_len = 12
  __pb_max_number_len = 32
  __pb_max_emails = 1
  builtinringtones = ('Inactive', 'Bell 1', 'Bell 2', 'Bell 3', ...
  __cal_end_datetime_value = None
  getringtones = None
  getwallpapers = None
  getmedia = None

Inherited from com_samsung.Phone: MODEPHONEBOOK

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 

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.

_get_phonebook(self, result, show_progress=True)

source code 

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

getphonebook(self, result)

source code 

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


Class Variable Details [hide private]

__pb_numbers

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

builtinringtones

Value:
('Inactive',
 'Bell 1',
 'Bell 2',
 'Bell 3',
 'Bell 4',
 'Bell 5',
 'Melody 1',
 'Melody 2',
...