NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_cpp_plugin_in.h
浏览该文件的文档.
1
7
#ifndef _NIM_SDK_CPP_PLUGIN_IN_H_
8
#define _NIM_SDK_CPP_PLUGIN_IN_H_
9
10
#include <functional>
11
#include <list>
12
#include <string>
13
#include "
nim_cpp_wrapper/nim_sdk_cpp_wrapper.h
"
14
#include "
nim_define_include.h
"
19
namespace
nim
{
20
24
class
NIM_SDK_CPPWRAPPER_DLL_API
PluginIn
{
25
public
:
27
typedef
std::function<void(
int
error_code,
const
std::string& result)>
ChatRoomRequestEnterCallback
;
28
typedef
std::function<void(
int
error_code,
const
std::list<std::string>& link_address_list)>
30
QChatRequestLinkAddressCallback
;
31
32
public
:
46
static
void
ChatRoomRequestEnterAsync(
const
int64_t room_id,
47
const
ChatRoomRequestEnterCallback& callback,
48
const
std::string& json_extension =
""
);
49
59
static
void
QChatRequestLinkAddress(uint32_t ip_version,
const
QChatRequestLinkAddressCallback& callback,
const
std::string& json_extension =
""
);
60
};
61
62
}
// namespace nim
63
64
#endif
//_NIM_SDK_CPP_PLUGIN_IN_H_
nim::PluginIn
NIM SDK 提供的plugin接入接口类
Definition
nim_cpp_plugin_in.h:24
nim::PluginIn::QChatRequestLinkAddressCallback
std::function< void(int error_code, const std::list< std::string > &link_address_list) QChatRequestLinkAddressCallback)
获取圈组link地址
Definition
nim_cpp_plugin_in.h:30
nim::PluginIn::ChatRoomRequestEnterCallback
std::function< void(int error_code, const std::string &result) ChatRoomRequestEnterCallback)
获取聊天室登录信息回调
Definition
nim_cpp_plugin_in.h:27
nim
namespace nim
nim_define_include.h
NIM 公共数据类型定义总的包含文件
nim_sdk_cpp_wrapper.h
定义导出宏
NIM_SDK_CPPWRAPPER_DLL_API
#define NIM_SDK_CPPWRAPPER_DLL_API
Definition
nim_sdk_cpp_wrapper.h:38
wrapper
nim_cpp_wrapper
api
nim_cpp_plugin_in.h
制作者
1.10.0