js/telephony.js
changeset 0 54063d8b0412
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/js/telephony.js	Tue Jul 06 11:31:19 2010 -0700
@@ -0,0 +1,17 @@
+/**
+ * This class provides access to the telephony features of the device.
+ * @constructor
+ */
+function Telephony() {
+	this.number = "";
+}
+
+/**
+ * Calls the specifed number.
+ * @param {Integer} number The number to be called.
+ */
+Telephony.prototype.send = function(number) {
+	widget.openURL('tel:+' + number);
+};
+
+if (typeof navigator.telephony == "undefined") navigator.telephony = new Telephony();
\ No newline at end of file