#include <application.h>
Application wide functions. Implement this interface to be able to link against the kernel library.
Public Member Functions | |
MAXON_OBSERVABLE_STATIC (Result< Bool >, ObservableApplicationMessage,(const Id &messageId, const DataDictionary &messageData), ObservableCombinerRunAllBoolUntilFalse) | |
Static Protected Member Functions | |
static MAXON_METHOD Result< Url > | PrivateGetUrl (APPLICATION_URLTYPE urlType, const Char *maxonModuleID, const Binary ¤tModule) |
Private Member Functions | |
MAXON_INTERFACE_NONVIRTUAL (Application, MAXON_REFERENCE_STATIC, "net.maxon.interface.application", MAXON_IMPLEMENTATION_MODULE("net.maxon.kernel")) | |
|
private |
|
static |
Returns the requested url.
[in] | urlType | Type of the url, see APPLICATION_URLTYPE. |
|
static |
|
static |
Returns all module paths configured through g_modulePath, g_additionalModulePath and user preferences.
|
static |
Returns the number of command line arguments delivered to the app on startup.
|
static |
Returns a command line argument.
[in] | idx | The index of the argument. (0 >= idx < GetCommandLineArgCount()). |
|
static |
Returns information about the system and processor. See maxon::MACHINEINFO for DataDictionary properties.
|
static |
Retrieves the current application mode. This mode defines the behavior after the startup is done.
|
static |
Sets a new application mode. This mode defines the behavior after the startup is done. Please note that it's only possible to raise the mode from APPLICATIONMODE::DONTWAIT to APPLICATIONMODE::KEEPRUNNING.
[in] | mode | The new mode to be set. |
|
static |
|
static |
[in] | feature | The feature to set or clear. |
[in] | value | The value of the feature |
|
static |
Gets the version number and build ID.
[out] | version | The version number will be assigned to this value. |
[out] | buildID | Variable that will hold the buildID. |
|
static |
Formats the Int version returned by GetVersion() into a string with the 2023 (and later) format
[in] | rawVersionNumber | The version to be formatted. |
MAXON_OBSERVABLE_STATIC | ( | Result< Bool > | , |
ObservableApplicationMessage | , | ||
(const Id &messageId, const DataDictionary &messageData) | , | ||
ObservableCombinerRunAllBoolUntilFalse | |||
) |
ObservableDatabaseRegistrationChange after a database was added or removed to the system. This can be used to update editors.
|
static |
RegisterSystemUrlSchemeHandler description. Depending on the operating system you can specify if the current application is the receiving application (e.g. windows). OSX for instance handles this on it's own and the application is always the receiving application.
[in] | urlScheme | Url scheme to register e.g. "c4d" to open all urls starting with "c4d://" |
[in] | reassignApplication | True if the application should be reassigned to the url scheme handler. False just register the handler in case the application is the receiving instance. |
[in] | callback | Callback which is triggered if the url protocol handler receives the url |
|
static |
Check if the current application is assigned to the system url scheme handler for the given url scheme.
[in] | urlScheme | Url scheme to check e.g "c4d". |
|
staticprotected |