Go to the documentation of this file.
7 #ifndef _NIM_SDK_CPP_NOS_H_
8 #define _NIM_SDK_CPP_NOS_H_
24 class NIM_SDK_CPPWRAPPER_DLL_API
NOS {
28 typedef std::function<void(NIMResCode res_code,
const std::string& file_path,
const std::string& call_id,
const std::string& res_id)>
31 typedef std::function<void(int64_t completed_size, int64_t file_size)>
ProgressCallback;
104 static bool FetchMediaEx(
const IMMessage& msg,
105 const std::string& json_extension,
117 static bool StopFetchMedia(
const IMMessage& msg);
131 static bool UploadResource(
const std::string& local_file,
149 static bool UploadResource2(
const std::string& local_file,
150 const std::string& tag,
174 static bool UploadResourceEx(
const std::string& local_file,
175 const std::string& json_extension,
203 static bool UploadResourceEx2(
const std::string& local_file,
204 const std::string& tag,
205 const std::string& json_extension,
219 static bool StopUploadResourceEx(
const std::string& task_id,
const std::string& json_extension =
"");
233 static bool DownloadResource(
const std::string& nos_url,
257 static bool DownloadResourceEx(
const std::string& nos_url,
258 const std::string& json_extension,
272 static bool StopDownloadResourceEx(
const std::string& task_id,
const std::string& json_extension =
"");
283 static void SafeURLToOriginURL(
const std::string& safe_url,
const SafeURLToOriginURLCallback& cb,
const std::string& json_extension =
"");
289 static void UnregNosCb();
295 static void SetSupportQuickTrans(
bool bquick);
300 #endif //_NIM_SDK_CPP_NOS_H_
std::function< void(const InitNosResult &)> InitNosResultCallback
Definition: nim_cpp_nos.h:26
std::function< void(double, double)> SpeedCallback
Definition: nim_tools_http_cpp.h:55
std::function< void(int64_t speed)> SpeedCallback
Definition: nim_cpp_nos.h:38
初始化结果
Definition: nim_nos_helper.h:61
std::function< void(NIMResCode res_code, const DownloadMediaResult &result)> DownloadMediaExCallback
Definition: nim_cpp_nos.h:33
std::function< void(NIMResCode res_code, const std::string &file_path, const std::string &call_id, const std::string &res_id)> DownloadMediaCallback
Definition: nim_cpp_nos.h:29
NIM SDK提供的NOS云存储服务接口
Definition: nim_cpp_nos.h:24
std::function< void(int64_t completed_size, int64_t file_size, const ProgressData &result)> ProgressExCallback
Definition: nim_cpp_nos.h:36
std::function< void(NIMResCode res_code, const UploadMediaResult &result)> UploadMediaExCallback
Definition: nim_cpp_nos.h:34
std::function< void(int64_t actual_size, int64_t speed)> TransferInfoCallback
Definition: nim_cpp_nos.h:39
std::function< void(double, double, double, double)> ProgressCallback
Definition: nim_tools_http_cpp.h:49
std::function< void(NIMResCode res_code, const std::string &url)> UploadMediaCallback
Definition: nim_cpp_nos.h:30
std::function< void(const std::string &url, std::string &token)> CustomTokenCallback
Definition: nim_cpp_nos.h:35
传输过程中的数据
Definition: nim_nos_helper.h:90
初始化nos参数
Definition: nim_nos_helper.h:23
std::function< void(int64_t completed_size, int64_t file_size)> ProgressCallback
Definition: nim_cpp_nos.h:31
Definition: nim_talk_helper.h:242
std::function< void(NIMResCode res_code, const std::string &origin_url)> SafeURLToOriginURLCallback
Definition: nim_cpp_nos.h:41