34#include <NDEVR/String.h>
35#include <NDEVR/BaseValues.h>
36#include <NDEVR/ApplicationOptions.h>
37#include <NDEVR/Resource.h>
38#include <NDEVR/PasswordString.h>
39#include <NDEVR/Time.h>
74 , e_windows_server_2012
75 , e_windows_server_2008
181 , e_3D_window_manager
The default object to store data of any type that should persist through sessions of the application.
High-Level functions for communicating with the operating system or getting general information about...
static Time SessionStartTime()
Returns the timestamp of when the current session started.
static HardwareInformation GetHardwareInformation()
Retrieves information about the system hardware.
static Time last_run_time
Timestamp of the previous application run.
static UUID SessionID()
Returns the unique identifier for the current application session.
static void ReadUserOptions()
Reads user options and settings from persistent storage.
static void SendFile(const File &file)
Sends a file using the OS sharing or email mechanism.
static void LogComputerInformation(LogPtr log)
Logs computer hardware information to the specified log.
UIMode
The user interface mode the application is running in.
static void CloseApp(bool relaunch=false, const StringView &relaunch_options="--relaunch")
Closes the application, optionally relaunching it with the given options.
static void OpenOSClockDialog()
Opens the operating system's clock or date/time settings dialog.
static ApplicationOption< bool > has_finished_initial_setup
Whether the first-time setup wizard has completed.
static bool SetupAsConsole(bool is_console)
Configures the application to run as a console (non-GUI) process.
static void OpenOSFileSystemDialog()
Opens the operating system's file system or storage management dialog.
static void SetFolderIcon(const File &folder, const File &icon)
Sets a custom icon for a folder in the OS file system.
static Resource< ReleaseType > release_type
The release maturity level of this build.
static void OpenOSBluetoothDialog()
Opens the operating system's Bluetooth settings dialog.
static void OpenExplorerWindow(const StringView &location)
Opens the operating system's file explorer at the specified location.
InstanceType
The scope or level at which a global lock is acquired.
static Resource< PasswordString > password
The logged-in user's password credential.
static Time BuildTime()
Returns the timestamp of when the application was built.
static TranslatedString GetLastErrorString()
Returns a translated description of the last system error.
static TranslatedString GetErrorString(sint08 result)
Returns a translated error description for the given error code.
static Resource< String > user_email
The logged-in user's email address.
static void LogApplicationInformation(LogPtr log)
Logs general application information to the specified log.
static Resource< String > username
The logged-in user's username.
static Buffer< VideoCardInformation > GetVideoCardInfo()
Retrieves information about all detected video cards in the system.
static File GetDefaultOSApplicationForExtension(const StringView &extension)
Returns the default OS application registered for the given file extension.
static void SaveUserOptions(bool is_shutting_down)
Saves all user options and settings to persistent storage.
static TranslatedString ApplicationNameAndVersion()
Returns the translated application name combined with the version string.
static bool IsOSLanguageInstalled(String language)
Checks whether a given language is installed on the operating system.
static OSInformation GetOSInformation()
Retrieves information about the current operating system.
static String OSUserName()
Returns the current operating system user name.
static uint04 RecommendedThreadCount()
Returns the recommended number of threads based on the system hardware.
static Resource< TranslatedString > application_name
The display name of the application.
static void ShareFileWithMediaServer(const File &file)
Shares a file with the platform's media server or sharing service.
static Buffer< uint01 > GetAppBundledResource(void *handle, const StringView &type, const StringView &name)
Retrieves an embedded resource from the application bundle.
static bool last_proper_shutdown
Cached value of whether the previous session shut down properly.
static bool IsFirstTimeRunning()
Checks whether this is the first time the application has been run.
static ApplicationOption< String > last_application_version
The version string from the previous application run.
static void OpenOSLocationDialog()
Opens the operating system's location services settings dialog.
static void FactoryResetApp()
Resets the application to its factory default state.
static bool GlobalLock(StringView guid, InstanceType kind=InstanceType::e_system)
Attempts to lock on a guid that is shared across applications.
static String AppContextName(bool lower_case)
Returns the application context name, optionally in lower case.
static Resource< String > application_version
The current version string of the application.
static void OpenOSWifiDialog()
Opens the operating system's Wi-Fi settings dialog.
static ApplicationOption< bool > proper_shutdown
Whether the application shut down properly last time.
static void OpenOSPrinterDialog()
Opens the operating system's printer settings dialog.
ReleaseType
The release maturity level of the application build.
static Resource< String > activation_code
The license activation code for the application.
static Resource< Buffer< String > > startup_options
Command-line options passed at application startup.
static void OpenFile(const File &file)
Opens a file using the default OS application associated with its type.
static void LogOSInformation(LogPtr log)
Logs operating system information to the specified log.
static String ApplicationDisplayName()
Returns the translated application name plus (beta) or (alpha) depending on the type.
static ApplicationOption< Time > current_run_time
The timestamp of the current application run.
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 ...
static void OpenOSLanguageDialog()
Opens the operating system's language settings dialog.
static void LogUserSettings(LogPtr log, bool log_only_non_defaults)
Logs user settings to the specified log.
The equivelent of std::vector but with a bit more control.
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
Information for how to display text data.
Contains methods for easily reading and writing to an INI file including efficient casting,...
A light-weight base class for Log that allows processes to update, without the need for additional in...
A light-weight wrapper that will be a no-op if there is not a valid log reference,...
Represents a color in the RGB space with optional alpha transparency.
A core part of the engine, stores variables that can be listened to with ResourceListener which will ...
Logic for reading or writing to a string or a user friendly, TranslatedString.
The core String View class for the NDEVR API.
The core String class for the NDEVR API.
Represents a timestamp with utilities for manipulation and conversion.
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
The primary namespace for the NDEVR SDK.
uint64_t uint08
-Defines an alias representing an 8 byte, unsigned integer
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
@ e_size
Number of entries in this enum; used for iteration.
int64_t sint08
-Defines an alias representing an 8 byte, signed integer -Can represent exact integer values -9223372...