зеркало из https://github.com/nextcloud/talk-ios.git
128 строки
5.2 KiB
C
128 строки
5.2 KiB
C
//
|
|
// OCFrameworkConstants.h
|
|
// Owncloud iOs Client
|
|
//
|
|
// Copyright (C) 2016, ownCloud GmbH. ( http://www.owncloud.org/ )
|
|
//
|
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
// of this software and associated documentation files (the "Software"), to deal
|
|
// in the Software without restriction, including without limitation the rights
|
|
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
// copies of the Software, and to permit persons to whom the Software is
|
|
// furnished to do so, subject to the following conditions:
|
|
|
|
// The above copyright notice and this permission notice shall be included in
|
|
// all copies or substantial portions of the Software.
|
|
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
// THE SOFTWARE.
|
|
//
|
|
|
|
//Timeout to weddav requests
|
|
#define k_timeout_webdav 30 //seconds
|
|
|
|
//Timeout to upload
|
|
#define k_timeout_upload 40 //seconds
|
|
|
|
//Timeout for fast requests
|
|
#define k_timeout_fast 5 //seconds
|
|
|
|
//Timeout to search
|
|
#define k_timeout_search 60 //seconds
|
|
|
|
//Chunk length
|
|
#define k_OC_lenght_chunk 1048576
|
|
|
|
#define k_domain_error_code @"com.owncloud"
|
|
|
|
//Url to access to Shared API to create
|
|
#define k_url_acces_shared_api @"ocs/v1.php/apps/files_sharing/api/v1/shares"
|
|
|
|
//Url to access to Remote Shared API
|
|
#define k_url_acces_remote_shared_api @"ocs/v1.php/apps/files_sharing/api/v1/remote_shares"
|
|
|
|
//Url to access to Sharee API
|
|
#define k_url_access_sharee_api @"ocs/v2.php/apps/files_sharing/api/v1/sharees"
|
|
|
|
//Url to access to Capabilities API
|
|
#define k_url_capabilities @"ocs/v1.php/cloud/capabilities"
|
|
|
|
//Url to access to Remote Notification API
|
|
#define k_url_acces_remote_notification_api @"ocs/v2.php/apps/notifications/api/v2/notifications"
|
|
|
|
//Url to access to Remote Subscribing Nextcloud server API
|
|
#define k_url_acces_remote_subscribing_nextcloud_server_api @"/ocs/v2.php/apps/notifications/api/v2/push"
|
|
|
|
//Url to access to Remote Activity API
|
|
#define k_url_acces_remote_activity_api @"ocs/v2.php/apps/activity/api/v2/activity/all"
|
|
|
|
//Url to access to External sites API
|
|
#define k_url_acces_external_sites_api @"ocs/v2.php/apps/external/api/v1"
|
|
|
|
//Url to access to User Profile API
|
|
#define k_url_acces_remote_userprofile_api @"ocs/v2.php/cloud/user"
|
|
|
|
//Url to access to End To End Encryption API
|
|
#define k_url_client_side_encryption @"ocs/v2.php/apps/end_to_end_encryption/api/v1"
|
|
|
|
//Url to access to document Mobile Editor OCS API
|
|
#define k_url_create_link_mobile_richdocuments @"ocs/v2.php/apps/richdocuments/api/v1/document"
|
|
|
|
//Url to access to templates Mobile Editor OCS API
|
|
#define k_url_get_template_mobile_richdocuments @"ocs/v2.php/apps/richdocuments/api/v1/templates/"
|
|
|
|
// Url to create a new richdocuments from a Template
|
|
#define k_url_create_new_mobile_richdocuments @"ocs/v2.php/apps/richdocuments/api/v1/templates/new"
|
|
|
|
//Url to insert files directly from your Nextcloud to a richdocuments
|
|
#define k_url_insert_assets_to_richdocuments @"apps/richdocuments/assets"
|
|
|
|
//Version of the server that have share API
|
|
#define k_version_support_shared [NSArray arrayWithObjects: @"5", @"0", @"27", nil]
|
|
|
|
//Version of the server that have sharee API
|
|
#define k_version_support_sharee_api [NSArray arrayWithObjects: @"8", @"2", @"0", nil]
|
|
|
|
//Version of the server that supports cookies
|
|
#define k_version_support_cookies [NSArray arrayWithObjects: @"7", @"0", @"0", nil]
|
|
|
|
//Version of the server that supports forbidden characters
|
|
#define k_version_support_forbidden_characters [NSArray arrayWithObjects: @"8", @"1", @"0", nil]
|
|
|
|
//Version of the server that supports Capabilities
|
|
#define k_version_support_capabilities [NSArray arrayWithObjects: @"8", @"2", @"0", nil]
|
|
|
|
//Version of the server that supports enable/disabled share privilege option for federated shares
|
|
#define k_version_support_share_option_fed_share [NSArray arrayWithObjects: @"9", @"1", @"0", nil]
|
|
|
|
//Name of the session using for upload files with NSURLSession
|
|
#define k_session_name @"com.owncloud.upload.session"
|
|
|
|
//Name of the download session using for download files with NSURLSession
|
|
#define k_download_session_name @"com.owncloud.download.session"
|
|
|
|
//Name of the download session using for download files with NSURLSession in ownCloudExtApp
|
|
#define k_download_session_name_ext_app @"com.owncloud.download.session.extApp.extension"
|
|
|
|
//Name of the download session using for download files with NSURLSession
|
|
#define k_download_folder_session_name @"com.owncloud.download.folder.session"
|
|
|
|
//Name of the download session using for download files with NSURLSession
|
|
#define k_network_operation_session_name @"com.owncloud.network.operation.session"
|
|
|
|
//Name of the container to configure NSURLSessions
|
|
#define k_shared_container_identifier @"group.com.owncloud.iOSmobileapp";
|
|
|
|
// Quota return value
|
|
#define k_quota_space_not_computed -1
|
|
#define k_quota_space_unknown -2
|
|
#define k_quota_space_unlimited -3
|
|
|
|
|
|
|