Molybden API
Loading...
Searching...
No Matches
desktop.hpp
1// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_DESKTOP_HPP
6#define MOLYBDEN_DESKTOP_HPP
7
8#include <memory>
9#include <string>
10
11namespace molybden {
12
13class App;
14
18class Desktop {
19 public:
23 virtual std::shared_ptr<App> app() = 0;
24
36 virtual void openUrl(const std::string& url) = 0;
37
46 virtual void openPath(const std::string& path) = 0;
47
58 virtual void showPath(const std::string& path) = 0;
59};
60
61} // namespace molybden
62
63#endif // MOLYBDEN_DESKTOP_HPP
Provides access to the desktop environment.
Definition desktop.hpp:18
virtual void showPath(const std::string &path)=0
Shows the given path in the file manager of the current platform.
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 std::shared_ptr< App > app()=0
Returns the application instance.