Meeting SDK for Linux API Reference
Loading...
Searching...
No Matches
meeting_chat_interface.h
Go to the documentation of this file.
1
6#ifndef _MEETING_CHAT_INTERFACE_H_
7#define _MEETING_CHAT_INTERFACE_H_
8#include "zoom_sdk_def.h"
9
29
34{
36 bool bBold = false;
37};
38
43{
45 bool bItalic = false;
46};
47
52{
54 bool bStrikethrough = false;
55};
56
57// \brief BulletedList attributes.
59{
61 bool bBulletedList = false;
62};
63
68{
70 bool bNumberedList = false;
71};
72
77{
79 bool bUnderline = false;
80};
81
86{
88 bool bQuote = false;
89};
90
96 const zchar_t* insertLinkUrl = nullptr;
97};
98
102#define RichTextStyle_FontSize_Small _T("FontSize_Small")
103#define RichTextStyle_FontSize_Medium _T("FontSize_Medium")
104#define RichTextStyle_FontSize_Large _T("FontSize_Large")
105
109#define FontSize_Small 8
110#define FontSize_Medium 10
111#define FontSize_Large 12
112
118 int fontSize = 0;
119};
120
137 unsigned int red = 0;
139 unsigned int green = 0;
141 unsigned int blue = 0;
142};
143
161 unsigned int red = 0;
163 unsigned int green = 0;
165 unsigned int blue = 0;
166};
167
172#define RichTextStyle_Paragraph_H1 _T("Paragraph_H1")
173#define RichTextStyle_Paragraph_H2 _T("Paragraph_H2")
174#define RichTextStyle_Paragraph_H3 _T("Paragraph_H3")
175
181 const zchar_t* strParagraph = nullptr;
182};
183
189 unsigned int indent = 0;
190};
191
226
261
267{
268public:
273 virtual unsigned int GetPositionStart() = 0;
274
279 virtual unsigned int GetPositionEnd() = 0;
280
289 virtual const zchar_t* GetReserve() = 0;
290};
291
311
312
318{
319public:
324 virtual const zchar_t* GetMessageID() = 0;
325
330 virtual unsigned int GetSenderUserId() = 0;
331
337 virtual const zchar_t* GetSenderDisplayName() = 0;
338
346 virtual unsigned int GetReceiverUserId() = 0;
347
352 virtual const zchar_t* GetReceiverDisplayName() = 0;
353
358 virtual const zchar_t* GetContent() = 0;
359
364 virtual time_t GetTimeStamp() = 0;
365
370 virtual bool IsChatToAll() = 0;
371
376 virtual bool IsChatToAllPanelist() = 0;
377
382 virtual bool IsChatToWaitingroom() = 0;
383
389
394 virtual bool IsComment() = 0;
395
400 virtual bool IsThread() = 0;
401
409
414 virtual const zchar_t* GetThreadID() = 0;
415
416 virtual ~IChatMsgInfo() {};
417};
418
434
448
462
498
515
530
531
545
550{
560 unsigned int file_size;
566 unsigned int complete_size;
568 unsigned int bit_per_second;
570 {
571 Reset();
572 }
573
574 void Reset()
575 {
576 memset(this, 0, sizeof(tagSDKFileTransferInfo)); //checked safe
577 }
579
581{
582public:
588 virtual unsigned int GetReceiver() = 0;
589
594 virtual SDKError CancelSend() = 0;
595
596 virtual ~ISDKFileSender() {};
597};
598
600{
601public:
603
608 virtual unsigned int GetSender() = 0;
609
614 virtual SDKError CancelReceive() = 0;
615
621 virtual SDKError StartReceive(const zchar_t* path) = 0;
622
623 virtual ~ISDKFileReceiver() {};
624};
625
626
632{
633public:
635
641 virtual void onChatMsgNotification(IChatMsgInfo* chatMsg, const zchar_t* content = nullptr) = 0;
642
647 virtual void onChatStatusChangedNotification(ChatStatus* status_) = 0;
648
654 virtual void onChatMsgDeleteNotification(const zchar_t* msgID, SDKChatMessageDeleteType deleteBy) = 0;
655
660 virtual void onChatMessageEditNotification(IChatMsgInfo* chatMsg) = 0;
661
662 virtual void onShareMeetingChatStatusChanged(bool isStart) = 0;
663
668 virtual void onFileSendStart(ISDKFileSender* sender) = 0;
669
674 virtual void onFileReceived(ISDKFileReceiver* receiver) = 0;
675
681
682};
683
690{
691public:
696 virtual IChatMsgInfoBuilder* SetContent(const zchar_t* content) = 0;
697
702 virtual IChatMsgInfoBuilder* SetReceiver(unsigned int receiver) = 0;
703
708 virtual IChatMsgInfoBuilder* SetThreadId(const zchar_t* threadId) = 0;
709
715
721 virtual IChatMsgInfoBuilder* SetQuotePosition(unsigned int positionStart, unsigned int positionEnd) = 0;
722
729 virtual IChatMsgInfoBuilder* UnsetQuotePosition(unsigned int positionStart, unsigned int positionEnd) = 0;
730
738 virtual IChatMsgInfoBuilder* SetInsertLink(InsertLinkAttrs insertLink, unsigned int positionStart, unsigned int positionEnd) = 0;
739
746 virtual IChatMsgInfoBuilder* UnsetInsertLink(unsigned int positionStart, unsigned int positionEnd) = 0;
747
755 virtual IChatMsgInfoBuilder* SetFontSize(FontSizeAttrs fontSize, unsigned int positionStart, unsigned int positionEnd) = 0;
756
763 virtual IChatMsgInfoBuilder* UnsetFontSize(unsigned int positionStart, unsigned int positionEnd) = 0;
764
771 virtual IChatMsgInfoBuilder* SetItalic(unsigned int positionStart, unsigned int positionEnd) = 0;
772
779 virtual IChatMsgInfoBuilder* UnsetItalic(unsigned int positionStart, unsigned int positionEnd) = 0;
780
787 virtual IChatMsgInfoBuilder* SetBold(unsigned int positionStart, unsigned int positionEnd) = 0;
788
795 virtual IChatMsgInfoBuilder* UnsetBold(unsigned int positionStart, unsigned int positionEnd) = 0;
796
803 virtual IChatMsgInfoBuilder* SetStrikethrough(unsigned int positionStart, unsigned int positionEnd) = 0;
804
811 virtual IChatMsgInfoBuilder* UnsetStrikethrough(unsigned int positionStart, unsigned int positionEnd) = 0;
812
819 virtual IChatMsgInfoBuilder* SetBulletedList(unsigned int positionStart, unsigned int positionEnd) = 0;
820
827 virtual IChatMsgInfoBuilder* UnsetBulletedList(unsigned int positionStart, unsigned int positionEnd) = 0;
828
835 virtual IChatMsgInfoBuilder* SetNumberedList(unsigned int positionStart, unsigned int positionEnd) = 0;
836
843 virtual IChatMsgInfoBuilder* UnsetNumberedList(unsigned int positionStart, unsigned int positionEnd) = 0;
844
851 virtual IChatMsgInfoBuilder* SetUnderline(unsigned int positionStart, unsigned int positionEnd) = 0;
852
859 virtual IChatMsgInfoBuilder* UnsetUnderline(unsigned int positionStart, unsigned int positionEnd) = 0;
860
868 virtual IChatMsgInfoBuilder* SetFontColor(FontColorAttrs color, unsigned int positionStart, unsigned int positionEnd) = 0;
869
876 virtual IChatMsgInfoBuilder* UnsetFontColor(unsigned int positionStart, unsigned int positionEnd) = 0;
877
885 virtual IChatMsgInfoBuilder* SetBackgroundColor(BackgroundColorAttrs color, unsigned int positionStart, unsigned int positionEnd) = 0;
886
893 virtual IChatMsgInfoBuilder* UnsetBackgroundColor(unsigned int positionStart, unsigned int positionEnd) = 0;
894
902 virtual IChatMsgInfoBuilder* IncreaseIndent(IndentAttrs indent, unsigned int positionStart, unsigned int positionEnd) = 0;
903
911 virtual IChatMsgInfoBuilder* DecreaseIndent(IndentAttrs indent, unsigned int positionStart, unsigned int positionEnd) = 0;
912
913
925 virtual IChatMsgInfoBuilder* SetParagraph(ParagraphAttrs paragraph, unsigned int positionStart, unsigned int positionEnd) = 0;
926
935 virtual IChatMsgInfoBuilder* UnsetParagraph(unsigned int positionStart, unsigned int positionEnd) = 0;
936
941
946
951 virtual IChatMsgInfo* Build() = 0;
952
954};
955
961{
962public:
970
975 virtual const ChatStatus* GetChatStatus() = 0;
976
983
989
993 virtual const zchar_t* getChatLegalNoticesPrompt() = 0;
994
999
1005
1010
1015
1021 virtual bool IsChatMessageCanBeDeleted(const zchar_t* msgID) = 0;
1022
1028 virtual SDKError DeleteChatMessage(const zchar_t* msgID) = 0;
1029
1034
1039 virtual IChatMsgInfo* GetChatMessageById(const zchar_t* msgID) = 0;
1040
1045
1051
1056 virtual bool IsFileTransferEnabled() = 0;
1057
1065 virtual SDKError TransferFile(const zchar_t* filePath, unsigned int userid) = 0;
1066
1073 virtual SDKError TransferFileToAll(const zchar_t* filePath) = 0;
1074
1080
1085 virtual unsigned long long GetMaxTransferFileSizeBytes() = 0;
1086};
1088#endif
Chat message builder to create ChatMsgInfo objects.
virtual IChatMsgInfoBuilder * SetContent(const zchar_t *content)=0
Sets chat message content.
virtual IChatMsgInfoBuilder * SetThreadId(const zchar_t *threadId)=0
Sets the ID of the thread where the message will be posted.
virtual IChatMsgInfo * Build()=0
build chat message entity.
virtual IChatMsgInfoBuilder * UnsetBulletedList(unsigned int positionStart, unsigned int positionEnd)=0
Clear the chat message content bulleted list style.
virtual IChatMsgInfoBuilder * SetFontSize(FontSizeAttrs fontSize, unsigned int positionStart, unsigned int positionEnd)=0
Sets the chat message content font size style.
virtual IChatMsgInfoBuilder * UnsetBackgroundColor(unsigned int positionStart, unsigned int positionEnd)=0
Clear the chat message content background color style.
virtual IChatMsgInfoBuilder * SetStrikethrough(unsigned int positionStart, unsigned int positionEnd)=0
Sets the chat message content strikethrough style.
virtual IChatMsgInfoBuilder * Clear()=0
Clear all set properties.
virtual IChatMsgInfoBuilder * SetBulletedList(unsigned int positionStart, unsigned int positionEnd)=0
Sets the chat message content bulleted list style.
virtual IChatMsgInfoBuilder * UnsetStrikethrough(unsigned int positionStart, unsigned int positionEnd)=0
Clear the chat message content strikethrough style.
virtual IChatMsgInfoBuilder * SetQuotePosition(unsigned int positionStart, unsigned int positionEnd)=0
Sets the chat message content quote style and position.
virtual IChatMsgInfoBuilder * UnsetFontColor(unsigned int positionStart, unsigned int positionEnd)=0
Clear the chat message content font color style.
virtual IChatMsgInfoBuilder * SetNumberedList(unsigned int positionStart, unsigned int positionEnd)=0
Sets the chat message content numbered list style.
virtual IChatMsgInfoBuilder * UnsetItalic(unsigned int positionStart, unsigned int positionEnd)=0
Clear the chat message content italic style.
virtual IChatMsgInfoBuilder * SetParagraph(ParagraphAttrs paragraph, unsigned int positionStart, unsigned int positionEnd)=0
Sets the chat message content paragraph style.
virtual IChatMsgInfoBuilder * UnsetBold(unsigned int positionStart, unsigned int positionEnd)=0
Clear the chat message content italic style.
virtual IChatMsgInfoBuilder * SetItalic(unsigned int positionStart, unsigned int positionEnd)=0
Sets the chat message content italic style.
virtual IChatMsgInfoBuilder * SetMessageType(SDKChatMessageType type)=0
Sets the chat message type.
virtual IChatMsgInfoBuilder * SetInsertLink(InsertLinkAttrs insertLink, unsigned int positionStart, unsigned int positionEnd)=0
Sets the chat message content insert link style.
virtual IChatMsgInfoBuilder * SetReceiver(unsigned int receiver)=0
Sets who will receive the chat message.
virtual IChatMsgInfoBuilder * UnsetFontSize(unsigned int positionStart, unsigned int positionEnd)=0
Clear the chat message content font size style.
virtual IChatMsgInfoBuilder * UnsetNumberedList(unsigned int positionStart, unsigned int positionEnd)=0
Clear the chat message content numbered list style.
virtual IChatMsgInfoBuilder * ClearStyles()=0
Clear all set styles.
virtual IChatMsgInfoBuilder * UnsetInsertLink(unsigned int positionStart, unsigned int positionEnd)=0
Clear the chat message content insert link style.
virtual IChatMsgInfoBuilder * SetUnderline(unsigned int positionStart, unsigned int positionEnd)=0
Sets the chat message content under line style.
virtual IChatMsgInfoBuilder * UnsetUnderline(unsigned int positionStart, unsigned int positionEnd)=0
Clear the chat message content under line style.
virtual IChatMsgInfoBuilder * UnsetParagraph(unsigned int positionStart, unsigned int positionEnd)=0
Clear the chat message content paragraph style. Tips: if paragraph.strParagraph is one of Paragraph_H...
virtual IChatMsgInfoBuilder * DecreaseIndent(IndentAttrs indent, unsigned int positionStart, unsigned int positionEnd)=0
Decrease the chat message content indent style.
virtual IChatMsgInfoBuilder * IncreaseIndent(IndentAttrs indent, unsigned int positionStart, unsigned int positionEnd)=0
Increase the chat message content indent style.
virtual IChatMsgInfoBuilder * SetFontColor(FontColorAttrs color, unsigned int positionStart, unsigned int positionEnd)=0
Sets the chat message content font color style.
virtual IChatMsgInfoBuilder * SetBackgroundColor(BackgroundColorAttrs color, unsigned int positionStart, unsigned int positionEnd)=0
Sets the chat message content background color style.
virtual IChatMsgInfoBuilder * SetBold(unsigned int positionStart, unsigned int positionEnd)=0
Sets the chat message content bold style.
virtual IChatMsgInfoBuilder * UnsetQuotePosition(unsigned int positionStart, unsigned int positionEnd)=0
Clear the chat message content quote style.
Chat message interface.
virtual bool IsChatToAllPanelist()=0
Determines if the current message is sent to all the panelists.
virtual const zchar_t * GetSenderDisplayName()=0
Gets the sender screen name of the current message.
virtual unsigned int GetReceiverUserId()=0
Gets the receiver ID of the current message.
virtual time_t GetTimeStamp()=0
Gets the timestamps of the current message.
virtual SDKChatMessageType GetChatMessageType()=0
Gets the chat message type of the current message.
virtual bool IsChatToAll()=0
Determines if the current message is sent to all.
virtual bool IsComment()=0
Determines if the current message is a reply to another message.
virtual const zchar_t * GetThreadID()=0
Gets the current message's thread ID.
virtual bool IsThread()=0
Determines if the current message is part of a message thread, and can be directly replied to.
virtual const zchar_t * GetMessageID()=0
Gets the message ID of the current message.
virtual IList< SegmentDetails > * GetSegmentDetails()=0
Gets the chat message segment content and style detail of the current message. When receiving rich-te...
virtual bool IsChatToWaitingroom()=0
Determines if the current message is sent to waiting room.
virtual const zchar_t * GetReceiverDisplayName()=0
Gets the receiver screen name of the current message.
virtual const zchar_t * GetContent()=0
Gets the content of the current message.
virtual unsigned int GetSenderUserId()=0
Gets the sender ID of the current message.
Meeting chat controller interface.
virtual bool IsShareMeetingChatLegalNoticeAvailable()=0
Determines whether the legal notice for sharing in meeting chat is available.
virtual SDKError SetEvent(IMeetingChatCtrlEvent *pEvent)=0
Sets meeting chat callback event.
virtual SDKError TransferFileToAll(const zchar_t *filePath)=0
Sends file to all users in current session.
virtual IChatMsgInfo * GetChatMessageById(const zchar_t *msgID)=0
Gets chat message by message ID.
virtual const ChatStatus * GetChatStatus()=0
Gets the authority status to send current message.
virtual IList< const zchar_t * > * GetAllChatMessageID()=0
Gets all chat message id.
virtual IChatMsgInfoBuilder * GetChatMessageBuilder()=0
Gets the chat message builder which can help construct the message entity.
virtual SDKError TransferFile(const zchar_t *filePath, unsigned int userid)=0
Sends file to specify user in current session.
virtual unsigned long long GetMaxTransferFileSizeBytes()=0
Gets the maximum size for file transfer.
virtual const zchar_t * GetShareMeetingChatStartedLegalNoticeContent()=0
Gets the sharing in meeting chat started legal notices content.
virtual SDKError SendChatMsgTo(IChatMsgInfo *msg)=0
Sends a chat message.
virtual const zchar_t * GetShareMeetingChatStoppedLegalNoticeContent()=0
Gets the sharing in meeting chat stopped legal notices content.
virtual SDKError SetParticipantsChatPrivilege(SDKChatPrivilege privilege)=0
Sets the chat privilege of participants.
virtual const zchar_t * getChatLegalNoticesPrompt()=0
Gets the chat legal notices prompt.
virtual SDKError DeleteChatMessage(const zchar_t *msgID)=0
Delete chat message by message id.
virtual bool IsMeetingChatLegalNoticeAvailable()=0
Determines whether the legal notice for chat is available.
virtual const zchar_t * GetTransferFileTypeAllowList()=0
Gets the list of allowed file types in transfer.
virtual const zchar_t * getChatLegalNoticesExplained()=0
Gets the chat legal notices explained.
virtual bool IsFileTransferEnabled()=0
Determines whether file transfer is enabled.
virtual bool IsChatMessageCanBeDeleted(const zchar_t *msgID)=0
Determines whether the message can be deleted.
Meeting chat callback event.
virtual void onShareMeetingChatStatusChanged(bool isStart)=0
virtual void onChatMsgDeleteNotification(const zchar_t *msgID, SDKChatMessageDeleteType deleteBy)=0
Chat message be deleted callback. This function is used to inform the user host/myself the message be...
virtual void onChatMessageEditNotification(IChatMsgInfo *chatMsg)=0
Chat message be edited callback.
virtual void onFileTransferProgress(SDKFileTransferInfo *info)=0
Invoked when send or receive file status change.
virtual void onChatMsgNotification(IChatMsgInfo *chatMsg, const zchar_t *content=nullptr)=0
Chat message callback. This function is used to inform the user once received the message sent by oth...
virtual void onFileReceived(ISDKFileReceiver *receiver)=0
Invoked when receiving a file from another user.
virtual void onFileSendStart(ISDKFileSender *sender)=0
Invoked when start send file.
virtual void onChatStatusChangedNotification(ChatStatus *status_)=0
The authority of chat changes callback. This function is used to inform the user when the authority o...
Chat message rich text item of a certain style.
virtual IList< IRichTextStyleOffset * > * GetTextStyleOffsetList()=0
Gets the rich text position info list of a certain style for the current message.
virtual RichTextStyle GetTextStyle()=0
Gets the rich text type of a portion of the current message.
Chat message rich text style offset.
virtual unsigned int GetPositionEnd()=0
Gets the end position of a certain rich-text style.
virtual unsigned int GetPositionStart()=0
Gets the start position of a certain rich-text style.
virtual const zchar_t * GetReserve()=0
Gets the supplementary information of a certain rich-text style.
virtual SDKError CancelReceive()=0
Cancel the file receive.
virtual SDKFileTransferInfo * GetTransferInfo()=0
virtual unsigned int GetSender()=0
Gets file sender's user id.
virtual SDKError StartReceive(const zchar_t *path)=0
Starts receive the file.
virtual unsigned int GetReceiver()=0
Gets file receiver's user id.
virtual SDKError CancelSend()=0
Cancel the file send.
virtual SDKFileTransferInfo * GetTransferInfo()=0
RichTextStyle
Enumerations of the content rich text style type for chat message.
@ TextStyle_Underline
@ TextStyle_Strikethrough
@ TextStyle_BackgroundColor
@ TextStyle_BulletedList
@ TextStyle_InsertLink
@ TextStyle_FontColor
@ TextStyle_FontSize
@ TextStyle_Paragraph
@ TextStyle_NumberedList
SDKChatMessageType
Enumerations of the type for chat message.
@ SDKChatMessageType_To_None
@ SDKChatMessageType_To_WaitingRoomUsers
@ SDKChatMessageType_To_Individual
@ SDKChatMessageType_To_All
@ SDKChatMessageType_To_Individual_Panelist
@ SDKChatMessageType_To_All_Panelist
struct tagWebinarOtherUserRoleChatStatus WebinarOtherUserRoleChatStatus
The authority to chat for the host, co-host and panelist to chat in webinar. Here are more detailed s...
struct tagSDKFileTransferInfo SDKFileTransferInfo
The basic information of transfer file.
struct tagNormalMeetingChatStatus NormalMeetingChatStatus
The authority to chat in the normal meeting. Here are more detailed structural descriptions....
SDKChatPrivilege
Enumerations of the chat priviledge.
@ SDK_CHAT_PRIVILEGE_ALL
@ SDK_CHAT_PRIVILEGE_HOST
@ SDK_CHAT_PRIVILEGE_END
@ SDK_CHAT_PRIVILEGE_HOST_PUBLIC
@ SDK_CHAT_PRIVILEGE_ALL_PANELIST
@ SDK_CHAT_PRIVILEGE_DISABLE_ATTENDEE_CHAT
struct tagChatStatus ChatStatus
The authority to chat in the specified meeting. Here are more detailed structural descriptions....
struct tagWebinarAttendeeChatStatus WebinarAttendeeChatStatus
The authority to chat for the normal attendee in the webinar. Here are more detailed structural descr...
SDKChatMessageDeleteType
Enumerations of the chat message delete type.
@ SDK_CHAT_DELETE_BY_HOST
@ SDK_CHAT_DELETE_BY_NONE
@ SDK_CHAT_DELETE_BY_DLP
@ SDK_CHAT_DELETE_BY_SELF
@ SDKFileTransferState_Transfering
@ SDKFileTransferState_None
@ SDKFileTransferState_ReadyToTransfer
@ SDKFileTransferState_TransferDone
@ SDKFileTransferState_TransferFailed
FontColor attributes. The standard RGB color model has a value range of 0-255.
Bold attributes.
FontColor attributes. The standard RGB color model has a value range of 0-255.
FontSize attributes.
Indent attributes.
Italic attributes.
NumberedList attributes.
FontColor attributes.
const zchar_t * strParagraph
Quote attributes.
information of rich text with style attributes in a chat message content. Here are more detailed stru...
BulletedListAttrs bulletedListAttrs
const zchar_t * strContent
FontColorAttrs fontColorAttrs
UnderlineAttrs underlineAttrs
ParagraphAttrs paragraphAttrs
BackgroundColorAttrs backgroundColorAttrs
FontSizeAttrs fontSizeAttrs
NumberedListAttrs numberedListAttrs
StrikethroughAttrs strikethroughAttrs
InsertLinkAttrs insertLinkAttrs
Strikethrough attributes.
Underline attributes.
WebinarAttendeeChatStatus webinar_attendee_status
union tagChatStatus::@336361121005362357024045014323362315236027060330 ut
NormalMeetingChatStatus normal_meeting_status
WebinarOtherUserRoleChatStatus webinar_other_status
The authority to chat in the normal meeting. Here are more detailed structural descriptions....
SDKFileTransferStatus trans_status
The authority to chat for the normal attendee in the webinar. Here are more detailed structural descr...
The authority to chat for the host, co-host and panelist to chat in webinar. Here are more detailed s...
ZOOM windows SDK Common Definition File.
#define END_ZOOM_SDK_NAMESPACE
#define BEGIN_ZOOM_SDK_NAMESPACE
char zchar_t
SDKError
Enumeration of common errors of SDK.