Self-Made Extensions for PyS60 1.9.x

sysinfo2 1.0.0 - 15/Sep/09


 » Download: sis, zip
 » Provides sysinfo plus more!
 » Usage:

sysinfo2.bt_power()
    #is bluetooth on?
sysinfo2.bt_switch()
    #toggle bluetooth power

sysinfo2.total_drivespace()
    #why was this omitted in sysinfo??

sysinfo2.list_access_points() 
    #returns [{iapid,active,type,name},...]
sysinfo2.active_access_points() 
    #returns the above but filtered for active=1

sysinfo2.charger_status()
    #returns 1=charging | 0=not charging | -1=not known

sysinfo2.new_missed_calls()
    #repository value
sysinfo2.launch_missed_calls()
    #launch the Logs app in Missed Calls view

sysinfo2.new_emails()
    #list number of new emails per native mailbox found
sysinfo2.new_email_status()
    #returns 0=no new email | 1=new email | -1=error

 » REQUEST FOR API's: Please use this thread if you would like request for api's to be added this extension :)


AppTools 1.0.0 - 14/Sep/09

 » Download: sis, zip
 » Applist and Appswitch are obsolete. This updated extension provides all that and more!

apptools.switch_to_foreground(arg)
apptools.switch_to_background(arg)
apptools.end_app(arg)
apptools.kill_app(arg)
    #all above arg is the unicode of application title

apptools.list_running_applications([ehidden,esystem])
    #ehidden=show hidden apps, esystem=show system apps
apptools.list_installed_applications()
apptools.launch_application(AppUID)

apptools.get_icon(AppUID [,size])
apptools.get_icon_mask(AppUID [,size])
    #default size=48

apptools.new_sms(recipient [,alias])
    #recipient and alias must be unicode
apptools.launch_messaging([view])
    #view can be 'inbox'|'drafts'|'sent'|'outbox'
    #if ommitted, Messaging app loads in default list view
apptools.launch_missed_calls()


applist 1.2.2 - 05/Aug/09

 » Download: sis, zip
 » Two new api:

applist.new_sms([unicode recipient number]) 
    #launches native SMS editor
applist.launch_messaging([view])
    #Launch Messaging app with specified view.
    #view can be applist.KInbox |applist.KOutbox | applist.KDrafts | applist.KSent | none

 » See here for more details.

applist 1.2.1 - 27/Aug/09

 » Download: sis, zip
 » Usage:

applist.applist()
    #return list of (app_uid,app_name,app_path)
applist.applaunch(appUid)
    #launch any app using its uid
applist.icon(appUid,size)
    #returns Image obect for use with canvas. size is icon height/width in pixels
applist.iconmask(appUid,size)
    #returns Image obect for use with canvas. size is icon height/width in pixels

 » See here for more details.


profiles 1.0.0 - 25/Aug/09

 » Download: sis, zip
 » Enables switching of the active profile.
 » Usage:

profiles.profiles()
    #returns a List containing (profile Id, profile Name)
profiles.get_ap() 
    #returns the id of the currently active profiles
profiles.set_ap(pId)
    #changes the active profile to that of the profile Id


keylocker 1.0.0 - 22/Aug/09

 » Download: sis, zip
 » Programmatically lock/unlock the keypad.
 » Usage:

keylocker.Lock_WithNote()
keylocker.Unlock_WithNote()
keylocker.Lock()
keylocker.Unlock()