From b1d652e8b05f6edd65aadc57a39e1738b036f5d3 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 18 Jul 2016 15:11:44 +0200 Subject: Copy the regexes to the public interface --- lib/public/IRequest.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lib/public') diff --git a/lib/public/IRequest.php b/lib/public/IRequest.php index 86756413cd8..4db1c18b9c1 100644 --- a/lib/public/IRequest.php +++ b/lib/public/IRequest.php @@ -61,6 +61,20 @@ namespace OCP; * @since 6.0.0 */ interface IRequest { + /** + * @since 9.1.0 + */ + const USER_AGENT_CLIENT_ANDROID = '/^Mozilla\/5\.0 \(Android\) ownCloud\-android.*$/'; + + /** + * @since 9.1.0 + */ + const USER_AGENT_CLIENT_DESKTOP = '/^Mozilla\/5\.0 \([A-Za-z ]+\) (mirall|csyncoC)\/.*$/'; + + /** + * @since 9.1.0 + */ + const USER_AGENT_CLIENT_IOS = '/^Mozilla\/5\.0 \(iOS\) ownCloud\-iOS.*$/'; /** * @param string $name -- cgit v1.2.3