Molybden API
|
Provides access to the desktop environment. More...
#include <desktop.hpp>
Public Member Functions | |
virtual std::shared_ptr< App > | app ()=0 |
Returns the application instance. | |
virtual void | openUrl (const std::string &url)=0 |
Opens the given URL in the associated application. | |
virtual void | openPath (const std::string &path)=0 |
Opens the given path in the associated application. | |
virtual void | showPath (const std::string &path)=0 |
Shows the given path in the file manager of the current platform. | |
Provides access to the desktop environment.
|
pure virtual |
Opens the given path in the associated application.
If the associated application is not launched yet, it will be launched. If the given path is a directory, the file manager of the current platform is launched to open it.
path | the absolute or relative path to a file or directory to open. |
|
pure virtual |
Opens the given URL in the associated application.
If the given URL is a website, the default web browser will be launched to open it.
If the given URL is a mailto URL, the default mail client will be launched to compose a new message.
url | the URL (website or mailto) to open. |
|
pure virtual |
Shows the given path in the file manager of the current platform.
If the given path is a file, the file manager will open its directory and try selecting the file.
path | the absolute or relative path to a file or directory to show. |