NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_qchat_attachment_def.h
浏览该文件的文档.
1
11#ifndef __NIM_QCHAT_ATTACHMENT_DEF_H__
12#define __NIM_QCHAT_ATTACHMENT_DEF_H__
13
15
16#ifdef __cplusplus
17extern "C" {
18#endif
26};
27
31 void* user_data;
33 char* url;
35 char* token;
36};
37
41 uint32_t res_code;
43 void* user_data;
45 char* task_id;
47 char* url;
48};
49
53 uint32_t res_code;
55 void* user_data;
59 char* task_id;
61 char* file_path;
62};
63
67 uint32_t res_code;
69 void* user_data;
71 char* task_id;
73 uint64_t total_size;
75 uint64_t cur_size;
76};
77
86
92 void* user_data;
93};
94
101};
102
109};
110
117};
118
128 char* task_id;
131};
132
136 char* task_id;
137};
138
150 char* task_id;
152 char* url;
155};
156
160 char* task_id;
161};
162#ifdef __cplusplus
163}
164#endif
165
166#endif // __NIM_QCHAT_ATTACHMENT_DEF_H__
NIMQChatAttachmentCustomTokenResp(* nim_qchat_attachment_custom_token_cb_func)(const NIMQChatAttachmentCustomTokenResp *resp)
获取附件上传下载自定义token回调
Definition: nim_qchat_attachment_def.h:79
NIMQChatDownloadResType
Definition: nim_qchat_attachment_def.h:19
@ NIMQChatDownloadResTypeImageThumnail
图片缩略图
Definition: nim_qchat_attachment_def.h:23
@ NIMQChatDownloadResTypeSource
原文件
Definition: nim_qchat_attachment_def.h:21
@ NIMQChatDownloadResTypeVideoCover
视频封面
Definition: nim_qchat_attachment_def.h:25
void(* nim_qchat_attachment_progress_cb_func)(const NIMQChatAttachmentProgressResp *resp)
删除附件回调
Definition: nim_qchat_attachment_def.h:85
void(* nim_qchat_attachment_upload_cb_func)(const NIMQChatAttachmentUploadResp *resp)
上传附件回调
Definition: nim_qchat_attachment_def.h:81
void(* nim_qchat_attachment_download_cb_func)(const NIMQChatAttachmentDownloadResp *resp)
下载附件回调
Definition: nim_qchat_attachment_def.h:83
Definition: nim_qchat_attachment_def.h:29
char * token
将该指针指向零结尾的token字符串的起始地址
Definition: nim_qchat_attachment_def.h:35
void * user_data
自定义用户数据
Definition: nim_qchat_attachment_def.h:31
char * url
上传/下载的url
Definition: nim_qchat_attachment_def.h:33
Definition: nim_qchat_attachment_def.h:140
nim_qchat_attachment_progress_cb_func progress_cb
下载附件进度回调
Definition: nim_qchat_attachment_def.h:144
char * file_path
附件路径
Definition: nim_qchat_attachment_def.h:154
nim_qchat_attachment_download_cb_func cb
下载附件异步回调
Definition: nim_qchat_attachment_def.h:142
char * task_id
任务id, 为空时自动生成
Definition: nim_qchat_attachment_def.h:150
void * user_data
自定义用户数据
Definition: nim_qchat_attachment_def.h:146
char * url
附件url
Definition: nim_qchat_attachment_def.h:152
NIMQChatDownloadResType res_type
下载资源类型
Definition: nim_qchat_attachment_def.h:148
Definition: nim_qchat_attachment_def.h:51
void * user_data
自定义用户数据
Definition: nim_qchat_attachment_def.h:55
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_attachment_def.h:53
NIMQChatDownloadResType res_type
下载资源类型
Definition: nim_qchat_attachment_def.h:57
char * task_id
任务id, 自动下载的任务则为消息id
Definition: nim_qchat_attachment_def.h:59
char * file_path
下载后的文件路径
Definition: nim_qchat_attachment_def.h:61
Definition: nim_qchat_attachment_def.h:65
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_attachment_def.h:67
uint64_t cur_size
当前已经上传/下载的大小
Definition: nim_qchat_attachment_def.h:75
uint64_t total_size
文件总大小
Definition: nim_qchat_attachment_def.h:73
char * task_id
下载任务id
Definition: nim_qchat_attachment_def.h:71
void * user_data
自定义用户数据
Definition: nim_qchat_attachment_def.h:69
Definition: nim_qchat_attachment_def.h:88
nim_qchat_attachment_custom_token_cb_func cb
自定义token回调
Definition: nim_qchat_attachment_def.h:90
void * user_data
自定义用户数据
Definition: nim_qchat_attachment_def.h:92
Definition: nim_qchat_attachment_def.h:104
void * user_data
自定义用户数据
Definition: nim_qchat_attachment_def.h:108
nim_qchat_attachment_download_cb_func cb
下载附件全局异步回调
Definition: nim_qchat_attachment_def.h:106
Definition: nim_qchat_attachment_def.h:112
nim_qchat_attachment_progress_cb_func cb
上传/下载全局进度回调
Definition: nim_qchat_attachment_def.h:114
void * user_data
自定义用户数据
Definition: nim_qchat_attachment_def.h:116
Definition: nim_qchat_attachment_def.h:96
void * user_data
自定义用户数据
Definition: nim_qchat_attachment_def.h:100
nim_qchat_attachment_upload_cb_func cb
上传附件全局异步回调
Definition: nim_qchat_attachment_def.h:98
Definition: nim_qchat_attachment_def.h:158
char * task_id
任务id, 为空时自动生成
Definition: nim_qchat_attachment_def.h:160
Definition: nim_qchat_attachment_def.h:134
char * task_id
任务id, 为空时自动生成
Definition: nim_qchat_attachment_def.h:136
Definition: nim_qchat_attachment_def.h:120
nim_qchat_attachment_progress_cb_func progress_cb
上传附件进度回调
Definition: nim_qchat_attachment_def.h:124
char * file_path
附件路径
Definition: nim_qchat_attachment_def.h:130
nim_qchat_attachment_upload_cb_func cb
上传附件异步回调
Definition: nim_qchat_attachment_def.h:122
void * user_data
自定义用户数据
Definition: nim_qchat_attachment_def.h:126
char * task_id
任务id, 为空时自动生成
Definition: nim_qchat_attachment_def.h:128
Definition: nim_qchat_attachment_def.h:39
uint32_t res_code
操作结果, 参考NIMResCode
Definition: nim_qchat_attachment_def.h:41
void * user_data
自定义用户数据
Definition: nim_qchat_attachment_def.h:43
char * task_id
任务id
Definition: nim_qchat_attachment_def.h:45
char * url
上传后的url
Definition: nim_qchat_attachment_def.h:47