NIM PC Cross Platform SDK
nim::LogsBackupImportInfo Class Reference

从云端导入消息记录参数定义 More...

#include <nim_msglog_helper.h>

Inheritance diagram for nim::LogsBackupImportInfo:
NIMLogsBackupImportInfo

Public Member Functions

void SetUserData (void *user_data)
 
void * GetUserData () const
 
NIMLogsBackupImportInfoToCStruct () const
 

Public Attributes

std::function< std::string(const std::string &file_path, void *user_data)> ImportBackupFromRemoteUnPackageCallback
 
std::function< std::string(const std::string &file_path, const std::string &encrypt_key, void *user_data)> ImportBackupFromRemoteDecryptCallback
 
std::function< void(LogsBackupRemoteOperate, float, void *user_data)> LogsBackupProgressCallback
 
std::function< void(LogsBackupRemoteOperate, LogsBackupRemoteState, void *user_data)> LogsBackupCompleteCallback
 
bool cloned_
 
void * src_user_data_
 
- Public Attributes inherited from NIMLogsBackupImportInfo
char *(* ImportBackupFromRemoteUnPackageCallback )(const char *const file_path, void *user_data)
 
char *(* ImportBackupFromRemoteDecryptCallback )(const char *const file_path, const char *const encrypt_key, void *user_data)
 
void(* LogsBackupProgressCallback )(enum LogsBackupRemoteOperate op, float progress, void *user_data)
 
void(* LogsBackupCompleteCallback )(enum LogsBackupRemoteOperate op, enum LogsBackupRemoteState state, void *user_data)
 
void(* NewPathRelease )(char **)
 
void * user_data_
 APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
 

Detailed Description

从云端导入消息记录参数定义

Member Data Documentation

◆ ImportBackupFromRemoteDecryptCallback

std::function<std::string(const std::string& file_path, const std::string& encrypt_key, void* user_data)> nim::LogsBackupImportInfo::ImportBackupFromRemoteDecryptCallback

自定义的解密方式回调,SDK从云端同步完备份文件后会调用开发者自定义的解密方法

Parameters
[in]file_path从云端同步到的文件路径
[in]encrypt_key解密秘钥 与导出时加密密钥相同
[in]user_dataAPP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
Returns
std::string 解密后的文件路径

◆ ImportBackupFromRemoteUnPackageCallback

std::function<std::string(const std::string& file_path, void* user_data)> nim::LogsBackupImportInfo::ImportBackupFromRemoteUnPackageCallback

自定义的解包方式回调,从云端步的备份文件经解密后会回调开发者自定义的解包(解压)方法

Parameters
[in]file_path经解密后文件路径
[in]user_dataAPP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
Returns
std::string 解包后的文件路径

◆ LogsBackupCompleteCallback

std::function<void(LogsBackupRemoteOperate, LogsBackupRemoteState, void* user_data)> nim::LogsBackupImportInfo::LogsBackupCompleteCallback

导入完成后的结果回调

Parameters
[in]op操作类型 导入/导出
[in]state完成状态参考 LogsBackupRemoteState
[in]user_dataAPP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
Returns
void

◆ LogsBackupProgressCallback

std::function<void(LogsBackupRemoteOperate, float, void* user_data)> nim::LogsBackupImportInfo::LogsBackupProgressCallback

导入过程的进度回调

Parameters
[in]op操作类型 导入/导出
[in]progress进度 0-1
[in]user_dataAPP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
Returns
void

The documentation for this class was generated from the following files: