NIM PC Cross Platform SDK
nim_cpp_msglog.cpp File Reference

NIM SDK提供的消息历史接口 More...

Classes

struct  nim::ImportDbCallbackUserData
 

Namespaces

namespace  nim
 namespace nim
 

Macros

#define DeclStringCopyToCharArrayLength(string, char_array)
 

Functions

static void nim::CallbackQueryMsg (int res_code, const char *id, nim::NIMSessionType to_type, const char *result, const char *json_extension, const void *callback)
 
static void nim::CallbackModifyMultipleMsglog (int res_code, const char *uid, nim::NIMSessionType to_type, const char *json_extension, const void *callback)
 
static void nim::CallbackModifySingleMsglog (int res_code, const char *msg_id, const char *json_extension, const void *user_data)
 
static void nim::CallbackMsglogRes (int res_code, const char *json_extension, const void *user_data)
 
static void nim::CallbackImportDBProgress (int64_t imported_count, int64_t total_count, const char *json_extension, const void *callback)
 
static void nim::CallbackQueryMsgByID (int res_code, const char *msg_id, const char *msg, const char *json_extension, const void *callback)
 
static void nim::CallbackMsgStatusChanged (int rescode, const char *result, const char *json_extent, const void *callback)
 

Variables

MsgLog::DeleteMsglogSelfNotifyCallback nim::g_delete_msglog_self_notify_cb = nullptr
 
MsgLog::DeleteHistoryOnLineNotifyCallback nim::g_delete_history_messages_notify_cb = nullptr
 
static MsgLog::MessageStatusChangedCallback nim::g_cb_msg_status_changed_cb_ = nullptr
 

Detailed Description

NIM SDK提供的消息历史接口

Date
2015/2/1

Macro Definition Documentation

◆ DeclStringCopyToCharArrayLength

#define DeclStringCopyToCharArrayLength (   string,
  char_array 
)
Value:
(((string.length()) >= (sizeof(char_array) / sizeof(decltype(char_array[0])))) ? (sizeof(char_array) / sizeof(decltype(char_array[0])) - 1) \
: (string.length()))