night mode,
[wl-mobile.git] / assets / www / js / downloader.js
1 /**
2  *  
3  * @return Object literal singleton instance of Downloader
4  */
5 var Downloader = { 
6         /**
7      * @param fileUrl
8      * @param dirName
9      * @param fileName
10      * @param overwrite
11      * @param win
12      * @param fail
13      */
14         downloadFile: function(fileUrl,dirName,fileName,overwrite,win,fail) {
15                 if(overwrite==false) overwrite="false";
16                 else overwrite="true";
17                 return PhoneGap.exec(win, fail, "Downloader", "downloadFile", [fileUrl,dirName,fileName,overwrite]);
18         }
19 };