+++ /dev/null
-/**\r
- This API is used to provide system related data.\r
- It takes the sysObject as an argument that is the embeded API in the main HTML file.\r
- While using this API outside mobile environment, User or developer need not to take any extara action in oprder to support SYSAPI.\r
-*/\r
-\r
-function systemAPI(sysObject)\r
-{\r
- /*\r
- * System Language information services\r
- */\r
- sysObject.language = 'EN';\r
-\r
-\r
-\r
-\r
- /*\r
- * Power information services\r
- */\r
- \r
- // Properties\r
- sysObject.chargelevel = 5;\r
- sysObject.chargerconnected = 0;\r
-\r
- // Event triggers\r
- sysObject.onchargelevel = null;\r
- sysObject.onchargerconnected = null;\r
-\r
-\r
-\r
- /*\r
- * Beep tone control services\r
- */ \r
- sysObject.beep = function(frequency, duration){ }\r
-\r
-\r
-\r
- /*\r
- * Network Information services\r
- */\r
- \r
- // value range between: {0-7}\r
- sysObject.signalbars = 7;\r
-\r
- sysObject.networkname = 'No network';\r
-\r
- // value range between: {0-7}\r
- sysObject.networkregistrationstatus = 0;\r
- \r
-\r
-\r
- /*\r
- * Display and keypad illumination information and control services\r
- */\r
-\r
- // Properties\r
- sysObject.lightminintensity = 1;\r
- sysObject.lightmaxintensity = 100;\r
- sysObject.lightdefaultintensity = 0;\r
- \r
- sysObject.lightinfiniteduration = 0;\r
- sysObject.lightmaxduration = 1;\r
- sysObject.lightdefaultcycletime = 0;\r
-\r
- sysObject.lighttargetprimarydisplayandkeyboard = 0x3;\r
- sysObject.lighttargetsystem = 1;\r
-\r
- // functions\r
- sysObject.lighton = function(lighttarget, duration, intensity, fadein){ }\r
- sysObject.lightblink = function(lighttarget, duration, onduration, offduration, intensity){ }\r
- sysObject.lightoff = function(lighttarget, duration, fadeout){ }\r
-\r
-\r
-\r
- /*\r
- * Vibration information and control services\r
- */\r
- sysObject.vibraminintensity = 1;\r
- sysObject.vibramaxintensity = 10;\r
- sysObject.vibramaxduration = 100;\r
- \r
- // Vibration setting in the user profile is off.\r
- sysObject.vibrasettings = 2; \r
-\r
- sysObject.startvibra = function(duration, intensity){ }\r
-\r
- sysObject.stopvibra = function(){ }\r
-\r
-\r
-\r
-\r
- /*\r
- * Memory and file system information services\r
- */\r
- sysObject.totalram = 32; \r
- sysObject.freeram = 10; \r
- sysObject.drivelist = 'C'; \r
-\r
- sysObject.drivesize = function(drive){ return 64; }\r
- \r
- sysObject.drivefree = function(drive){ return 32; }\r
-\r
-}\r
-\r
-\r
-// make TRUE systeminfo.js script loaded\r
-window.parent.NOKIA.scriptsLoaded.systeminfo = true;
\ No newline at end of file