From 1f2a50bcd354e3aae80ce4f99e50f618a7b83e3c Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Fri, 9 Sep 2016 23:51:40 +0100 Subject: CLOUD: Move openUrl to OSystem --- common/system.h | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/system.h b/common/system.h index 8a05a9664b..eb9a39bbdf 100644 --- a/common/system.h +++ b/common/system.h @@ -322,7 +322,15 @@ public: * * This feature has no associated state. */ - kFeatureClipboardSupport + kFeatureClipboardSupport, + + /** + * The presence of this feature indicates whether the openUrl() + * call is supported. + * + * This feature has no associated state. + */ + kFeatureOpenUrl }; /** @@ -1268,6 +1276,20 @@ public: */ virtual Common::String getTextFromClipboard() { return ""; } + /** + * Open the given Url in the default browser (if available on the target + * system). + * + * @return true on success, false otherwise. + * + * @note It is up to the backend to ensure that the system is in a state + * that allows the user to actually see the web page. This might for + * example require leaving fullscreen mode. + * + * @parem url the URL to open + */ + virtual bool openUrl(const Common::String &url) {return false; } + /** * Returns the locale of the system. * -- cgit v1.2.3