Brent Roettger
2005-09-28 05:02:12 UTC
### BITPIM
###
### Copyright (C) 2005 Brent Roettger <***@msn.com>
###
### This program is free software; you can redistribute it and/or modify
### it under the terms of the BitPim license as detailed in the LICENSE
file.
###
### $Id: com_lgpm325.py,v 1.00 2005/09/14
"""Communicate with the LG PM325 (Sprint) cell phone"""
# standard modules
import datetime
import re
import time
import cStringIO
import sha
# my modules
import bpcalendar
import common
import commport
import copy
import p_lgpm325
import p_brew
import com_brew
import com_phone
import com_lg
import com_lgvx4400
import prototypes
import fileinfo
import call_history
import sms
class Phone(com_lgvx4400.Phone):
"Talk to the LG PM325 cell phone"
desc="LG-PM325"
wallpaperindexfilename="setas/amsImageIndex.map"
ringerindexfilename="setas/amsRingerIndex.map"
protocolclass=p_lgpm325
serialsname='lgpm325'
imagelocations=(
# offset, index file, files location, type, maximumentries
( 2, wallpaperindexfilename, "brew/shared", "images", 30),
)
ringtonelocations=(
# offset, index file, files location, type, maximumentries
( 2, ringerindexfilename, "user/sound/ringer", "ringers", 30),
)
builtinimages=('Starfish', 'Goldfish', 'Leaves', 'Bicycle', 'Speed',
'Autumn', 'Island', 'Winter', 'Bamboo', 'Yellow Flowers',
'Snow')
builtinringtones=( 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5',
'Tone 6',
'Alert 1', 'Alert 2', 'Alert 3', 'Alert 4', 'Alert
5', 'Alert 6',
'Jazztic', 'Rock & Roll', 'Grand Waltz', 'Toccata and
Fugue',
'Sunday Afternoon', 'Bumble Bee', 'Circus Band',
'Cuckoo Waltz',
'Latin', 'CanCan', 'Play tag', 'Eine kleine
Nachtmusik',
'Symphony No.25 in G Minor', 'Capriccio a minor',
'Moonlight',
###
### Copyright (C) 2005 Brent Roettger <***@msn.com>
###
### This program is free software; you can redistribute it and/or modify
### it under the terms of the BitPim license as detailed in the LICENSE
file.
###
### $Id: com_lgpm325.py,v 1.00 2005/09/14
"""Communicate with the LG PM325 (Sprint) cell phone"""
# standard modules
import datetime
import re
import time
import cStringIO
import sha
# my modules
import bpcalendar
import common
import commport
import copy
import p_lgpm325
import p_brew
import com_brew
import com_phone
import com_lg
import com_lgvx4400
import prototypes
import fileinfo
import call_history
import sms
class Phone(com_lgvx4400.Phone):
"Talk to the LG PM325 cell phone"
desc="LG-PM325"
wallpaperindexfilename="setas/amsImageIndex.map"
ringerindexfilename="setas/amsRingerIndex.map"
protocolclass=p_lgpm325
serialsname='lgpm325'
imagelocations=(
# offset, index file, files location, type, maximumentries
( 2, wallpaperindexfilename, "brew/shared", "images", 30),
)
ringtonelocations=(
# offset, index file, files location, type, maximumentries
( 2, ringerindexfilename, "user/sound/ringer", "ringers", 30),
)
builtinimages=('Starfish', 'Goldfish', 'Leaves', 'Bicycle', 'Speed',
'Autumn', 'Island', 'Winter', 'Bamboo', 'Yellow Flowers',
'Snow')
builtinringtones=( 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5',
'Tone 6',
'Alert 1', 'Alert 2', 'Alert 3', 'Alert 4', 'Alert
5', 'Alert 6',
'Jazztic', 'Rock & Roll', 'Grand Waltz', 'Toccata and
Fugue',
'Sunday Afternoon', 'Bumble Bee', 'Circus Band',
'Cuckoo Waltz',
'Latin', 'CanCan', 'Play tag', 'Eine kleine
Nachtmusik',
'Symphony No.25 in G Minor', 'Capriccio a minor',
'Moonlight',