Starts and runs the application. More...
Public Member Functions | |
Ctors & Dtors | |
| AppRunner () | |
| Ctor. | |
| virtual | ~AppRunner () |
| Dtor. | |
Application Execution Related | |
| void | init (bool a_useConsoleLog, const Data::VariantRow &a_cmdOptions) |
| Passes in the command options associated with the AppRunner. | |
| void | start () |
| Starts the App runner in its own thread. | |
| void | restart () |
| Restarts Tonido. | |
| void | stop () |
| Stops Tonido. | |
| void | logout () |
| Logs out the currently logged in profile user. | |
| void | waitForAppStart () |
| Blocks till app has completely started. | |
| void | enableNetwork (bool a_enable) |
| Enables or disables all Tonido network activity. | |
| void | HTTPAccess (Tonido::Defs::HTTPAccessLevel a_level) |
| Sets HTTP Server Access level. | |
| void | showUIOnLaunch (bool a_show) |
| Sets whether to show the UI on launch. | |
| void | showNotifications (bool a_show) |
| Sets whether to show notifications. | |
| void | networkSpeedLimit (uint32_bt a_speed) |
| Set Curent Network Speed Limit. | |
Application State Query Functions | |
| bool | startupDone () |
| Whether the startup sequence was done. | |
| bool | needsRestart () |
| Whether the patching system determined that the system needed a restart. | |
| bool | started () |
| Whether application has started. | |
| bool | isNetworkEnabled () |
| Whether Network is enabled. | |
| Tonido::Defs::HTTPAccessLevel | HTTPAccess () |
| Returns status of Tonido Web server. | |
| bool | shutdownRequested () |
| Whether an internal system has requested an app shutdown. | |
| bool | restartRequested () |
| Whether an internal system has requested an app restart. | |
| bool | needsUserAttention () |
| Whether user needs to do some action or not. | |
| const std::string & | getHomePageURL () |
| Returns the home page URL for the application. | |
| bool | getNextNotificationItem (std::string &a_serviceName, std::string &a_text, std::string &a_url) |
| Returns the next notification item to be displayed to the user. | |
| bool | getNextAlertItem (std::string &a_serviceName, std::string &a_text, std::string &a_url) |
| Returns the next alert item to be displayed to the user. | |
| std::string | getShareApp () |
| Returns the string for the shareapp. | |
| bool | showUIOnLaunch () |
| Whether to show the UI on launch. | |
| bool | showNotifications () |
| Whether to show notifications. | |
| bool | isIdle () |
| Whether Tonido is idle or a profile is logged in. | |
| bool | isNetworkOnline () |
| Whether network is connected and online. | |
| uint32_bt | networkSpeedLimit () |
| Curent Network Speed Limit. | |
| bool | firstTimeRun () |
| Whether this is the first time Tonido is running on this machine. | |
| bool | lockFile () |
| Try to lock a file. | |
Internal Use Only | |
| void | run () |
| Internal function for thread running. | |
| void | generateHotKeyEvent (const std::string &a_key) |
Starts and runs the application.
| Tonido::Misc::AppRunner::AppRunner | ( | ) |
Ctor.
details if needed ...
| Tonido::Misc::AppRunner::~AppRunner | ( | ) | [virtual] |
Dtor.
details if needed ...
| bool Tonido::Misc::AppRunner::firstTimeRun | ( | ) |
Whether this is the first time Tonido is running on this machine.
Note the act of calling this function will set the flag to false so that next time you invoke it, it will return false
| bool Tonido::Misc::AppRunner::lockFile | ( | ) |
Try to lock a file.
true means no other tonido is running
| void Tonido::Misc::AppRunner::networkSpeedLimit | ( | uint32_bt | a_speed | ) |
Set Curent Network Speed Limit.
Note 0 means unlimited
| uint32_bt Tonido::Misc::AppRunner::networkSpeedLimit | ( | ) |
Curent Network Speed Limit.
Note 0 means unlimited