forked from phonegap/phonegap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added empty classes for unimplemented apis
- Loading branch information
Ryan Willoughby
committed
Dec 17, 2009
1 parent
224e008
commit a31687e
Showing
3 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* This class provides access to the debugging console. | ||
* @constructor | ||
*/ | ||
function DebugConsole() { | ||
} | ||
|
||
/** | ||
* Print a normal log message to the console | ||
* @param {Object|String} message Message or object to print to the console | ||
*/ | ||
DebugConsole.prototype.log = function(message) { | ||
alert(message); | ||
}; | ||
|
||
/** | ||
* Print a warning message to the console | ||
* @param {Object|String} message Message or object to print to the console | ||
*/ | ||
DebugConsole.prototype.warn = function(message) { | ||
}; | ||
|
||
/** | ||
* Print an error message to the console | ||
* @param {Object|String} message Message or object to print to the console | ||
*/ | ||
DebugConsole.prototype.error = function(message) { | ||
}; | ||
|
||
if (typeof window.debug == "undefined") window.debug = new DebugConsole(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* 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) { | ||
var errStr = "Telephony API not available for symbian.wrt"; | ||
debug.log(errStr); | ||
return { name: "TelephonyError", message: errStr }; | ||
} | ||
|
||
if (typeof navigator.telephony == "undefined") navigator.telephony = new Telephony(); |