NIM PC Cross Platform SDK
nim_cpp_data_sync.h
Go to the documentation of this file.
1
7#ifndef _NIM_SDK_CPP_DATASYNC_H_
8#define _NIM_SDK_CPP_DATASYNC_H_
9
10#include <functional>
11#include <string>
13#include "nim_define_include.h"
18namespace nim {
22class NIM_SDK_CPPWRAPPER_DLL_API DataSync {
23public:
25 typedef std::function<void(nim::NIMDataSyncType sync_type, nim::NIMDataSyncStatus status, const std::string& data_sync_info)> DataSyncCallback;
26
27public:
33 static void RegCompleteCb(const DataSyncCallback& cb);
34
39 static void UnregDataSyncCb();
40};
41
42} // namespace nim
43
44#endif //_NIM_SDK_CPP_DATASYNC_H_
NIM SDK提供的数据同步相关接口
Definition: nim_cpp_data_sync.h:22
std::function< void(nim::NIMDataSyncType sync_type, nim::NIMDataSyncStatus status, const std::string &data_sync_info)> DataSyncCallback
数据同步通知回调模板
Definition: nim_cpp_data_sync.h:25
namespace nim
NIMDataSyncType
Definition: nim_data_sync_def.h:15
NIMDataSyncStatus
Definition: nim_data_sync_def.h:35
NIM 公共数据类型定义总的包含文件
定义导出宏