7#ifndef _NIM_SDK_CPP_GLOBAL_H_
8#define _NIM_SDK_CPP_GLOBAL_H_
62 static void FreeStrBuf(
char* str);
69 static void FreeBuf(
void* data);
80 static void SetProxy(
NIMProxyType type,
const std::string& host,
int port,
const std::string& user,
const std::string& password);
93 const std::string& host,
95 const std::string& user,
96 const std::string& password,
105 static void SetExceptionReportCallback(
const std::string& json_extension,
const ExceptionCallback& cb);
116 static void GetSDKCachedFileInfoAsync(
const std::string& login_id,
117 const std::string& file_type,
118 int64_t end_timestamp,
119 const std::string& json_extension,
132 static void DeleteSDKCachedFileAsync(
const std::string& login_id,
133 const std::string& file_type,
134 int64_t end_timestamp,
135 const std::string& json_extension,
145 static void SDKFeedbackAsync(
const std::string& url,
const std::string& json_extension,
const SDKFeedbackCallback& cb);
160 static void UploadSDKLog(
const std::string& feedback_message,
const SDKFeedbackCallback& cb);
NIM SDK提供的一些全局接口
Definition: nim_cpp_global.h:23
std::function< void(NIMSDKException exception, const std::string &log)> ExceptionCallback
Definition: nim_cpp_global.h:49
std::function< void(const SDKDBErrorInfo &error_info)> SDKDBErrorCallback
Definition: nim_cpp_global.h:53
std::function< void(bool conncet, NIMProxyDetectStep step, const std::string &json_extension)> DetectProxyCallback
Definition: nim_cpp_global.h:48
DeleteCachedFileCallback SDKFeedbackCallback
Definition: nim_cpp_global.h:52
std::function< void(NIMResCode rescode, const std::string &download_url)> SDKFeedbackAsyncCallback
Definition: nim_cpp_global.h:54
std::function< void(NIMResCode rescode)> DeleteCachedFileCallback
Definition: nim_cpp_global.h:51
std::function< void(NIMResCode rescode, const CachedFileInfo &info)> GetCachedFileInfoCallback
Definition: nim_cpp_global.h:50
NIMProxyType
Definition: nim_global_def.h:204
NIMSDKException
Definition: nim_global_def.h:75
NIMProxyDetectStep
Definition: nim_global_def.h:199
@ kNIMDBOperationInsert
写操作
Definition: nim_global_def.h:150
@ kNIMDBOperationDelete
删除操作
Definition: nim_global_def.h:156
@ kNIMDBOperationUpdate
更新操作
Definition: nim_global_def.h:154
@ kNIMDBOperationRead
读操作
Definition: nim_global_def.h:152
#define NIM_SDK_CPPWRAPPER_DLL_API
Definition: nim_sdk_cpp_wrapper.h:38
NIMResCode
Definition: public_defines.h:21
Definition: nim_cpp_global.h:25
int64_t file_total_size_
Definition: nim_cpp_global.h:29
std::string file_path_
Definition: nim_cpp_global.h:27
int file_count_
Definition: nim_cpp_global.h:28
std::string file_type_
Definition: nim_cpp_global.h:26
Definition: nim_cpp_global.h:31
DBOperation
Definition: nim_cpp_global.h:32
int error_code_
Definition: nim_cpp_global.h:43
std::string description_
Definition: nim_cpp_global.h:45
std::string db_name_
Definition: nim_cpp_global.h:42
std::string attach_
Definition: nim_cpp_global.h:46
int operation_
Definition: nim_cpp_global.h:44