incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [50/78] [abbrv] [partial] added platform specs and basic work
Date Fri, 27 Jul 2012 00:29:16 GMT
http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/Res/cordova/file.js
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/Res/cordova/file.js b/lib/cordova-1.9.0/lib/bada/Res/cordova/file.js
deleted file mode 100755
index ac316a0..0000000
--- a/lib/cordova-1.9.0/lib/bada/Res/cordova/file.js
+++ /dev/null
@@ -1,682 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-/**
- * These classes provides generic read and write access to the mobile device file system.
- * They are not used to read files from a server.
- */
-
-/**
- * Contains properties that describe a file.
- */
-function FileProperties(filePath) {
-    this.filePath = filePath;
-    this.size = 0;
-    this.lastModifiedDate = null;
-};
-
-/**
- * FileError
- */
-function FileError() {
-    this.code = null;
-};
-
-// File error codes
-// Found in DOMException
-FileError.NOT_FOUND_ERR = 1;
-FileError.SECURITY_ERR = 2;
-FileError.ABORT_ERR = 3;
-
-// Added by File API specification
-FileError.NOT_READABLE_ERR = 4;
-FileError.ENCODING_ERR = 5;
-FileError.NO_MODIFICATION_ALLOWED_ERR = 6;
-FileError.INVALID_STATE_ERR = 7;
-FileError.SYNTAX_ERR = 8;
-FileError.INVALID_MODIFICATION_ERR = 9;
-FileError.QUOTA_EXCEEDED_ERR = 10;
-FileError.TYPE_MISMATCH_ERR = 11;
-FileError.PATH_EXISTS_ERR = 12;
-
-//-----------------------------------------------------------------------------
-//File manager
-//-----------------------------------------------------------------------------
-
-/**
- * This class provides read and write access to mobile device file system in 
- * support of FileReader and FileWriter APIs based on 
- * http://www.w3.org/TR/2010/WD-FileAPI-20101026
- * and
- * <writer url>
- */
-function FileMgr() {
-};
-
-/**
- * Returns the root file system paths.
- * 
- * @return {String[]} array of root file system paths
- */
-FileMgr.prototype.getRootPaths = function() {
-    return blackberry.io.dir.getRootDirs();
-};
-
-/**
- * Returns the available memory in bytes for the root file system of the specified file path.
- * 
- * @param filePath          A file system path
- */
-FileMgr.prototype.getFreeDiskSpace = function(filePath) {
-    return blackberry.io.dir.getFreeSpaceForRoot(filePath);
-};
-
-/**
- * Reads a file from the device and encodes the contents using the specified 
- * encoding. 
- * 
- * @param fileName          The full path of the file to read
- * @param encoding          The encoding to use to encode the file's content
- * @param successCallback   Callback invoked with file contents
- * @param errorCallback     Callback invoked on error
- */
-FileMgr.prototype.readAsText = function(fileName, encoding, successCallback, errorCallback) {
-    Cordova.exec(successCallback, errorCallback, "File", "readAsText", [fileName, encoding]);
-};
-
-/**
- * Reads a file from the device and encodes the contents using BASE64 encoding.  
- * 
- * @param fileName          The full path of the file to read.
- * @param successCallback   Callback invoked with file contents
- * @param errorCallback     Callback invoked on error
- */
-FileMgr.prototype.readAsDataURL = function(fileName, successCallback, errorCallback) {
-    Cordova.exec(successCallback, errorCallback, "File", "readAsDataURL", [fileName]);
-};
-
-/**
- * Writes data to the specified file.
- * 
- * @param fileName          The full path of the file to write
- * @param data              The data to be written
- * @param position          The position in the file to begin writing
- * @param successCallback   Callback invoked after successful write operation
- * @param errorCallback     Callback invoked on error
- */
-FileMgr.prototype.write = function(fileName, data, position, successCallback, errorCallback) {
-    Cordova.exec(successCallback, errorCallback, "File", "write", [fileName, data, position]);
-};
-
-/**
- * Tests whether file exists.  Will return false if the path specifies a directory.
- * 
- * @param fullPath             The full path of the file 
- */
-FileMgr.prototype.testFileExists = function(fullPath) {
-    return blackberry.io.file.exists(fullPath);
-};
-
-/**
- * Tests whether directory exists.  Will return false if the path specifies a file.
- * 
- * @param fullPath             The full path of the directory
- */
-FileMgr.prototype.testDirectoryExists = function(fullPath) {
-    return blackberry.io.dir.exists(fullPath);
-};
-
-/**
- * Gets the properties of a file.  Throws an exception if fileName is a directory.
- * 
- * @param fileName          The full path of the file 
- */
-FileMgr.prototype.getFileProperties = function(fileName) {    
-    var fileProperties = new FileProperties(fileName);
-    // attempt to get file properties
-    if (blackberry.io.file.exists(fileName)) {
-        var props = blackberry.io.file.getFileProperties(fileName);
-        fileProperties.size = props.size;
-        fileProperties.lastModifiedDate = props.dateModified;
-    }
-    // fileName is a directory
-    else if (blackberry.io.dir.exists(fileName)) {
-        throw FileError.TYPE_MISMATCH_ERR;
-    }
-    return fileProperties;
-};
-
-/**
- * Changes the length of the specified file.  Data beyond new length is discarded.  
- * 
- * @param fileName          The full path of the file to truncate
- * @param size              The size to which the length of the file is to be adjusted
- * @param successCallback   Callback invoked after successful write operation
- * @param errorCallback     Callback invoked on error
- */
-FileMgr.prototype.truncate = function(fileName, size, successCallback, errorCallback) {
-    Cordova.exec(successCallback, errorCallback, "File", "truncate", [fileName, size]);
-};
-
-/**
- * Removes a file from the file system.
- * 
- * @param fileName          The full path of the file to be deleted
- */
-FileMgr.prototype.deleteFile = function(fileName) {
-    // delete file, if it exists
-    if (blackberry.io.file.exists(fileName)) {
-        blackberry.io.file.deleteFile(fileName);
-    }
-    // fileName is a directory
-    else if (blackberry.io.dir.exists(fileName)) {
-        throw FileError.TYPE_MISMATCH_ERR;
-    }
-    // fileName not found 
-    else {
-        throw FileError.NOT_FOUND_ERR;
-    }
-};
-
-/**
- * Creates a directory on device storage.
- * 
- * @param dirName           The full path of the directory to be created
- */
-FileMgr.prototype.createDirectory = function(dirName) {
-    if (!blackberry.io.dir.exists(dirName)) {
-        // createNewDir API requires trailing slash
-        if (dirName.substr(-1) !== "/") {
-            dirName += "/";
-        }
-        blackberry.io.dir.createNewDir(dirName);
-    }
-    // directory already exists
-    else {
-        throw FileError.PATH_EXISTS_ERR;
-    }
-};
-
-/**
- * Deletes the specified directory from device storage.
- * 
- * @param dirName           The full path of the directory to be deleted
- */
-FileMgr.prototype.deleteDirectory = function(dirName) {
-    blackberry.io.dir.deleteDirectory(dirName);
-};
-
-Cordova.addConstructor(function() {
-    if (typeof navigator.fileMgr == "undefined") navigator.fileMgr = new FileMgr();
-});
-
-//-----------------------------------------------------------------------------
-//File Reader
-//-----------------------------------------------------------------------------
-
-/**
- * This class reads the mobile device file system.
- */
-function FileReader() {
-    this.fileName = "";
-
-    this.readyState = 0;
-
-    // File data
-    this.result = null;
-
-    // Error
-    this.error = null;
-
-    // Event handlers
-    this.onloadstart = null;    // When the read starts.
-    this.onprogress = null;     // While reading (and decoding) file or fileBlob data, and reporting partial file data (progess.loaded/progress.total)
-    this.onload = null;         // When the read has successfully completed.
-    this.onerror = null;        // When the read has failed (see errors).
-    this.onloadend = null;      // When the request has completed (either in success or failure).
-    this.onabort = null;        // When the read has been aborted. For instance, by invoking the abort() method.
-};
-
-//States
-FileReader.EMPTY = 0;
-FileReader.LOADING = 1;
-FileReader.DONE = 2;
-
-/**
- * Abort read file operation.
- */
-FileReader.prototype.abort = function() {
-    var event;
-    
-    // reset everything
-    this.readyState = FileReader.DONE;
-    this.result = null;
-    
-    // set error
-    var error = new FileError();
-    error.code = error.ABORT_ERR;
-    this.error = error;
-
-    // abort procedure
-    if (typeof this.onerror == "function") {
-        event = {"type":"error", "target":this};
-        this.onerror(event);
-    }
-    if (typeof this.onabort == "function") {
-        event = {"type":"abort", "target":this};
-        this.onabort(event);
-    }
-    if (typeof this.onloadend == "function") {
-        event = {"type":"loadend", "target":this};
-        this.onloadend(event);
-    }
-};
-
-/**
- * Reads and encodes text file.
- *
- * @param file          The name of the file
- * @param encoding      [Optional] (see http://www.iana.org/assignments/character-sets)
- */
-FileReader.prototype.readAsText = function(file, encoding) {
-    var event;
-    
-    // Use UTF-8 as default encoding
-    var enc = encoding ? encoding : "UTF-8";
-    
-    // start
-    this.readyState = FileReader.LOADING;
-    if (typeof this.onloadstart == "function") {
-        event = {"type":"loadstart", "target":this};
-        this.onloadstart(event);
-    }
-
-    // read and encode file
-    this.fileName = file;
-    var me = this;
-    navigator.fileMgr.readAsText(file, enc, 
-
-        // success callback
-        function(result) {
-            // If DONE (canceled), then don't do anything
-            if (me.readyState === FileReader.DONE) {
-                return;
-            }
-
-            // success procedure
-            me.result = result;
-            if (typeof me.onload == "function") {
-                event = {"type":"load", "target":me};
-                me.onload(event);
-            }
-            me.readyState = FileReader.DONE;
-            if (typeof me.onloadend == "function") {
-                event = {"type":"loadend", "target":me};
-                me.onloadend(event);
-            }
-        },
-
-        // error callback
-        function(error) {
-            // If DONE (canceled), then don't do anything
-            if (me.readyState === FileReader.DONE) {
-                return;
-            }
-
-            // capture error
-            var err = new FileError();
-            err.code = error;
-            me.error = err;
-            
-            // error procedure
-            me.result = null;
-            if (typeof me.onerror == "function") {
-                event = {"type":"error", "target":me};
-                me.onerror(event);
-            }
-            me.readyState = FileReader.DONE;
-            if (typeof me.onloadend == "function") {
-                event = {"type":"loadend", "target":me};
-                me.onloadend(event);
-            }
-        }
-    );
-};
-
-/**
- * Read file and return data as a base64 encoded data url.
- * A data url is of the form:
- *      data:[<mediatype>][;base64],<data>
- *
- * @param file          The name of the file
- */
-FileReader.prototype.readAsDataURL = function(file) {
-    var event;
-    
-    // start
-    this.readyState = FileReader.LOADING;
-    if (typeof this.onloadstart == "function") {
-        event = {"type":"loadstart", "target":this};
-        this.onloadstart(event);
-    }
-    
-    // read and encode file
-    this.fileName = file;
-    var me = this;
-    navigator.fileMgr.readAsDataURL(file, 
-
-        // success callback
-        function(result) {
-            // If DONE (canceled), then don't do anything
-            if (me.readyState === FileReader.DONE) {
-                return;
-            }
-
-            // success procedure
-            me.result = result;
-            if (typeof me.onload == "function") {
-                event = {"type":"load", "target":me};
-                me.onload(event);
-            }
-            me.readyState = FileReader.DONE;
-            if (typeof me.onloadend == "function") {
-                event = {"type":"loadend", "target":me};
-                me.onloadend(event);
-            }
-        },
-
-        // error callback
-        function(error) {
-            // If DONE (canceled), then don't do anything
-            if (me.readyState === FileReader.DONE) {
-                return;
-            }
-
-            // capture error
-            var err = new FileError();
-            err.code = error;
-            me.error = err;
-            
-            // error procedure
-            me.result = null;
-            if (typeof me.onerror == "function") {
-                event = {"type":"error", "target":me};
-                me.onerror(event);
-            }
-            me.readyState = FileReader.DONE;
-            if (typeof me.onloadend == "function") {
-                event = {"type":"loadend", "target":me};
-                me.onloadend(event);
-            }
-        }
-    );
-};
-
-//-----------------------------------------------------------------------------
-//File Writer
-//-----------------------------------------------------------------------------
-
-/**
-* This class writes to the mobile device file system.
-*
-* @param filePath       The full path to the file to be written to
-* @param append         If true, then data will be written to the end of the file rather than the beginning 
-*/
-function FileWriter(filePath, append) {
-    this.fileName = filePath;
-    this.length = 0;
-
-    // get the file properties
-    var fp = navigator.fileMgr.getFileProperties(filePath);
-    this.length = fp.size;
-    
-    // default is to write at the beginning of the file
-    this.position = (append !== true) ? 0 : this.length;
-    
-    this.readyState = 0; // EMPTY
-    
-    // Error
-    this.error = null;
-
-    // Event handlers
-    this.onwritestart = null;   // When writing starts
-    this.onprogress = null;     // While writing the file, and reporting partial file data
-    this.onwrite = null;        // When the write has successfully completed.
-    this.onwriteend = null;     // When the request has completed (either in success or failure).
-    this.onabort = null;        // When the write has been aborted. For instance, by invoking the abort() method.
-    this.onerror = null;        // When the write has failed (see errors).
-};
-
-//States
-FileWriter.INIT = 0;
-FileWriter.WRITING = 1;
-FileWriter.DONE = 2;
-
-/**
- * Abort writing file.
- */
-FileWriter.prototype.abort = function() {
-    var event;
-    // check for invalid state 
-    if (this.readyState === FileWriter.DONE || this.readyState === FileWriter.INIT) {
-        throw FileError.INVALID_STATE_ERR;
-    }
-    
-    // set error
-    var error = new FileError();
-    error.code = error.ABORT_ERR;
-    this.error = error;
-
-    // dispatch progress events
-    if (typeof this.onerror == "function") {
-        event = {"type":"error", "target":this};
-        this.onerror(event);
-    }
-    if (typeof this.onabort == "function") {
-        event = {"type":"abort", "target":this};
-        this.onabort(event);
-    }
-
-    // set state
-    this.readyState = FileWriter.DONE;
-    
-    // done
-    if (typeof this.writeend == "function") {
-        event = {"type":"writeend", "target":this};
-        this.writeend(event);
-    }
-};
-
-/**
- * Sets the file position at which the next write will occur.
- * 
- * @param offset    Absolute byte offset into the file
- */
-FileWriter.prototype.seek = function(offset) {
-    // Throw an exception if we are already writing a file
-    if (this.readyState === FileWriter.WRITING) {
-        throw FileError.INVALID_STATE_ERR;
-    }
-
-    if (!offset) {
-        return;
-    }
-    
-    // offset is bigger than file size, set to length of file
-    if (offset > this.length) { 
-        this.position = this.length;
-    }
-    // seek back from end of file
-    else if (offset < 0) { 
-        this.position = Math.max(offset + this.length, 0);
-    } 
-    // offset in the middle of file
-    else {
-        this.position = offset;
-    }
-};
-
-/**
- * Truncates the file to the specified size.
- * 
- * @param size      The size to which the file length is to be adjusted
- */
-FileWriter.prototype.truncate = function(size) {
-    var event;
-    
-    // Throw an exception if we are already writing a file
-    if (this.readyState === FileWriter.WRITING) {
-        throw FileError.INVALID_STATE_ERR;
-    }
-    
-    // start
-    this.readyState = FileWriter.WRITING;
-    if (typeof this.onwritestart == "function") {
-        event = {"type":"writestart", "target":this};
-        this.onwritestart(event);
-    }
-
-    // truncate file
-    var me = this;
-    navigator.fileMgr.truncate(this.fileName, size, 
-        // Success callback receives the new file size
-        function(result) {
-            // If DONE (canceled), then don't do anything
-            if (me.readyState === FileWriter.DONE) {
-                return;
-            }
-
-            // new file size is returned
-            me.length = result;
-            // position is lesser of old position or new file size
-            me.position = Math.min(me.position, result);
-
-            // success procedure
-            if (typeof me.onwrite == "function") {
-                event = {"type":"write", "target":me};
-                me.onwrite(event);
-            }
-            me.readyState = FileWriter.DONE;
-            if (typeof me.onwriteend == "function") {
-                event = {"type":"writeend", "target":me};
-                me.onwriteend(event);
-            }
-        },
-
-        // Error callback
-        function(error) {
-            // If DONE (canceled), then don't do anything
-            if (me.readyState === FileWriter.DONE) {
-                return;
-            }
-
-            // Save error
-            var err = new FileError();
-            err.code = error;
-            me.error = err;
-
-            // error procedure
-            if (typeof me.onerror == "function") {
-                event = {"type":"error", "target":me};
-                me.onerror(event);
-            }
-            me.readyState = FileWriter.DONE;
-            if (typeof me.onwriteend == "function") {
-                event = {"type":"writeend", "target":me};
-                me.onwriteend(event);
-            }
-        }            
-    );
-};
-
-/**
- * Writes the contents of a file to the device.
- * 
- * @param data      contents to be written
- */
-FileWriter.prototype.write = function(data) {
-    var event;
-    
-    // Throw an exception if we are already writing a file
-    if (this.readyState === FileWriter.WRITING) {
-        throw FileError.INVALID_STATE_ERR;
-    }
-
-    // WRITING state
-    this.readyState = FileWriter.WRITING;
-    if (typeof this.onwritestart == "function") {
-        event = {"type":"writestart", "target":this};
-        this.onwritestart(event);
-    }
-
-    // Write file
-    var me = this;
-    navigator.fileMgr.write(this.fileName, data, this.position,
-
-        // Success callback receives bytes written
-        function(result) {
-            // If DONE (canceled), then don't do anything
-            if (me.readyState === FileWriter.DONE) {
-                return;
-            }
-
-            // new length is maximum of old length, or position plus bytes written
-            me.length = Math.max(me.length, me.position + result);
-            // position always increases by bytes written because file would be extended
-            me.position += result;
-
-            // success procedure
-            if (typeof me.onwrite == "function") {
-                event = {"type":"write", "target":me};
-                me.onwrite(event);
-            }
-            me.readyState = FileWriter.DONE;
-            if (typeof me.onwriteend == "function") {
-                event = {"type":"writeend", "target":me};
-                me.onwriteend(event);
-            }
-        },
-
-        // Error callback
-        function(error) {
-            // If DONE (canceled), then don't do anything
-            if (me.readyState === FileWriter.DONE) {
-                return;
-            }
-
-            // Save error
-            var err = new FileError();
-            err.code = error;
-            me.error = err;
-
-            // error procedure
-            if (typeof me.onerror == "function") {
-                event = {"type":"error", "target":me};
-                me.onerror(event);
-            }
-            me.readyState = FileWriter.DONE;
-            if (typeof me.onwriteend == "function") {
-                event = {"type":"writeend", "target":me};
-                me.onwriteend(event);
-            }
-        }
-    );
-};

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/Res/cordova/geolocation.js
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/Res/cordova/geolocation.js b/lib/cordova-1.9.0/lib/bada/Res/cordova/geolocation.js
deleted file mode 100755
index 54ed215..0000000
--- a/lib/cordova-1.9.0/lib/bada/Res/cordova/geolocation.js
+++ /dev/null
@@ -1,152 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-/**
- * This class provides access to device GPS data.
- * @constructor
- */
-function Geolocation() {
-
-    // The last known GPS position.
-    this.lastPosition = null;
-    this.id = null;
-};
-
-/**
- * Position error object
- *
- * @param code
- * @param message
- */
-function PositionError(code, message) {
-    this.code = code || 0;
-    this.message = message || '';
-};
-
-PositionError.UNKNOWN_ERROR = 0;
-PositionError.PERMISSION_DENIED = 1;
-PositionError.POSITION_UNAVAILABLE = 2;
-PositionError.TIMEOUT = 3;
-
-/**
- * Asynchronously aquires the current position.
- *
- * @param {Function} successCallback    The function to call when the position data is available
- * @param {Function} errorCallback      The function to call when there is an error getting the heading position. (OPTIONAL)
- * @param {PositionOptions} options     The options for getting the position data. (OPTIONAL)
- */
-Geolocation.prototype.getCurrentPosition = function(successCallback, errorCallback, options) {
-    this.id = Cordova.createUUID();
-    // default maximumAge value should be 0, and set if positive 
-    var maximumAge = 0;
-
-    // default timeout value should be infinity, but that's a really long time
-    var timeout = 3600000; 
-
-    var enableHighAccuracy = false;
-    if (options) {
-        if (options.maximumAge && (options.maximumAge > 0)) {
-            maximumAge = options.maximumAge;
-        }
-        if (options.enableHighAccuracy) {
-            enableHighAccuracy = options.enableHighAccuracy;
-        }
-        if (options.timeout) {
-            timeout = (options.timeout < 0) ? 0 : options.timeout;
-        }
-    }
-    Cordova.exec(successCallback, errorCallback, "org.apache.cordova.Geolocation", "getCurrentPosition", [maximumAge, timeout, enableHighAccuracy]);
-}
-
-/**
- * Asynchronously watches the geolocation for changes to geolocation.  When a change occurs,
- * the successCallback is called with the new location.
- *
- * @param {Function} successCallback    The function to call each time the location data is available
- * @param {Function} errorCallback      The function to call when there is an error getting the location data. (OPTIONAL)
- * @param {PositionOptions} options     The options for getting the location data such as frequency. (OPTIONAL)
- * @return String                       The watch id that must be passed to #clearWatch to stop watching.
- */
-Geolocation.prototype.watchPosition = function(successCallback, errorCallback, options) {
-
-    // default maximumAge value should be 0, and set if positive 
-    var maximumAge = 0;
-
-    // DO NOT set timeout to a large value for watchPosition in BlackBerry.  
-    // The interval used for updates is half the timeout value, so a large 
-    // timeout value will mean a long wait for the first location.
-    var timeout = 10000; 
-
-    var enableHighAccuracy = false;
-    if (options) {
-        if (options.maximumAge && (options.maximumAge > 0)) {
-            maximumAge = options.maximumAge;
-        }
-        if (options.enableHighAccuracy) {
-            enableHighAccuracy = options.enableHighAccuracy;
-        }
-        if (options.timeout) {
-            timeout = (options.timeout < 0) ? 0 : options.timeout;
-        }
-    }
-    this.id = Cordova.createUUID();
-    Cordova.exec(successCallback, errorCallback, "org.apache.cordova.Geolocation", "watchPosition", [maximumAge, timeout, enableHighAccuracy]);
-    return this.id;
-};
-
-/**
- * Clears the specified position watch.
- *
- * @param {String} id       The ID of the watch returned from #watchPosition
- */
-Geolocation.prototype.clearWatch = function(id) {
-    Cordova.exec(null, null, "org.apache.cordova.Geolocation", "stop", []);
-    this.id = null;
-};
-
-/**
- * Force the Cordova geolocation to be used instead of built-in.
- */
-Geolocation.usingCordova = false;
-Geolocation.useCordova = function() {
-    if (Geolocation.usingCordova) {
-        return;
-    }
-    Geolocation.usingCordova = true;
-
-    // Set built-in geolocation methods to our own implementations
-    // (Cannot replace entire geolocation, but can replace individual methods)
-    navigator.geolocation.getCurrentPosition = navigator._geo.getCurrentPosition;
-    navigator.geolocation.watchPosition = navigator._geo.watchPosition;
-    navigator.geolocation.clearWatch = navigator._geo.clearWatch;
-    navigator.geolocation.success = navigator._geo.success;
-    navigator.geolocation.fail = navigator._geo.fail;
-};
-
-Cordova.addConstructor(function() {
-    navigator._geo = new Geolocation();
-
-    // if no native geolocation object, use Cordova geolocation
-    if (typeof navigator.geolocation == 'undefined') {
-        navigator.geolocation = navigator._geo;
-        Geolocation.usingCordova = true;
-    }
-});

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/Res/cordova/network.js
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/Res/cordova/network.js b/lib/cordova-1.9.0/lib/bada/Res/cordova/network.js
deleted file mode 100755
index d5b3b17..0000000
--- a/lib/cordova-1.9.0/lib/bada/Res/cordova/network.js
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-/**
- * Network status.
- */
-NetworkStatus = {
-  NOT_REACHABLE: 0,
-  REACHABLE_VIA_CARRIER_DATA_NETWORK: 1,
-  REACHABLE_VIA_WIFI_NETWORK: 2
-};
-
-/**
- * This class provides access to device Network data (reachability).
- * @constructor
- */
-function Network() {
-    /**
-     * The last known Network status.
-	 * { hostName: string, ipAddress: string, 
-		remoteHostStatus: int(0/1/2), internetConnectionStatus: int(0/1/2), localWiFiConnectionStatus: int (0/2) }
-     */
-	this.lastReachability = null;
-};
-
-/**
- * Determine if a URI is reachable over the network.
-
- * @param {Object} uri
- * @param {Function} callback
- * @param {Object} options  (isIpAddress:boolean)
- */
-Network.prototype.isReachable = function(uri, callback, options) {
-    var isIpAddress = false;
-    if (options && options.isIpAddress) {
-        isIpAddress = options.isIpAddress;
-    }
-    Cordova.exec(callback, null, 'org.apache.cordova.Network', 'isReachable', [uri, isIpAddress]);
-};
-
-/**
- * Called by the geolocation framework when the reachability status has changed.
- * @param {Reachibility} reachability The current reachability status.
- */
-// TODO: Callback from native code not implemented for Android
-Network.prototype.updateReachability = function(reachability) {
-    this.lastReachability = reachability;
-};
-
-Cordova.addConstructor(function() {
-	if (typeof navigator.network == "undefined") navigator.network = new Network();
-});

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/Res/cordova/notification.js
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/Res/cordova/notification.js b/lib/cordova-1.9.0/lib/bada/Res/cordova/notification.js
deleted file mode 100755
index d3c480f..0000000
--- a/lib/cordova-1.9.0/lib/bada/Res/cordova/notification.js
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-MessageBox.MSGBOX_STYLE_NONE = 0;
-MessageBox.MSGBOX_STYLE_OK = 1;
-MessageBox.MSGBOX_STYLE_CANCEL = 2;
-MessageBox.MSGBOX_STYLE_OKCANCEL = 3;
-MessageBox.MSGBOX_STYLE_YESNO = 4;
-MessageBox.MSGBOX_STYLE_YESNOCANCEL = 5;
-MessageBox.MSGBOX_STYLE_ABORTRETRYIGNORE = 6;
-MessageBox.MSGBOX_STYLE_CANCELTRYCONTINUE = 7;
-MessageBox.MSGBOX_STYLE_RETRYCANCEL = 8;
-
-/**
- * This class provides access to notifications on the device.
- */
-function Notification() {
-  this.messageBox = new MessageBox("Test Alert", "This is an alert", "OK");
-}
-
-/*
- * MessageBox: used by Bada to retrieve Dialog Information
- */
-
-function MessageBox(title, message, messageBoxStyle) {
-  this.title = title;
-  this.message = message;
-  this.messageBoxStyle = messageBoxStyle;
-}
-
-labelsToBoxStyle = function(buttonLabels) {
-  if(!buttonLabels)
-    return MessageBox.MSGBOX_STYLE_NONE;
-  if(buttonLabels == "OK")
-    return MessageBox.MSGBOX_STYLE_OK;
-  if(buttonLabels == "Cancel")
-    return MessageBox.MSGBOX_STYLE_CANCEL;
-  if(buttonLabels == "OK,Cancel")
-    return MessageBox.MSGBOX_STYLE_OKCANCEL;
-  if(buttonLabels == "Yes,No")
-    return MessageBox.MSGBOX_STYLE_YESNO;
-  if(buttonLabels == "Yes,No,Cancel")
-    return MessageBox.MSGBOX_STYLE_YESNOCANCEL;
-  if(buttonLabels == "Abort,Retry,Ignore")
-    return MessageBox.MSGBOX_STYLE_ABORTRETRYIGNORE;
-  if(buttonLabels == "Cancel,Try,Continue")
-    return MessageBox.MSGBOX_STYLE_CANCELTRYCONTINUE;
-  if(buttonLabels == "Retry,Cancel")
-    return MessageBox.MSGBOX_STYLE_RETRYCANCEL;
-
-  return MessageBox.MSGBOX_STYLE_NONE;
-}
-
-/**
- * Open a native alert dialog, with a customizable title and button text.
- * @param {String}   message          Message to print in the body of the alert
- * @param {Function} completeCallback The callback that is invoked when user clicks a button.
- * @param {String}   title            Title of the alert dialog (default: 'Alert')
- * @param {String}   buttonLabel      Label of the close button (default: 'OK')
- */
-Notification.prototype.alert = function(message, completeCallback, title, buttonLabel) {
-    var _title = (title || "Alert");
-    this.messageBox = new MessageBox(_title, message, labelsToBoxStyle(buttonLabel));
-    Cordova.exec(completeCallback, null, 'org.apache.cordova.Notification', 'alert', []);
-};
-
-/**
- * Open a custom confirmation dialog, with a customizable title and button text.
- * @param {String}  message         Message to print in the body of the dialog
- * @param {Function}resultCallback  The callback that is invoked when a user clicks a button.
- * @param {String}  title           Title of the alert dialog (default: 'Confirm')
- * @param {String}  buttonLabels    Comma separated list of the button labels (default: 'OK,Cancel')
- */
-Notification.prototype.confirm = function(message, resultCallback, title, buttonLabels) {
-    var _title = (title || "Confirm");
-    var _buttonLabels = (buttonLabels || "OK,Cancel");
-    this.messageBox = new MessageBox(_title, message, labelsToBoxStyle(buttonLabels));
-    return Cordova.exec(resultCallback, null, 'org.apache.cordova.Notification', 'confirm', []);
-};
-
-/**
- * Causes the device to vibrate.
- * @param {Integer} mills The number of milliseconds to vibrate for.
- */
-Notification.prototype.vibrate = function(mills) {
-    Cordova.exec(null, null, 'org.apache.cordova.Notification', 'vibrate', [mills]);
-};
-
-/**
- * Causes the device to beep.
- * @param {Integer} count The number of beeps.
- */
-Notification.prototype.beep = function(count) {
-    Cordova.exec(null, null, 'org.apache.cordova.Notification', 'beep', [count]);
-};
-
-Cordova.addConstructor(function() {
-    if (typeof navigator.notification == "undefined") navigator.notification = new Notification();
-});

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/Res/cordova/position.js
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/Res/cordova/position.js b/lib/cordova-1.9.0/lib/bada/Res/cordova/position.js
deleted file mode 100755
index 69d356f..0000000
--- a/lib/cordova-1.9.0/lib/bada/Res/cordova/position.js
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-/**
- * This class contains position information.
- * @param {Object} lat
- * @param {Object} lng
- * @param {Object} acc
- * @param {Object} alt
- * @param {Object} altacc
- * @param {Object} head
- * @param {Object} vel
- * @constructor
- */
-function Position(coords, timestamp) {
-	this.coords = coords;
-    this.timestamp = timestamp;
-}
-
-function PositionOptions(enableHighAccuracy, timeout, maximumAge, minimumAccuracy) {
-    this.enableHighAccuracy = enableHighAccuracy || false;
-    this.timeout = timeout || 10000000;
-    this.maximumAge = maximumAge || 0;
-    this.minimumAccuracy = minimumAccuracy || 10000000;
-}
-
-function Coordinates(lat, lng, alt, acc, head, vel, altacc) {
-	/**
-	 * The latitude of the position.
-	 */
-	this.latitude = lat || 0;
-	/**
-	 * The longitude of the position,
-	 */
-	this.longitude = lng || 0;
-	/**
-	 * The accuracy of the position.
-	 */
-	this.accuracy = acc || 0;
-	/**
-	 * The altitude of the position.
-	 */
-	this.altitude = alt || 0;
-	/**
-	 * The direction the device is moving at the position.
-	 */
-	this.heading = head || 0;
-	/**
-	 * The velocity with which the device is moving at the position.
-	 */
-	this.speed = vel || 0;
-	/**
-	 * The altitude accuracy of the position.
-	 */
-	this.altitudeAccuracy = (altacc != 'undefined') ? altacc : null; 
-}

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/Res/eng-GB.xml
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/Res/eng-GB.xml b/lib/cordova-1.9.0/lib/bada/Res/eng-GB.xml
deleted file mode 100755
index ceb27fa..0000000
--- a/lib/cordova-1.9.0/lib/bada/Res/eng-GB.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-
-<!--
-	This XML file was automatically generated by UiBuilder - do not modify by hand.
--->
-<string_table Bversion="1.2.1.v20101224" Dversion="20100701"/>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/Res/images/cordova_logo_normal_dark.png
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/Res/images/cordova_logo_normal_dark.png b/lib/cordova-1.9.0/lib/bada/Res/images/cordova_logo_normal_dark.png
deleted file mode 100755
index e41746e..0000000
Binary files a/lib/cordova-1.9.0/lib/bada/Res/images/cordova_logo_normal_dark.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/Res/index.html
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/Res/index.html b/lib/cordova-1.9.0/lib/bada/Res/index.html
deleted file mode 100755
index d3a8eb0..0000000
--- a/lib/cordova-1.9.0/lib/bada/Res/index.html
+++ /dev/null
@@ -1,108 +0,0 @@
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html>
-	<head>
-		<title>Cordova Test App</title>
-    <style type="text/css">
-      div { text-align: "center"; display: "block"}
-    </style>
-	</head>
-	<body>
-		 <h2><img src="images/cordova_logo_normal_dark.png" /></h2>
-     <ul id="debuglist">Debug Output</ul>
-     <!-- Camera -->
-     <h3>Camera</h3>
-     <div>
-        <input onclick="getPicture()" type="submit" value="Camera.getPicture">
-        <img src="" id="picture" width="128">
-     </div>
-     <!-- Geolocation -->
-     <div>
-       <h3>Geolocation</h3>
-        <input onclick="getCurrentPosition()" type="submit" value="GeoLocation.GetLastKnownLocation">
-        <input onclick="toggleWatchPosition(this)" type="submit" value="GeoLocation.StartWatching">
-        <div id="geolocation" style="display:none;">
-          altitude: 0,longitude: 0, altitude: 0
-        </div>
-     </div>
-     <!-- Accelerometer -->
-     <div>
-       <h3>Accelerometer</h3>
-        <input onclick="getCurrentAcceleration()" type="submit" value="Accelerometer.getCurrentAcceleration">
-        <input onclick="toggleStartAcceleration(this)" type="submit" value="Accelerometer.watchAcceleration">
-        <div id="accelerometer" style="display:none;">
-          x: 0, y: 0, z: 0, timestamp: 0 
-        </div>
-     </div>
-     <!-- Compass -->
-     <h3>Compass</h3>
-     <div>
-        <input onclick="getCurrentHeading()" type="submit" value="Compass.getCurrentHeading">
-        <input onclick="toggleStartCompass(this)" type="submit" value="Compass.watchHeading">
-        <div id="compass" style="display:none;">
-          x: 0, y: 0, z: 0, timestamp: 0 
-        </div>
-     </div>
-     <!-- Network -->
-     <div>
-        <h3>Network</h3>
-        <input onclick="hostIsReachable('http://phonegap.com')" type="submit" value="Network.isReachable">
-        <div id="network" style="display:none;">
-          Network Information
-        </div>
-     </div>
-     <div>
-     <!-- Device -->
-     <div>
-        <h3>Device</h3>
-        <input onclick="getSystemInfo()" type="submit" value="Device.GetSystemInfo">
-        <div id="system" style="display:none;">
-          System Information
-        </div>
-     </div>
-     <!-- DebugConsole -->
-     <div>
-        <h3>DebugConsole</h3>
-        <input type="text" id="log_statement" />
-        <input onclick="Log()" type="submit" value="console.log">
-     </div>
-     <!-- Contact -->
-     <h3>Contact</h3>
-     <div>
-        <input onclick="createContact()" type="submit" value="Contact.create">
-        <input onclick="saveContact()" type="submit" value="Contact.save">
-        <input onclick="findContact()" type="submit" value="Contact.find">
-        <input onclick="removeContacts()" type="submit" value="Contact.remove">
-     </div>
-     <!-- Notification -->
-     <h3>Notification</h3>
-     <div>
-        <input onclick="notificationAlert()" type="submit" value="Notification.alert">
-        <input onclick="notificationConfirm()" type="submit" value="Notification.confirm">
-        <input onclick="notificationVibrate()" type="submit" value="Notification.vibrate">
-        <input onclick="notificationBeep()" type="submit" value="Notification.beep">
-     </div>
-	</body>
-  <script type="text/javascript" src="cordova/cordova.js"></script>
-  <script type="text/javascript" src="main.js"></script>
-</html>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/Res/main.js
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/Res/main.js b/lib/cordova-1.9.0/lib/bada/Res/main.js
deleted file mode 100755
index e41a986..0000000
--- a/lib/cordova-1.9.0/lib/bada/Res/main.js
+++ /dev/null
@@ -1,390 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-/*
-* Cordova Sample App
-*
-*/
-
-// Geolocation
-var watchLocationID = null;
-
-function onGeoLocationSuccess(position) {
-    var element = document.getElementById('geolocation');
-    element.innerHTML = 'Latitude: '  + position.coords.latitude      + '<br />' +
-                        'Longitude: ' + position.coords.longitude     + '<br />' +
-                        '<hr />'      + element.innerHTML;
-}
-
-function onGeoLocationError(error) {
-    debugPrint('code: '    + error.code    + '\n' +
-          'message: ' + error.message + '\n');
-}
-function getCurrentPosition() {
-	var geolocation = document.getElementById('geolocation');
-	try {
-    Geolocation.useCordova();
-		geolocation.style.display = 'block';
-		navigator.geolocation.getCurrentPosition(onGeoLocationSuccess, onGeoLocationError, { frequency: 3000 });
-	} catch(e) {
-		alert(e.message);
-	}
-}
-function toggleWatchPosition(em) {
-	var geolocation = document.getElementById('geolocation');
-	if(em.value == "GeoLocation.StartWatching") {
-		em.value = "GeoLocation.StopWatching";
-		geolocation.style.display = 'block';
-		try {
-			Geolocation.useCordova();
-			watchLocationID = navigator.geolocation.watchPosition(onGeoLocationSuccess, onGeoLocationError, { frequency: 3000 });
-		} catch(e) {
-			alert(e.message);
-		}
-	} else {
-		em.value = "GeoLocation.StartWatching";
-		geolocation.style.display = 'none';
-		try {
-			navigator.geolocation.clearWatch(watchLocationID);
-			geolocation.innerHTML = '';
-		} catch(e) {
-			alert(e.message);
-		}
-	}
-}
-
-// Acceleration
-var watchAccelerationID = null;
-
-function onAccelerationSuccess(acceleration) {
-    var element = document.getElementById('accelerometer');
-    element.innerHTML = 'Acceleration X: ' + acceleration.x + '<br />' +
-                        'Acceleration Y: ' + acceleration.y + '<br />' +
-                        'Acceleration Z: ' + acceleration.z + '<br />' +
-                        'Timestamp: '      + acceleration.timestamp + '<br />';
-}
-
-function onAccelerationError() {
-    alert('onError!');
-}
-
-function startWatchAcceleration() {
-  var options = { frequency: 3000 };
-  watchAccelerationID = navigator.accelerometer.watchAcceleration(onAccelerationSuccess, onAccelerationError, options);
-}
-
-function stopWatchAcceleration() {
-    if (watchAccelerationID) {
-        navigator.accelerometer.clearWatch(watchAccelerationID);
-        watchAccelerationID = null;
-    }
-}
-
-function getCurrentAcceleration() {
-	var accelerometer = document.getElementById('accelerometer');
-	try {
-		accelerometer.style.display = 'block';
-		navigator.accelerometer.getCurrentAcceleration(onAccelerationSuccess, onAccelerationError, { frequency: 5000 });
-	} catch(e) {
-		alert(e.message);
-	}
-}
-
-
-function toggleStartAcceleration(em) {
-	try {
-		var accelerometer = document.getElementById('accelerometer');
-		if(em.value == "Accelerometer.watchAcceleration") {
-			em.value = "Accelerometer.clearWatch";
-			accelerometer.style.display = 'block';
-			startWatchAcceleration();
-		} else {
-			em.value = "Accelerometer.watchAcceleration";
-			accelerometer.style.display = 'none';
-			stopWatchAcceleration();
-		}
-	}
-	catch(e) {
-		alert(e.message);
-	}
-}
-// Utility Function
-function debugPrint(body) {
-    var list = document.getElementById("debuglist");
-    var item = document.createElement("li");
-    item.appendChild(document.createTextNode(body));
-    list.appendChild(item);
-}
-
-// Stock Browser Test (Any URL request launches Stock browser) 
-function launchExternalBrowser() {
-  window.location = "http://www.phonegap.com";
-}
-
-
-// Network
-function hostIsReachable() {
-  try {
-    var network = document.getElementById('network');
-    var callback = function(reachability) {
-      console.log(reachability);
-      var networkState = reachability.code;
-      var http_code = reachability.http_code;
-      var states = [];
-      states[NetworkStatus.NOT_REACHABLE]                      = 'No network connection';
-      states[NetworkStatus.REACHABLE_VIA_CARRIER_DATA_NETWORK] = 'Carrier data connection';
-      states[NetworkStatus.REACHABLE_VIA_WIFI_NETWORK]         = 'WiFi connection';
-      network.style.display = 'block';
-      network.innerHTML = 'Code: '+reachability.code+' Connection type: '+states[networkState];
-    }
-    navigator.network.isReachable("http://phonegap.com", callback, {});
-  } catch(e) {
-    debugPrint("hostIsReachable(): "+e.message);
-  }
-}
-
-// System
-function getSystemInfo() {
-  try {
-    var system = document.getElementById("system");
-    system.style.display = "block";
-    system.innerHTML = 'Device Name: '     + device.name     + '<br />' + 
-                       'Device Cordova: '  + device.cordova + '<br />' + 
-                       'Device Platform: ' + device.platform + '<br />' + 
-                       'Device UUID: '     + device.uuid     + '<br />' + 
-                       'Device Version: '  + device.version  + '<br />';
-  } catch(e) {
-    debugPrint("Error Occured: "+e.message);
-  }
-  
-}
-
-// DebugConsole 
-function Log() {
-  var log_statement = document.getElementById("log_statement").value;
-  console.log(log_statement); 
-  console.warn(log_statement); 
-  console.error(log_statement); 
-  console.log({test:'pouet', test2:['pouet1', 'pouet2']});
-}
-
-// Contacts
-function createContact() {
-  var myContact = navigator.service.contacts.create({displayName: "Test User"});
-  myContact.gender = "male";
-  console.log("The contact, "+myContact.displayName + ", is of the "+myContact.gender +" gender");
-}
-
-function saveContact() {
-  try {
-    var onSuccess = function(result) {
-      debugPrint("Save Success: "+result.message);
-    };
-    var onError = function(contactError) {
-      debugPrint("Error = "+contactError.code);
-    };
-    var contact = navigator.service.contacts.create();
-    contact.name = new ContactName();
-    contact.name.familyName = "Doe";
-    contact.name.givenName = "John";
-    contact.displayName = "John Doe";
-    contact.nickname = "Plumber";
-    contact.phoneNumbers = [new ContactField("Mobile", "6047894567"), new ContactField("Home", "7789989674"), new ContactField("Other", "7789989673")];
-    contact.emails = [new ContactField("Personal", "nomail@noset.com"), new ContactField("Work", "nomail2@noset.com"), new ContactField("Other", "nomail3@noset.com")];
-    contact.urls = [new ContactField("Work", "http://www.domain.com"), new ContactField("Personal", "http://www.domain2.com")];
-    contact.organization = new ContactOrganization();
-    contact.organization.name = "Nitobi Software Inc";
-    contact.organization.title = "Software Engineer";
-    contact.birthday = new Date();
-    contact.address = new ContactAddress();
-    contact.address.streetAddress = "200 Abbott Street";
-    contact.address.locality = "Vancouver";
-    contact.address.region = "BC";
-    contact.address.postalCode = "V6Z2X6";
-    contact.address.country = "Canada";
-    contact.save(onSuccess, onError);
-  } catch(e) {
-    debugPrint("Error Occured: "+e.message);
-  }
-}
-
-function findContact() {
-  try {
-    var onSuccess = function(contacts) {
-      debugPrint("Found "+contacts.length+" contacts.");
-//      var contacts = navigator.service.contacts.results;
-//      var contactStr = "IDs found: "
-//      for(i in contacts) {
-//        contactStr += contacts[i].id + " ";
-//      }
-//      debugPrint(contactStr);
-    };
-    var onFailure = function() {
-      debugPrint("ERROR");
-    };
-    navigator.service.contacts.find(["displayName", "firstName"], onSuccess, onFailure, {filter:"7789989674"});
-  } catch(e) {
-    debugPrint("Error Occured: "+e.message);
-  }
-}
-
-function removeContacts() {
-  try {
-    var onSuccess = function(result) {
-      debugPrint(result.message);
-    };
-    var onFailure = function(result) {
-      debugPrint("ERROR in Removing Contact: "+result.message);
-    };
-    var toRemove = navigator.service.contacts.results;
-    while(toRemove.length > 0) {
-      var contact = toRemove.shift();
-      contact.remove(onSuccess, onFailure);
-    }
-  } catch(e) {
-    debugPrint("Error Occured in remove Contact: "+e.message);
-  }
-}
-
-// Compass
-var watchCompassId = null;
-
-function startWatchCompass() {
-  var options = { frequency: 3000 };
-  var onSuccess = function(compass) {
-      var element = document.getElementById('compass');
-      element.innerHTML = 'Compass X: ' + compass.x + '<br />' +
-                          'Compass Y: ' + compass.y + '<br />' +
-                          'Compass Z: ' + compass.z + '<br />' +
-                          'Timestamp: '      + compass.timestamp + '<br />';
-  };
-
-  var onFail = function() {
-      debugPrint('Compass Error!');
-  };
-  watchCompassId = navigator.compass.watchHeading(onSuccess, onFail, options);
-}
-
-function stopWatchCompass() {
-    try {
-      navigator.compass.clearWatch(watchCompassId);
-      watchCompassId= null;
-    } catch(e) {
-      debugPrint("stopWatchCompass: "+e.message);
-    }
-}
-
-function getCurrentHeading() {
-	try {
-    var compass = document.getElementById('compass');
-    var onSuccess = function(compass) {
-        var element = document.getElementById('compass');
-        element.innerHTML = 'Compass X: ' + compass.x + '<br />' +
-                            'Compass Y: ' + compass.y + '<br />' +
-                            'Compass Z: ' + compass.z + '<br />' +
-                            'Timestamp: ' + compass.timestamp + '<br />';
-    }
-
-    var onFail = function() {
-        debugPrint('Compass Error!');
-    }
-		compass.style.display = 'block';
-		navigator.compass.getCurrentHeading(onSuccess, onFail, { frequency: 5000 });
-	} catch(e) {
-		alert(e.message);
-	}
-}
-
-
-function toggleStartCompass(em) {
-	try {
-		var compass = document.getElementById('compass');
-		if(em.value == "Compass.watchHeading") {
-			em.value = "Compass.clearWatch";
-			compass.style.display = 'block';
-			startWatchCompass();
-		} else {
-			em.value = "Compass.watchHeading";
-			compass.style.display = 'none';
-			stopWatchCompass();
-		}
-	}
-	catch(e) {
-		alert(e.message);
-	}
-}
-
-// Notification
-
-function notificationAlert() {
-  var complete = function(button) {
-    debugPrint("Alert button clicked: "+button);
-  }
-  try {
-    navigator.notification.alert("This is an alert Dialog",complete, "Alert Title", "OK");
-  } catch(e) {
-    debugPrint(e.message);
-  }
-}
-
-function notificationConfirm() {
-  var complete = function(button) {
-    debugPrint("Alert button clicked: "+button);
-  }
-  try {
-    navigator.notification.confirm("This is an alert Dialog",complete, "Alert Title", "OK,Cancel");
-  } catch(e) {
-    debugPrint(e.message);
-  }
-}
-
-function notificationVibrate() {
-  try {
-    navigator.notification.vibrate(3000);
-  } catch(e) {
-    debugPrint(e.message);
-  }
-}
-function notificationBeep() {
-  try {
-    navigator.notification.beep(4);
-  } catch(e) {
-    debugPrint(e.message);
-  }
-}
-
-// Camera
-
-function getPicture() {
-  try {
-    var successCallback = function(uri) {
-      var image = document.getElementById("picture");
-      debugPrint(uri);
-      image.src = uri;
-    }
-    var errorCallback = function(message) {
-      debugPrint("Camera Failed: "+message);
-    }
-    navigator.camera.getPicture(successCallback, errorCallback, {});
-  } catch(e) {
-    debugPring(e.message);
-  }
-}

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/VERSION
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/VERSION b/lib/cordova-1.9.0/lib/bada/VERSION
deleted file mode 100755
index f8e233b..0000000
--- a/lib/cordova-1.9.0/lib/bada/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-1.9.0

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/application.xml
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/application.xml b/lib/cordova-1.9.0/lib/bada/application.xml
deleted file mode 100755
index 65695e7..0000000
--- a/lib/cordova-1.9.0/lib/bada/application.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-
-<Application>
-    <Entry>Cordova</Entry>
-    <Name>
-        <English>Cordova</English>
-        <eng-GB>Cordova</eng-GB>
-    </Name>
-    <Vendor/>
-    <Description/>
-    <Icons>
-        <MainMenu>Cordova.png<Type1>Cordova.png</Type1>
-            <Type2/>
-        </MainMenu>
-        <Setting/>
-        <Ticker/>
-        <QuickPanel/>
-        <LaunchImage>Cordova_Splash.png<Type1>Cordova_Splash.png</Type1>
-            <Type2/>
-        </LaunchImage>
-    </Icons>
-    <AutoScaling>
-        <Enabled>false</Enabled>
-    </AutoScaling>
-</Application>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/inc/Accelerometer.h
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/inc/Accelerometer.h b/lib/cordova-1.9.0/lib/bada/inc/Accelerometer.h
deleted file mode 100755
index 353bec8..0000000
--- a/lib/cordova-1.9.0/lib/bada/inc/Accelerometer.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Accelerometer.h
- *
- *  Created on: Mar 8, 2011
- *      Author: Anis Kadri <anis@adobe.com>
- *
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- */
-
-#ifndef ACCELEROMETER_H_
-#define ACCELEROMETER_H_
-
-#include "CordovaCommand.h"
-#include <FUix.h>
-
-using namespace Osp::Uix;
-
-class Accelerometer: public CordovaCommand, ISensorEventListener
- {
-public:
-	Accelerometer();
-	Accelerometer(Web* pWeb);
-	virtual ~Accelerometer();
-public:
-	virtual void Run(const String& command);
-	bool StartSensor(void);
-	bool StopSensor(void);
-	bool IsStarted(void);
-	void GetLastAcceleration(void);
-	void OnDataReceived(SensorType sensorType, SensorData& sensorData, result r);
-private:
-	SensorManager __sensorMgr;
-	bool started;
-	String callbackId;
-	float x, y, z;
-	long timestamp;
-};
-
-#endif /* ACCELEROMETER_H_ */

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/inc/Compass.h
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/inc/Compass.h b/lib/cordova-1.9.0/lib/bada/inc/Compass.h
deleted file mode 100755
index cfa22a4..0000000
--- a/lib/cordova-1.9.0/lib/bada/inc/Compass.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Compass.h
- *
- *  Created on: Mar 25, 2011
- *      Author: Anis Kadri <anis@adobe.com>
- *
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- */
-
-#ifndef COMPASS_H_
-#define COMPASS_H_
-
-#include <FUix.h>
-#include "CordovaCommand.h"
-
-using namespace Osp::Uix;
-
-class Compass: public CordovaCommand, ISensorEventListener {
-public:
-	Compass(Web* pWeb);
-	virtual ~Compass();
-public:
-	void Run(const String& command);
-	bool StartSensor(void);
-	bool StopSensor(void);
-	bool IsStarted(void);
-	void GetLastHeading(void);
-	void OnDataReceived(SensorType sensorType, SensorData& sensorData, result r);
-private:
-	SensorManager __sensorMgr;
-	bool started;
-	String callbackId;
-	float x, y, z;
-	long timestamp;
-};
-
-#endif /* COMPASS_H_ */

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/inc/Contacts.h
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/inc/Contacts.h b/lib/cordova-1.9.0/lib/bada/inc/Contacts.h
deleted file mode 100755
index 2478011..0000000
--- a/lib/cordova-1.9.0/lib/bada/inc/Contacts.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Contacts.h
- *
- *  Created on: Mar 25, 2011
- *      Author: Anis Kadri <anis@adobe.com>
- *
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- */
-
-#ifndef CONTACTS_H_
-#define CONTACTS_H_
-
-#include <FSocial.h>
-#include "CordovaCommand.h"
-using namespace Osp::Social;
-using namespace Osp::Base::Collection;
-
-class Contacts: public CordovaCommand {
-public:
-	Contacts(Web* pWeb);
-	virtual ~Contacts();
-public:
-	void Run(const String& command);
-	void Create(const int contactId);
-	void Find(const String& filter);
-	void Remove(const String& id);
-private:
-	String callbackId;
-private:
-	void SetNickname(Contact& contact, const int cid);
-	void SetFirstName(Contact& contact, const int cid);
-	void SetLastName(Contact& contact, const int cid);
-	void SetPhoneNumbers(Contact& contact, const int cid);
-	void SetEmails(Contact& contact, const int cid);
-	void SetUrls(Contact& contact, const int cid);
-	void SetOrganization(Contact& contact, const int cid);
-	void SetBirthday(Contact& contact, const int cid);
-	void SetAddress(Contact& contact, const int cid);
-
-	void FindByName(const String& filter);
-	void FindByEmail(const String& filter);
-	void FindByPhoneNumber(const String& filter);
-	void UpdateSearch(Contact* contact) const;
-
-};
-
-#endif /* CONTACTS_H_ */

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/inc/Cordova.h
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/inc/Cordova.h b/lib/cordova-1.9.0/lib/bada/inc/Cordova.h
deleted file mode 100755
index 1145ee8..0000000
--- a/lib/cordova-1.9.0/lib/bada/inc/Cordova.h
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-#ifndef __CORDOVA_H__
-#define __CORDOVA_H__
-
-
-#include <FApp.h>
-#include <FBase.h>
-#include <FSystem.h>
-#include <FUi.h>
-
-/**
- * [WebBasedApp] application must inherit from Application class
- * which provides basic features necessary to define an application.
- */
-class Cordova :
-	public Osp::App::Application,
-	public Osp::System::IScreenEventListener
-{
-public:
-
-	/**
-	 * [Cordova] application must have a factory method that creates an instance of itself.
-	 */
-	static Osp::App::Application* CreateInstance(void);
-
-
-public:
-	Cordova();
-	~Cordova();
-
-
-public:
-
-
-	// Called when the application is initializing.
-	bool OnAppInitializing(Osp::App::AppRegistry& appRegistry);
-
-	// Called when the application is terminating.
-	bool OnAppTerminating(Osp::App::AppRegistry& appRegistry, bool forcedTermination = false);
-
-
-	// Called when the application's frame moves to the top of the screen.
-	void OnForeground(void);
-
-
-	// Called when this application's frame is moved from top of the screen to the background.
-	void OnBackground(void);
-
-	// Called when the system memory is not sufficient to run the application any further.
-	void OnLowMemory(void);
-
-	// Called when the battery level changes.
-	void OnBatteryLevelChanged(Osp::System::BatteryLevel batteryLevel);
-
-	// Called when the screen turns on.
-	void OnScreenOn (void);
-
-	// Called when the screen turns off.
-	void OnScreenOff (void);
-};
-
-#endif	//__CORDOVA_H__

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/inc/CordovaCommand.h
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/inc/CordovaCommand.h b/lib/cordova-1.9.0/lib/bada/inc/CordovaCommand.h
deleted file mode 100755
index 374cd51..0000000
--- a/lib/cordova-1.9.0/lib/bada/inc/CordovaCommand.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * CordovaCommand.h
- *
- *  Created on: Mar 7, 2011
- *      Author: Anis Kadri <anis@adobe.com>
- *
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- */
-
-#ifndef CORDOVACOMMAND_H_
-#define CORDOVACOMMAND_H_
-
-#include <FWeb.h>
-#include <FBase.h>
-
-using namespace Osp::Web::Controls;
-using namespace Osp::Base;
-using namespace Osp::Base::Utility;
-
-class CordovaCommand {
-public:
-	CordovaCommand();
-	CordovaCommand(Web* pWeb);
-	virtual ~CordovaCommand();
-protected:
-	Web* pWeb;
-public:
-	virtual void Run(const String& command) =0;
-};
-
-#endif /* CORDOVACOMMAND_H_ */

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/inc/DebugConsole.h
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/inc/DebugConsole.h b/lib/cordova-1.9.0/lib/bada/inc/DebugConsole.h
deleted file mode 100755
index e4b5ba7..0000000
--- a/lib/cordova-1.9.0/lib/bada/inc/DebugConsole.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * DebugConsole.h
- *
- *  Created on: Mar 24, 2011
- *      Author: Anis Kadri <anis@adobe.com>
- *
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- */
-
-#ifndef DEBUGCONSOLE_H_
-#define DEBUGCONSOLE_H_
-
-#include "CordovaCommand.h"
-
-class DebugConsole: public CordovaCommand {
-public:
-	DebugConsole(Web* pWeb);
-	virtual ~DebugConsole();
-public:
-	void Run(const String& command);
-private:
-	void CleanUp(String& str);
-	void Log(String& statement, String& logLevel);
-};
-
-#endif /* DEBUGCONSOLE_H_ */

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/inc/Device.h
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/inc/Device.h b/lib/cordova-1.9.0/lib/bada/inc/Device.h
deleted file mode 100755
index 323cf95..0000000
--- a/lib/cordova-1.9.0/lib/bada/inc/Device.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Device.h
- *
- *  Created on: Mar 8, 2011
- *      Author: Anis Kadri <anis@adobe.com>
- *
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- */
-
-#ifndef DEVICE_H_
-#define DEVICE_H_
-
-#include "CordovaCommand.h"
-#include <FSystem.h>
-
-using namespace Osp::System;
-
-class Device: public CordovaCommand {
-public:
-	Device();
-	Device(Web* pWeb);
-	virtual ~Device();
-public:
-	result SetDeviceInfo();
-	virtual void Run(const String& command);
-};
-
-#endif /* DEVICE_H_ */

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/inc/GeoLocation.h
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/inc/GeoLocation.h b/lib/cordova-1.9.0/lib/bada/inc/GeoLocation.h
deleted file mode 100755
index d03a9b9..0000000
--- a/lib/cordova-1.9.0/lib/bada/inc/GeoLocation.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * GeoLocation.h
- *
- *  Created on: Mar 7, 2011
- *      Author: Anis Kadri <anis@adobe.com>
- *
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- */
-
-#ifndef GEOLOCATION_H_
-#define GEOLOCATION_H_
-
-#include "CordovaCommand.h"
-#include <FLocations.h>
-
-using namespace Osp::Locations;
-
-class GeoLocation: public CordovaCommand, ILocationListener {
-private:
-	LocationProvider* locProvider;
-	bool			  watching;
-	String			  callbackId;
-public:
-	GeoLocation();
-	GeoLocation(Web* pWeb);
-	virtual ~GeoLocation();
-public:
-	void StartWatching();
-	void StopWatching();
-	bool IsWatching();
-	void GetLastKnownLocation();
-	virtual void OnLocationUpdated(Location& location);
-	virtual void OnProviderStateChanged(LocProviderState newState);
-	virtual void Run(const String& command);
-};
-
-#endif /* GEOLOCATION_H_ */

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/inc/Kamera.h
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/inc/Kamera.h b/lib/cordova-1.9.0/lib/bada/inc/Kamera.h
deleted file mode 100755
index cd622c5..0000000
--- a/lib/cordova-1.9.0/lib/bada/inc/Kamera.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Kamera.h
- *
- *  Created on: Apr 19, 2011
- *      Author: Anis Kadri <anis@adobe.com>
- *
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- */
-
-
-#ifndef KAMERA_H_
-#define KAMERA_H_
-
-#include "CordovaCommand.h"
-#include <FApp.h>
-#include <FIo.h>
-
-using namespace Osp::App;
-using namespace Osp::Base::Collection;
-using namespace Osp::Io;
-
-class Kamera: public CordovaCommand, IAppControlEventListener {
-public:
-	Kamera(Web* pWeb);
-	virtual ~Kamera();
-public:
-	String callbackId;
-public:
-	void Run(const String& command);
-	void GetPicture();
-	void OnAppControlCompleted (const String &appControlId, const String &operationId, const IList *pResultList);
-};
-
-#endif /* KAMERA_H_ */

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/inc/Network.h
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/inc/Network.h b/lib/cordova-1.9.0/lib/bada/inc/Network.h
deleted file mode 100755
index 0424812..0000000
--- a/lib/cordova-1.9.0/lib/bada/inc/Network.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Network.h
- *
- *  Created on: Mar 23, 2011
- *      Author: Anis Kadri <anis@adobe.com>
- *
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- */
-
-#ifndef NETWORK_H_
-#define NETWORK_H_
-
-#include "CordovaCommand.h"
-#include <FNet.h>
-#include <FSystem.h>
-
-using namespace Osp::Net;
-using namespace Osp::Net::Http;
-using namespace Osp::System;
-
-class Network: public CordovaCommand, public IHttpTransactionEventListener  {
-public:
-	Network(Web* pWeb);
-	virtual ~Network();
-public:
-	virtual void Run(const String& command);
-	bool IsReachable(const String& hostAddr, const String& callbackId);
-public:
-	virtual void 	OnTransactionAborted (HttpSession &httpSession, HttpTransaction &httpTransaction, result r);
-	virtual void 	OnTransactionCertVerificationRequiredN (HttpSession &httpSession, HttpTransaction &httpTransaction, Osp::Base::String *pCert) {};
-	virtual void 	OnTransactionCompleted (HttpSession &httpSession, HttpTransaction &httpTransaction);
-	virtual void 	OnTransactionHeaderCompleted (HttpSession &httpSession, HttpTransaction &httpTransaction, int headerLen, bool bAuthRequired) {};
-	virtual void 	OnTransactionReadyToRead (HttpSession &httpSession, HttpTransaction &httpTransaction, int availableBodyLen) {};
-	virtual void 	OnTransactionReadyToWrite (HttpSession &httpSession, HttpTransaction &httpTransaction, int recommendedChunkSize) {};
-private:
-	void IsReachable(const String& hostAddr);
-	HttpSession* __pHttpSession;
-	String callbackId;
-};
-
-#endif /* NETWORK_H_ */

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/inc/Notification.h
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/inc/Notification.h b/lib/cordova-1.9.0/lib/bada/inc/Notification.h
deleted file mode 100755
index 1274b34..0000000
--- a/lib/cordova-1.9.0/lib/bada/inc/Notification.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Notification.h
- *
- *  Created on: Apr 5, 2011
- *      Author: Anis Kadri <anis@adobe.com>
- *
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- */
-
-#ifndef NOTIFICATION_H_
-#define NOTIFICATION_H_
-
-#include <FUi.h>
-#include <FUix.h>
-#include <FSystem.h>
-#include "CordovaCommand.h"
-using namespace Osp::System;
-using namespace Osp::Ui;
-using namespace Osp::Ui::Controls;
-using namespace Osp::Uix;
-
-class Notification: public CordovaCommand {
-public:
-	Notification(Web* pWeb);
-	virtual ~Notification();
-public:
-	String callbackId;
-public:
-	void Run(const String& command);
-	void Dialog();
-	void Vibrate(const long milliseconds);
-	void Beep(const int count);
-};
-
-#endif /* NOTIFICATION_H_ */

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/inc/WebForm.h
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/inc/WebForm.h b/lib/cordova-1.9.0/lib/bada/inc/WebForm.h
deleted file mode 100755
index 1c1bbfa..0000000
--- a/lib/cordova-1.9.0/lib/bada/inc/WebForm.h
+++ /dev/null
@@ -1,97 +0,0 @@
-/*
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- */
-
-#ifndef _WEBFORM_H_
-#define _WEBFORM_H_
-
-#include <FApp.h>
-#include <FBase.h>
-#include <FUi.h>
-#include <FWeb.h>
-#include <FSystem.h>
-#include "CordovaCommand.h"
-#include "GeoLocation.h"
-#include "Device.h"
-#include "Accelerometer.h"
-#include "Network.h"
-#include "DebugConsole.h"
-#include "Compass.h"
-#include "Contacts.h"
-#include "Notification.h"
-#include "Kamera.h"
-
-using namespace Osp::Base;
-using namespace Osp::Base::Collection;
-using namespace Osp::App;
-using namespace Osp::Ui;
-using namespace Osp::Ui::Controls;
-using namespace Osp::System;
-using namespace Osp::Graphics;
-using namespace Osp::Web::Controls;
-
-class WebForm :
-	public Osp::Ui::Controls::Form,
-	public Osp::Ui::IActionEventListener,
-	public Osp::Web::Controls::ILoadingListener
-{
-
-// Construction
-public:
-	WebForm(void);
-	virtual ~WebForm(void);
-	bool Initialize(void);
-
-// Implementation
-private:
-	result CreateWebControl(void);
-
-	Osp::Web::Controls::Web*	__pWeb;
-	GeoLocation*                geolocation;
-	Device*						device;
-	Accelerometer*              accel;
-	Network*					network;
-	DebugConsole*				console;
-	Compass*					compass;
-	Contacts*					contacts;
-	Notification*				notification;
-	Kamera*						camera;
-	String*						__cordovaCommand;
-
-public:
-	virtual result OnInitializing(void);
-	virtual result OnTerminating(void);
-	virtual void OnActionPerformed(const Osp::Ui::Control& source, int actionId);
-
-public:
-	virtual void  OnEstimatedProgress (int progress) {};
-	virtual void  OnHttpAuthenticationCanceled (void) {};
-	virtual bool  OnHttpAuthenticationRequestedN (const Osp::Base::String &host, const Osp::Base::String &realm, const Osp::Web::Controls::AuthenticationChallenge &authentication) { return false; };
-	virtual void  OnLoadingCanceled (void) {};
-	virtual void  OnLoadingCompleted (void);
-	virtual void  OnLoadingErrorOccurred (LoadingErrorType error, const Osp::Base::String &reason) {};
-	virtual bool  OnLoadingRequested (const Osp::Base::String &url, WebNavigationType type);
-	virtual void  OnLoadingStarted (void) {};
-	virtual void  OnPageTitleReceived (const Osp::Base::String &title) {};
-	virtual DecisionPolicy  OnWebDataReceived (const Osp::Base::String &mime, const Osp::Net::Http::HttpHeader &httpHeader) { return WEB_DECISION_CONTINUE; };
-
-	virtual void LaunchBrowser(const String& url);
-
-};
-
-#endif	//_WebForm_H_

