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

Class Phone

source code

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

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
 
get_esn(self) source code
 
_time_now(self) source code
 
get_groups(self) source code
 
_get_builtin_ringtone_index(self, idx, result) source code
 
_get_file_ringtone_index(self, idx, result, index_file_name, index_file_class, origin) source code
 
get_ringtone_index(self) source code
 
_get_builtin_wallpaper_index(self, idx, result) source code
 
_get_file_wallpaper_index(self, idx, result) source code
 
get_wallpaper_index(self) source code
 
_read_ringtone_range(self, fundamentals) source code
 
get_ringtone_range(self, name, fundamentals) source code
 
ringtone_name_from_range(self, range, fundamentals) source code
 
getfundamentals(self, results)
Gets information fundamental to interopating with the phone and UI.
source code
 
_get_media_from_index(self, index_key, media_key, fundamentals) source code
 
getringtones(self, fundamentals) source code
 
_get_del_new_list(self, index_key, media_key, merge, fundamentals, ignored_origins=())
Return a list of media being deleted and being added
source code
 
_item_from_index(self, name, item_key, index_dict) source code
 
_del_files(self, index_key, _del_list, fundamentals)
Delete specified media files, need to be in OBEX mode
source code
 
_replace_files(self, index_key, media_key, new_list, fundamentals)
Replace existing files with new contents using BREW
source code
 
_add_files(self, index_key, media_key, new_list, fundamentals)
Add new file using BREW
source code
 
_update_media_index(self, index_file_class, index_entry_class, media_path, excluded_files, index_file_name) source code
 
saveringtones(self, fundamentals, merge)
Save ringtones to the phone
source code
 
getwallpapers(self, fundamentals) source code
 
savewallpapers(self, fundamentals, merge)
Save ringtones to the phone
source code
 
_read_calendar_index(self) source code
 
getcalendar(self, fundamentals) source code
 
_del_existing_cal_entries(self) source code
 
_write_cal_entries(self, next_index, fundamentals) source code
 
_write_cal_index(self, next_index, fundamentals) source code
 
savecalendar(self, fundamentals, merge) source code
 
getmemo(self, fundamentals) source code
 
_del_existing_memo_entries(self) source code
 
_write_memo_entries(self, next_index, fundamentals) source code
 
_write_memo_index(self, next_index, fundamentals) source code
 
savememo(self, fundamentals, merge) source code
 
is_mode_brew(self) source code
 
check_my_phone(self, res) source code
 
_del_private_dicts(self, fundamentals) source code
 
_extract_entries(self, filename, res, fundamentals) source code
 
getphonebook(self, fundamentals) source code
 
_get_wp_filename(self, wp, wp_index) source code
 
_rescale_and_cache(self, wp, filename, idx, fundamentals) source code
 
_add_wp_cache(self, wp, idx, fundamentals) source code
 
get_wallpaper_range(self, wallpaper, fundamentals) source code
 
savephonebook(self, fundamentals) source code
 
_get_ch_index(self) source code
 
_get_ch(self, call_list, folder, res) source code
 
getcallhistory(self, fundamentals) source code
 
_build_common_msg(self, entry, sms_hdr) source code
 
_build_locked_field(self, entry, buf) source code
 
_build_in_msg(self, sms_hdr, buf, res) source code
 
_build_sent_msg(self, sms_hdr, buf, res) source code
 
_build_draft_msg(self, sms_hdr, buf, res) source code
 
_read_sms(self, filename, res, fundamentals) source code
 
getsms(self, fundamentals) 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 = 'SCH-A950'
  helpid = 'phone-samsungscha950.htm'
  protocolclass
Various descriptions of data specific to the Samsung SCH-A950 Phone
  serialsname = 'scha950'
  ringtone_noring_range = 'range_tones_preloaded_el_15'
  ringtone_default_range = 'range_tones_preloaded_el_01'
  builtin_ringtones = {'Beep Once': 'range_tones_preloaded_el_06...
  builtin_sounds = {'Birthday': 'range_sound_preloaded_el_birthd...
  builtin_wallpapers = {'Wallpaper 1': 'range_f_wallpaper_preloa...
  builtin_groups = {1: 'Business', 2: 'Colleague', 3: 'Family', ...
  my_model = 'SCH-A950/DM'
  my_manufacturer = 'SAMSUNG'
  detected_model = 'A950'

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

getmemo(self, fundamentals)

source code 
Overrides: getmemo

getcallhistory(self, fundamentals)

source code 
Overrides: getcallhistory

getsms(self, fundamentals)

source code 
Overrides: getsms

Class Variable Details [hide private]

protocolclass

Various descriptions of data specific to the Samsung SCH-A950 Phone

Value:
phones.p_samsungscha950

builtin_ringtones

Value:
{'Beep Once': 'range_tones_preloaded_el_06',
 'Bell 1': 'range_tones_preloaded_el_04',
 'Bell 2': 'range_tones_preloaded_el_05',
 'Melody 1': 'range_tones_preloaded_el_02',
 'Melody 2': 'range_tones_preloaded_el_03',
 'No Ring': 'range_tones_preloaded_el_15',
 'VZW Default Tone': 'range_tones_preloaded_el_01'}

builtin_sounds

Value:
{'Birthday': 'range_sound_preloaded_el_birthday',
 'Clapping': 'range_sound_preloaded_el_clapping',
 'Crowd Roar': 'range_sound_preloaded_el_crowed_roar',
 'Rainforest': 'range_sound_preloaded_el_rainforest',
 'Sound Beep Once': 'range_sound_preloaded_el_beep_once',
 'Sound No Ring': 'range_sound_preloaded_el_no_rings',
 'Train': 'range_sound_preloaded_el_train'}

builtin_wallpapers

Value:
{'Wallpaper 1': 'range_f_wallpaper_preloaded_el_01',
 'Wallpaper 2': 'range_f_wallpaper_preloaded_el_02',
 'Wallpaper 3': 'range_f_wallpaper_preloaded_el_03',
 'Wallpaper 4': 'range_f_wallpaper_preloaded_el_04',
 'Wallpaper 5': 'range_f_wallpaper_preloaded_el_05',
 'Wallpaper 6': 'range_f_wallpaper_preloaded_el_06',
 'Wallpaper 7': 'range_f_wallpaper_preloaded_el_07',
 'Wallpaper 8': 'range_f_wallpaper_preloaded_el_08',
...

builtin_groups

Value:
{1: 'Business', 2: 'Colleague', 3: 'Family', 4: 'Friends'}