org.symbian.tools.wrttools/plugin.xml
changeset 385 9bf326e3aeb9
parent 384 efc34c5e085b
child 386 7d0a718a6346
equal deleted inserted replaced
384:efc34c5e085b 385:9bf326e3aeb9
   887           id="org.symbian.tools.wrttools.wrtsnippets"
   887           id="org.symbian.tools.wrttools.wrtsnippets"
   888           label="Symbian Web Runtime"
   888           label="Symbian Web Runtime"
   889           smallicon="icons/main16.gif"
   889           smallicon="icons/main16.gif"
   890           contenttypes="org.eclipse.wst.jsdt.core.jsSource">
   890           contenttypes="org.eclipse.wst.jsdt.core.jsSource">
   891        <item
   891        <item
       
   892              class="org.symbian.tools.wrttools.util.SnippetInsertion"
   892              description="Retrieves list of the contacts"
   893              description="Retrieves list of the contacts"
   893              id="org.symbian.tools.wrttools.contacts"
   894              id="org.symbian.tools.wrttools.contacts"
   894              label="Get contacts">
   895              label="Get contacts">
   895           <content>
   896           <content>
   896 var contactService = device.getServiceObject("Service.Contact",
   897 var contactService = device.getServiceObject("Service.Contact",
   915 		// TODO Cannot retrieve contacts list
   916 		// TODO Cannot retrieve contacts list
   916 	}
   917 	}
   917           </content>
   918           </content>
   918        </item>
   919        </item>
   919        <item
   920        <item
       
   921              class="org.symbian.tools.wrttools.util.SnippetInsertion"
   920              description="Sends SMS message"
   922              description="Sends SMS message"
   921              id="org.symbian.tools.wrttools.contacts"
   923              id="org.symbian.tools.wrttools.contacts"
   922              label="Send SMS message">
   924              label="Send SMS message">
   923           <content>
   925           <content>
   924 var phoneNumber = "+6505551214";
   926 var phoneNumber = "+6505551214";
   931 		// TODO Cannot send SMS message
   933 		// TODO Cannot send SMS message
   932 	}
   934 	}
   933           </content>
   935           </content>
   934        </item>
   936        </item>
   935        <item
   937        <item
       
   938              class="org.symbian.tools.wrttools.util.SnippetInsertion"
   936              description="Adds callback that will be notified of orientation chnages"
   939              description="Adds callback that will be notified of orientation chnages"
   937              id="org.symbian.tools.wrttools.contacts"
   940              id="org.symbian.tools.wrttools.contacts"
   938              label="Register orientation callback">
   941              label="Register orientation callback">
   939           <content>
   942           <content>
   940 var sensors = device.getServiceObject("Service.Sensor", "ISensor");
   943 var sensors = device.getServiceObject("Service.Sensor", "ISensor");
   960 		// TODO Handle error
   963 		// TODO Handle error
   961 	}
   964 	}
   962          </content>
   965          </content>
   963        </item>
   966        </item>
   964        <item
   967        <item
       
   968              class="org.symbian.tools.wrttools.util.SnippetInsertion"
   965              description="This function can be used as a callback in GetLocation and Trace calls to location service."
   969              description="This function can be used as a callback in GetLocation and Trace calls to location service."
   966              id="org.symbian.tools.wrttools.location"
   970              id="org.symbian.tools.wrttools.location"
   967              label="Location callback">
   971              label="Location callback">
   968           <content>
   972           <content>
   969 // This function can be passed as a callback to locationService.ILocation
   973 // This function can be passed as a callback to locationService.ILocation
   992 		// TODO Failed to retrieve location information
   996 		// TODO Failed to retrieve location information
   993 	}
   997 	}
   994 }          </content>
   998 }          </content>
   995        </item>
   999        </item>
   996        <item
  1000        <item
       
  1001              class="org.symbian.tools.wrttools.util.SnippetInsertion"
   997              description="Function that processes notifications from the orientation sensor"
  1002              description="Function that processes notifications from the orientation sensor"
   998              id="org.symbian.tools.wrttools.contacts"
  1003              id="org.symbian.tools.wrttools.contacts"
   999              label="Orientation callback">
  1004              label="Orientation callback">
  1000           <content>
  1005           <content>
  1001 // This function can be passed as callback to locationService.ILocation.GetLocation 
  1006 // This function can be passed as callback to locationService.ILocation.GetLocation 
  1024           description="Snippets using PhoneGap APIs"
  1029           description="Snippets using PhoneGap APIs"
  1025           id="org.symbian.tools.wrttools.phonegapsnippets"
  1030           id="org.symbian.tools.wrttools.phonegapsnippets"
  1026           label="PhoneGap"
  1031           label="PhoneGap"
  1027           smallicon="icons/phonegap.png">
  1032           smallicon="icons/phonegap.png">
  1028        <item
  1033        <item
       
  1034              class="org.symbian.tools.wrttools.util.SnippetInsertion"
  1029              description="Accepts accerelometer data"
  1035              description="Accepts accerelometer data"
  1030              id="org.symbian.tools.wrttools.phonegap.accererometer"
  1036              id="org.symbian.tools.wrttools.phonegap.accererometer"
  1031              label="Accelerometer callback">
  1037              label="Accelerometer callback">
  1032           <content>
  1038           <content>
  1033 // This callback can be passed as a successCallback argument to  
  1039 // This callback can be passed as a successCallback argument to  
  1040 	// TODO process the data
  1046 	// TODO process the data
  1041 }
  1047 }
  1042           </content>
  1048           </content>
  1043        </item>
  1049        </item>
  1044        <item
  1050        <item
       
  1051              class="org.symbian.tools.wrttools.util.SnippetInsertion"
  1045              description="Accepts contacts data"
  1052              description="Accepts contacts data"
  1046              id="org.symbian.tools.wrttools.phonegap.contacts"
  1053              id="org.symbian.tools.wrttools.phonegap.contacts"
  1047              label="Contacts callback">
  1054              label="Contacts callback">
  1048           <content>
  1055           <content>
  1049 // This method can be passed as a successCallback argument to
  1056 // This method can be passed as a successCallback argument to
  1059 	}
  1066 	}
  1060 }
  1067 }
  1061           </content>
  1068           </content>
  1062        </item>
  1069        </item>
  1063        <item
  1070        <item
       
  1071              class="org.symbian.tools.wrttools.util.SnippetInsertion"
  1064              description="Accepts location data"
  1072              description="Accepts location data"
  1065              id="org.symbian.tools.wrttools.phonegap.location"
  1073              id="org.symbian.tools.wrttools.phonegap.location"
  1066              label="Location callback">
  1074              label="Location callback">
  1067           <content>
  1075           <content>
  1068 // This method can be passed as a successCallback argument to 
  1076 // This method can be passed as a successCallback argument to 
  1078 	// TODO Insert your code here
  1086 	// TODO Insert your code here
  1079 }
  1087 }
  1080           </content>
  1088           </content>
  1081        </item>
  1089        </item>
  1082        <item
  1090        <item
       
  1091              class="org.symbian.tools.wrttools.util.SnippetInsertion"
  1083              description="Accepts orientation data"
  1092              description="Accepts orientation data"
  1084              id="org.symbian.tools.wrttools.phonegap.orientation"
  1093              id="org.symbian.tools.wrttools.phonegap.orientation"
  1085              label="Orientation callback">
  1094              label="Orientation callback">
  1086           <content>
  1095           <content>
  1087 // This method can be passed as a successCallback argument to 
  1096 // This method can be passed as a successCallback argument to