org.symbian.tools.wrttools.previewer/preview/script/lib/systeminfo.js
changeset 430 c9364c38809d
parent 273 b1f63c2c240c
equal deleted inserted replaced
429:d1f103499eee 430:c9364c38809d
    26 	/*
    26 	/*
    27 	 * 	System Language information services
    27 	 * 	System Language information services
    28 	 */
    28 	 */
    29 	sysObject.language = 'EN';
    29 	sysObject.language = 'EN';
    30 
    30 
    31 
       
    32 
       
    33 
       
    34 	/*
    31 	/*
    35 	 * 	Power information services
    32 	 * 	Power information services
    36 	 */
    33 	 */
    37 	
    34 	
    38 	//	Properties
    35 	//	Properties
    41 
    38 
    42 	//	Event triggers
    39 	//	Event triggers
    43 	sysObject.onchargelevel = null;
    40 	sysObject.onchargelevel = null;
    44 	sysObject.onchargerconnected = null;
    41 	sysObject.onchargerconnected = null;
    45 
    42 
    46 
       
    47 
       
    48 	/*
    43 	/*
    49 	 * 	Beep tone control services
    44 	 * 	Beep tone control services
    50 	 */	
    45 	 */	
    51 	sysObject.beep = function(frequency, duration){	}
    46 	sysObject.beep = function(frequency, duration){	
    52 
    47 		alert("Beep is not implemented in the previewer.");
    53 
    48 	};
    54 
    49 
    55 	/*
    50 	/*
    56 	 * 	Network Information services
    51 	 * 	Network Information services
    57 	 */
    52 	 */
    58 	
    53 	
    61 
    56 
    62 	sysObject.networkname = 'No network';
    57 	sysObject.networkname = 'No network';
    63 
    58 
    64 	//	value range between: {0-7}
    59 	//	value range between: {0-7}
    65 	sysObject.networkregistrationstatus = 0;
    60 	sysObject.networkregistrationstatus = 0;
    66 	
       
    67 
       
    68 
    61 
    69 	/*
    62 	/*
    70 	 * 	Display and keypad illumination information and control services
    63 	 * 	Display and keypad illumination information and control services
    71 	 */
    64 	 */
    72 
    65 
    85 	//	functions
    78 	//	functions
    86 	sysObject.lighton	= function(lighttarget, duration, intensity, fadein){ 	}
    79 	sysObject.lighton	= function(lighttarget, duration, intensity, fadein){ 	}
    87 	sysObject.lightblink	= function(lighttarget, duration, onduration, offduration, intensity){ 	}
    80 	sysObject.lightblink	= function(lighttarget, duration, onduration, offduration, intensity){ 	}
    88 	sysObject.lightoff	= function(lighttarget, duration, fadeout){ 	}
    81 	sysObject.lightoff	= function(lighttarget, duration, fadeout){ 	}
    89 
    82 
    90 
       
    91 
       
    92 	/*
    83 	/*
    93 	 * 	Vibration information and control services
    84 	 * 	Vibration information and control services
    94 	 */
    85 	 */
    95 	sysObject.vibraminintensity = 1;
    86 	sysObject.vibraminintensity = 1;
    96 	sysObject.vibramaxintensity = 10;
    87 	sysObject.vibramaxintensity = 10;
    97 	sysObject.vibramaxduration = 100;
    88 	sysObject.vibramaxduration = 100;
    98 	
    89 	
    99 	//	Vibration setting in the user profile is off.
    90 	//	Vibration setting in the user profile is off.
   100 	sysObject.vibrasettings = 2; 
    91 	sysObject.vibrasettings = 2; 
   101 
    92 
   102 	sysObject.startvibra	= function(duration, intensity){	}
    93 	sysObject.startvibra	= function(duration, intensity){ 
       
    94 		alert("Vibrate is not implemented in the previewer.");
       
    95 	};
   103 
    96 
   104 	sysObject.stopvibra	= function(){	}
    97 	sysObject.stopvibra	= function(){	
   105 
    98 		alert("Vibrate is not implemented in the previewer.");
   106 
    99 	};
   107 
       
   108 
   100 
   109 	/*
   101 	/*
   110 	 * 	Memory and file system information services
   102 	 * 	Memory and file system information services
   111 	 */
   103 	 */
   112 	sysObject.totalram = 32;	
   104 	sysObject.totalram = 32;