High-Level functions for communicating with the operating system or getting general information about the application.
More...
|
| static String | AppContextName (bool lower_case) |
| | Returns the application context name, optionally in lower case.
|
| static String | ApplicationDisplayName () |
| | Returns the translated application name plus (beta) or (alpha) depending on the type.
|
| static TranslatedString | ApplicationNameAndVersion () |
| | Returns the translated application name combined with the version string.
|
| static Time | BuildTime () |
| | Returns the timestamp of when the application was built.
|
| static void | CloseApp (bool relaunch=false, const StringView &relaunch_options="--relaunch") |
| | Closes the application, optionally relaunching it with the given options.
|
|
static void | FactoryResetApp () |
| | Resets the application to its factory default state.
|
| static Buffer< uint01 > | GetAppBundledResource (void *handle, const StringView &type, const StringView &name) |
| | Retrieves an embedded resource from the application bundle.
|
| static File | GetDefaultOSApplicationForExtension (const StringView &extension) |
| | Returns the default OS application registered for the given file extension.
|
| static TranslatedString | GetErrorString (sint08 result) |
| | Returns a translated error description for the given error code.
|
| static HardwareInformation | GetHardwareInformation () |
| | Retrieves information about the system hardware.
|
| static TranslatedString | GetLastErrorString () |
| | Returns a translated description of the last system error.
|
| static OSInformation | GetOSInformation () |
| | Retrieves information about the current operating system.
|
| static Buffer< VideoCardInformation > | GetVideoCardInfo () |
| | Retrieves information about all detected video cards in the system.
|
| static bool | GlobalLock (StringView guid, InstanceType kind=InstanceType::e_system) |
| | Attempts to lock on a guid that is shared across applications.
|
| static bool | IsFirstTimeRunning () |
| | Checks whether this is the first time the application has been run.
|
| static bool | IsOSLanguageInstalled (String language) |
| | Checks whether a given language is installed on the operating system.
|
| static void | LogApplicationInformation (LogPtr log) |
| | Logs general application information to the specified log.
|
| static void | LogComputerInformation (LogPtr log) |
| | Logs computer hardware information to the specified log.
|
| static void | LogOSInformation (LogPtr log) |
| | Logs operating system information to the specified log.
|
| static void | LogUserSettings (LogPtr log, bool log_only_non_defaults) |
| | Logs user settings to the specified log.
|
| static String | MakeSafeForCommandLine (StringView var) |
| | Takes a string which may have spaces, etc, and wraps it as needed such that it is safe to execute on the command line.
|
| static void | OpenExplorerWindow (const StringView &location) |
| | Opens the operating system's file explorer at the specified location.
|
| static void | OpenFile (const File &file) |
| | Opens a file using the default OS application associated with its type.
|
|
static void | OpenOSBluetoothDialog () |
| | Opens the operating system's Bluetooth settings dialog.
|
|
static void | OpenOSClockDialog () |
| | Opens the operating system's clock or date/time settings dialog.
|
|
static void | OpenOSFileSystemDialog () |
| | Opens the operating system's file system or storage management dialog.
|
|
static void | OpenOSLanguageDialog () |
| | Opens the operating system's language settings dialog.
|
|
static void | OpenOSLocationDialog () |
| | Opens the operating system's location services settings dialog.
|
|
static void | OpenOSPrinterDialog () |
| | Opens the operating system's printer settings dialog.
|
|
static void | OpenOSWifiDialog () |
| | Opens the operating system's Wi-Fi settings dialog.
|
| static String | OSUserName () |
| | Returns the current operating system user name.
|
|
static void | ReadUserOptions () |
| | Reads user options and settings from persistent storage.
|
| static uint04 | RecommendedThreadCount () |
| | Returns the recommended number of threads based on the system hardware.
|
| static void | SaveUserOptions (bool is_shutting_down) |
| | Saves all user options and settings to persistent storage.
|
| static void | SendFile (const File &file) |
| | Sends a file using the OS sharing or email mechanism.
|
| static UUID | SessionID () |
| | Returns the unique identifier for the current application session.
|
| static Time | SessionStartTime () |
| | Returns the timestamp of when the current session started.
|
| static void | SetFolderIcon (const File &folder, const File &icon) |
| | Sets a custom icon for a folder in the OS file system.
|
| static bool | SetupAsConsole (bool is_console) |
| | Configures the application to run as a console (non-GUI) process.
|
| static void | ShareFileWithMediaServer (const File &file) |
| | Shares a file with the platform's media server or sharing service.
|
|
|
static Resource< String > | activation_code |
| | The license activation code for the application.
|
|
static Resource< TranslatedString > | application_name |
| | The display name of the application.
|
|
static Resource< String > | application_version |
| | The current version string of the application.
|
|
static ApplicationOption< Time > | current_run_time |
| | The timestamp of the current application run.
|
|
static ApplicationOption< bool > | has_finished_initial_setup |
| | Whether the first-time setup wizard has completed.
|
|
static ApplicationOption< String > | last_application_version |
| | The version string from the previous application run.
|
|
static bool | last_proper_shutdown |
| | Cached value of whether the previous session shut down properly.
|
|
static Time | last_run_time |
| | Timestamp of the previous application run.
|
|
static Resource< PasswordString > | password |
| | The logged-in user's password credential.
|
|
static ApplicationOption< bool > | proper_shutdown |
| | Whether the application shut down properly last time.
|
|
static Resource< ReleaseType > | release_type |
| | The release maturity level of this build.
|
|
static Resource< Buffer< String > > | startup_options |
| | Command-line options passed at application startup.
|
|
static Resource< String > | user_email |
| | The logged-in user's email address.
|
|
static Resource< String > | username |
| | The logged-in user's username.
|
High-Level functions for communicating with the operating system or getting general information about the application.
Definition at line 150 of file ApplicationResource.h.