http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/244fae11/lib/cordova-1.9.0/lib/bada/manifest.xml
----------------------------------------------------------------------
diff --git a/lib/cordova-1.9.0/lib/bada/manifest.xml b/lib/cordova-1.9.0/lib/bada/manifest.xml
deleted file mode 100755
index 6afecf0..0000000
--- a/lib/cordova-1.9.0/lib/bada/manifest.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version='1.0' ?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-
-<Manifest>
-    <Id>5rb676500n</Id>
-    <Secret>93BA6FAC43ED18005711B434DCFC713C</Secret>
-  <AppVersion>1.0.0</AppVersion>
-  <ManifestVersion>1.1</ManifestVersion>
-    <Privileges>
-        <Privilege>
-            <Name>LOCATION</Name>
-        </Privilege>
-        <Privilege>
-            <Name>HTTP</Name>
-        </Privilege>
-        <Privilege>
-            <Name>ADDRESSBOOK</Name>
-        </Privilege>
-        <Privilege>
-            <Name>SYSTEM_SERVICE</Name>
-        </Privilege>
-        <Privilege>
-            <Name>WEB_SERVICE</Name>
-        </Privilege>
-    </Privileges>
-    <DeviceProfile>
-        <APIVersion>1.2</APIVersion>
-        <CPU>Cortex8</CPU>
-        <Accelerator3D>OpenGL-ES1.1</Accelerator3D>
-        <Accelerator3D>OpenGL-ES2.0</Accelerator3D>
-        <ScreenSize>480x800</ScreenSize>
-        <Connectivity>Bluetooth</Connectivity>
-        <Connectivity>Wi-Fi</Connectivity>
-        <Sensor>GPS</Sensor>
-        <Sensor>Wi-Fi_and_cell-based_positioning</Sensor>
-        <Sensor>Magnetic</Sensor>
-        <Sensor>Proximity</Sensor>
-        <Sensor>Accelerometer</Sensor>
-        <Sensor>Tilt</Sensor>
-        <UserInteraction>Vibration-effects</UserInteraction>
-    </DeviceProfile>
-</Manifest>


Mime
View raw message