|
virtual const AppOptions & | options ()=0 |
| Returns the app options.
|
|
virtual bool | isProduction ()=0 |
| Indicates whether the app is running in the production or development mode.
|
|
virtual std::string | baseUrl ()=0 |
| Returns the base URL of the resource that represents app user interface.
|
|
virtual std::string | name ()=0 |
| Returns the current application name.
|
|
virtual std::string | version ()=0 |
| Returns the current application version.
|
|
virtual std::string | copyright ()=0 |
| Returns the current application copyright.
|
|
virtual std::string | description ()=0 |
| Returns the current application description.
|
|
virtual std::string | getPath (PathKey key)=0 |
| Returns absolute path to the directory specified by the given key or an empty string if there's no such path for the given key.
|
|
virtual void | quit ()=0 |
| Terminates this app instance.
|
|
virtual std::shared_ptr< Desktop > | desktop ()=0 |
| Returns the desktop instance that provides functionality related to the desktop environment.
|
|
virtual std::shared_ptr< Dock > | dock ()=0 |
| Returns an object that allows working with the application icon in the Dock on macOS.
|
|
virtual std::shared_ptr< Profile > | profile ()=0 |
| Returns the default app profile.
|
|
virtual std::shared_ptr< Profile > | profile (const std::string &name)=0 |
| Returns the profile with the given name if it exists.
|
|
virtual std::vector< std::shared_ptr< Profile > > | profiles ()=0 |
| Returns the list of the profiles in this app including the default profile.
|
|
virtual void | deleteProfile (std::shared_ptr< Profile > profile)=0 |
| Deletes the given profile from the list of available profiles, closes all browsers associated with it, releases all allocated resources and files in the user data directory.
|
|
virtual std::vector< std::shared_ptr< Tray > > | trays ()=0 |
| Returns the list of the available (non-destroyed) application trays.
|
|
virtual void | setMainMenu (std::shared_ptr< Menu > menu)=0 |
| Sets the given menu as the application menu on macOS.
|
|
virtual void | setTheme (AppTheme theme)=0 |
| Sets the given theme to the app.
|
|
virtual AppTheme | theme ()=0 |
| Returns the application theme.
|
|
Provides access to Molybden app.
virtual void molybden::App::deleteProfile |
( |
std::shared_ptr< Profile > |
profile | ) |
|
|
pure virtual |
Deletes the given profile from the list of available profiles, closes all browsers associated with it, releases all allocated resources and files in the user data directory.
When the profile is deleted, the cache files and preferences of the associated browsers are lost.
Does nothing if the given profile is already deleted or it is the default profile. The default profile cannot be deleted.
- Parameters
-
profile | profile to delete. |