| 610 | } |
| 611 | |
| 612 | bool JavaScriptAPI::renameFile(QString oldFileName, QString newFileName) |
| 613 | { |
| 614 | QFile oldFile(winOS->GetUserApplicationDataPath().absoluteFilePath(oldFileName)); |
| 615 | QFile newFile(winOS->GetUserApplicationDataPath().absoluteFilePath(newFileName)); |
| 616 | |
| 617 | if(oldFile.rename(newFile.fileName())) |
| 618 | return true; |
| 619 | |
| 620 | return false; |
| 621 | } |
| 622 | |
| 623 | // Launch the given URL in a web browser |
| 624 | void JavaScriptAPI::openInBrowser( QString url ) |