aboutsummaryrefslogtreecommitdiff
path: root/common/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/system.h')
-rw-r--r--common/system.h66
1 files changed, 44 insertions, 22 deletions
diff --git a/common/system.h b/common/system.h
index 805eba68ed..eb9a39bbdf 100644
--- a/common/system.h
+++ b/common/system.h
@@ -317,12 +317,20 @@ public:
kFeatureDisplayLogFile,
/**
- * The presence of this feature indicates whether the hasTextInClipboard()
- * and getTextFromClipboard() calls are supported.
- *
- * This feature has no associated state.
- */
- kFeatureClipboardSupport
+ * The presence of this feature indicates whether the hasTextInClipboard()
+ * and getTextFromClipboard() calls are supported.
+ *
+ * This feature has no associated state.
+ */
+ kFeatureClipboardSupport,
+
+ /**
+ * The presence of this feature indicates whether the openUrl()
+ * call is supported.
+ *
+ * This feature has no associated state.
+ */
+ kFeatureOpenUrl
};
/**
@@ -1247,28 +1255,42 @@ public:
virtual bool displayLogFile() { return false; }
/**
- * Returns whether there is text available in the clipboard.
- *
- * The kFeatureClipboardSupport feature flag can be used to
- * test whether this call has been implemented by the active
- * backend.
- *
- * @return true if there is text in the clipboard, false otherwise
- */
+ * Returns whether there is text available in the clipboard.
+ *
+ * The kFeatureClipboardSupport feature flag can be used to
+ * test whether this call has been implemented by the active
+ * backend.
+ *
+ * @return true if there is text in the clipboard, false otherwise
+ */
virtual bool hasTextInClipboard() { return false; }
/**
- * Returns clipboard contents as a String.
- *
- * The kFeatureClipboardSupport feature flag can be used to
- * test whether this call has been implemented by the active
- * backend.
- *
- * @return clipboard contents ("" if hasTextInClipboard() == false)
- */
+ * Returns clipboard contents as a String.
+ *
+ * The kFeatureClipboardSupport feature flag can be used to
+ * test whether this call has been implemented by the active
+ * backend.
+ *
+ * @return clipboard contents ("" if hasTextInClipboard() == false)
+ */
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.
*
* This returns the currently set up locale of the system, on which