Class of utility functions. More...
Inherits QObject.
Static Public Member Functions | |
| static Number | ExecuteProgram (String filename, Array< String > arg=Array< String >()) |
| static Number | ExecuteProgram (String filename, String arg) |
| static QJSValue | fetch (String url, Number timeout=30000) |
| static QJSValue | fetch (String url, QJSValue options, Number timeout=30000) |
| static QJSValue | fetchMultipart (String url, QJSValue formData, Number timeout=30000) |
| static String | GenerateName (String name="", String prefix="", String suffix="") |
| static void | ImportJS (String dir, String name) |
| static void | ImportJS (String name) |
Class of utility functions.
|
static |
Execute an external program, and waits the program exits
| [in] | filename | path of the executable |
| [in] | arg | optional arguments for the executable |
|
static |
Execute an external program with arguments formatted in a single string
| [in] | filename | path of the executable |
| [in] | arg | string of arguments |
|
static |
Perform HTTP fetch request (simple GET)
| [in] | url | URL to fetch |
| [in] | timeout | time out in milliseconds |
|
static |
Perform HTTP fetch request with options (similar to JavaScript fetch)
| [in] | url | URL to fetch |
| [in] | options | Options object with method, headers, body |
| [in] | timeout | time out in milliseconds |
|
static |
Perform HTTP multipart/form-data request with files and JSON data
| [in] | url | URL to post to |
| [in] | formData | FormData object with data and files arrays |
| [in] | timeout | time out in milliseconds |
|
static |
Generate a name not already existing in database
Output: GO2cam_robot, if already exist in Bdd -> GO2cam_robot_1
| [in] | name | |
| [in] | prefix | |
| [in] | suffix |
|
static |
Import another script and execute it
| [in] | dir | path of the include file |
| [in] | name | file name of the include file |
|
static |
Import another script and execute it
| [in] | name | fullName of the include file |