Meeting SDK for Windows API Reference
Loading...
Searching...
No Matches
meeting_qa_ctrl_interface.h
Go to the documentation of this file.
1
6#ifndef _MEETING_QA_CTRL_INTERFACE_H_
7#define _MEETING_QA_CTRL_INTERFACE_H_
8#include "zoom_sdk_def.h"
9
11
27
33{
34public:
35 virtual ~IAnswerItem(){}
36
41 virtual time_t GetTimeStamp() = 0;
42
47 virtual const zchar_t* GetText() = 0;
48
53 virtual const zchar_t* GetSenderName() = 0;
54
59 virtual const zchar_t* GetQuestionID() = 0;
60
65 virtual const zchar_t* GetAnswerID() = 0;
66
71 virtual bool IsPrivate() = 0;
72
77 virtual bool IsLiveAnswer() = 0;
78
83 virtual bool IsSenderMyself() = 0;
84};
85
91{
92public:
93 virtual ~IQAItemInfo() {}
94
99 virtual time_t GetTimeStamp() = 0;
100
105 virtual unsigned int GetUpvoteNum() = 0;
106
111 virtual const zchar_t* GetText() = 0;
112
117 virtual const zchar_t* GetSenderName() = 0;
118
123 virtual const zchar_t* GetQuestionID() = 0;
124
129 virtual bool IsAnonymous() = 0;
130
135 virtual bool IsMarkedAsAnswered() = 0;
136
141 virtual bool IsMarkedAsDismissed() = 0;
142
147 virtual bool IsSenderMyself() = 0;
148
153 virtual bool IsMySelfUpvoted() = 0;
154
159 virtual bool HasLiveAnswers() = 0;
160
165 virtual bool HasTextAnswers() = 0;
166
171 virtual bool AmILiveAnswering() = 0;
172
177 virtual const zchar_t* GetLiveAnswerName() = 0;
178
183 virtual bool IsLiveAnswering() = 0;
184
190};
191
197{
198public:
200
205 virtual void OnQAConnectStatus(QAConnectStatus connectStatus) = 0;
206
212 virtual void OnAddQuestion(const zchar_t* questionID, bool bSuccess) = 0;
213
219 virtual void OnAddAnswer(const zchar_t* answerID, bool bSuccess) = 0;
220
225 virtual void OnQuestionMarkedAsDismissed(const zchar_t* question_id) = 0;
226
231 virtual void OnReopenQuestion(const zchar_t* question_id) = 0;
232
237 virtual void OnReceiveQuestion(const zchar_t* questionID) = 0;
238
243 virtual void OnReceiveAnswer(const zchar_t* answerID) = 0;
244
249 virtual void OnUserLivingReply(const zchar_t* questionID) = 0;
250
255 virtual void OnUserEndLiving(const zchar_t* questionID) = 0;
256
262 virtual void OnUpvoteQuestion(const zchar_t* question_id, bool order_changed) = 0;
263
269 virtual void OnRevokeUpvoteQuestion(const zchar_t* question_id, bool order_changed) = 0;
270
275 virtual void OnDeleteQuestion(IList<const zchar_t*>* lstQuestionID) = 0;
276
281 virtual void OnDeleteAnswer(IList<const zchar_t*>* lstAnswerID) = 0;
282
287 virtual void OnAllowAskQuestionAnonymousStatus(bool bEnabled) = 0;
288
293 virtual void OnAllowAttendeeViewAllQuestionStatus(bool bEnabled) = 0;
294
299 virtual void OnAllowAttendeeVoteupQuestionStatus(bool bEnabled) = 0;
300
305 virtual void OnAllowAttendeeCommentQuestionStatus(bool bEnabled) = 0;
306
310 virtual void OnRefreshQAData() = 0;
311
316 virtual void onMeetingQAStatusChanged(bool bEnabled) = 0;
317
322 virtual void onAllowAskQuestionStatus(bool bEnabled) = 0;
323};
324
330{
331public:
332
339
350 virtual SDKError AddQuestion(const zchar_t* questionContent, bool bAskAnonymous) = 0;
351
356 virtual int GetMyQuestionCount() = 0;
357
363
371 virtual SDKError CommentQuestion(const zchar_t* questionID, const zchar_t* commentContent) = 0;
372
384 virtual SDKError AnswerQuestionPrivate(const zchar_t* questionID, const zchar_t* answerContent) = 0;
385
393 virtual SDKError AnswerQuestionPublic(const zchar_t* questionID, const zchar_t* answerContent) = 0;
394
400 virtual SDKError DismissQuestion(const zchar_t* questionID) = 0;
401
407 virtual SDKError DeleteQuestion(const zchar_t* questionID) = 0;
408
414 virtual SDKError DeleteAnswer(const zchar_t* answerID) = 0;
415
421 virtual SDKError ReopenQuestion(const zchar_t* questionID) = 0;
422
428 virtual SDKError StartLiving(const zchar_t* questionID) = 0;
429
435 virtual SDKError EndLiving(const zchar_t* questionID) = 0;
436
441 virtual int GetOpenQuestionCount() = 0;
442
447 virtual int GetDismissedQuestionCount() = 0;
448
453 virtual int GetAnsweredQuestionCount() = 0;
454
460
466
472
478 virtual SDKError EnableAnonymousQuestion(bool bEnable) = 0;
479
485 virtual SDKError EnableAttendeeViewAllQuestion(bool bEnable) = 0;
486
492 virtual SDKError EnableQAComment(bool bEnable) = 0;
493
499 virtual SDKError EnableQAVoteup(bool bEnable) = 0;
500
509 virtual bool IsQAEnabled() = 0;
510
515 virtual bool IsQACommentEnabled() = 0;
516
521 virtual bool IsQAVoteupEnabled() = 0;
522
528
534
540
546 virtual IQAItemInfo* GetQuestion(const zchar_t* questionID) = 0;
547
553 virtual IAnswerItem* GetAnswer(const zchar_t* answerID) = 0;
554
561 virtual SDKError VoteupQuestion(const zchar_t* questionID, bool bVokeup) = 0;
562
567 virtual bool IsQALegalNoticeAvailable() = 0;
568
572 virtual const zchar_t* getQALegalNoticesPrompt() = 0;
573
578
584 virtual SDKError EnableMeetingQAFeature(bool bEnable) = 0;
585
590 virtual bool IsMeetingQAFeatureOn() = 0;
591
597 virtual SDKError EnableAskQuestion(bool bEnable) = 0;
598
603 virtual bool IsAskQuestionEnabled() = 0;
604};
605
607#endif
Answer item interface class.
virtual bool IsPrivate()=0
Determine if the answer is private or not.
virtual const zchar_t * GetQuestionID()=0
Get the related question's id of the answer.
virtual time_t GetTimeStamp()=0
Get the timestamp of the answer.
virtual bool IsLiveAnswer()=0
Determine if the answer is live or not.
virtual bool IsSenderMyself()=0
Determine whether the answer's sender is the user himself or not.
virtual const zchar_t * GetText()=0
Get the text of the answer.
virtual const zchar_t * GetSenderName()=0
Get the sender's name of the answer.
virtual const zchar_t * GetAnswerID()=0
Get the answer id.
Meeting q&a callback event.
virtual void OnUpvoteQuestion(const zchar_t *question_id, bool order_changed)=0
Callback event of voting up question.
virtual void OnUserEndLiving(const zchar_t *questionID)=0
Callback event of end of user answering live.
virtual void OnDeleteAnswer(IList< const zchar_t * > *lstAnswerID)=0
Callback event of deleting answer(s).
virtual void OnReopenQuestion(const zchar_t *question_id)=0
Callback event of reopening question.
virtual void OnRefreshQAData()=0
Callback event of refreshing q&a data.
virtual void OnAllowAskQuestionAnonymousStatus(bool bEnabled)=0
Callback event of enabling to ask question anonymously.
virtual void OnQAConnectStatus(QAConnectStatus connectStatus)=0
Callback event of Q&A connecting status.
virtual void OnAllowAttendeeCommentQuestionStatus(bool bEnabled)=0
Callback event of enabling attendee to comment questions.
virtual void OnAddQuestion(const zchar_t *questionID, bool bSuccess)=0
Callback event of adding question.
virtual void OnQuestionMarkedAsDismissed(const zchar_t *question_id)=0
Callback event of marking question as dismissed.
virtual void OnReceiveAnswer(const zchar_t *answerID)=0
Callback event of receiving answer.
virtual void OnAllowAttendeeViewAllQuestionStatus(bool bEnabled)=0
Callback event of enabling attendee to view all questions.
virtual void OnDeleteQuestion(IList< const zchar_t * > *lstQuestionID)=0
Callback event of deleting question(s).
virtual void onAllowAskQuestionStatus(bool bEnabled)=0
Notify host/cohost has changed the status of ask question.
virtual void OnUserLivingReply(const zchar_t *questionID)=0
Callback event of user answering live.
virtual void OnAddAnswer(const zchar_t *answerID, bool bSuccess)=0
Callback event of adding answer.
virtual void OnReceiveQuestion(const zchar_t *questionID)=0
Callback event of receiving question.
virtual void onMeetingQAStatusChanged(bool bEnabled)=0
Callback event of meeting QA feature status changes.
virtual void OnRevokeUpvoteQuestion(const zchar_t *question_id, bool order_changed)=0
Callback event of revoking voting up question.
virtual void OnAllowAttendeeVoteupQuestionStatus(bool bEnabled)=0
Callback event of enabling attendee to vote up questions.
Meeting q&a controller interface class.
virtual const zchar_t * getQALegalNoticesExplained()=0
Get the QA legal notices explained.
virtual SDKError EnableAskQuestion(bool bEnable)=0
Set attendee can ask question.
virtual SDKError AnswerQuestionPrivate(const zchar_t *questionID, const zchar_t *answerContent)=0
The host answers the question to the question sender privately.
virtual SDKError VoteupQuestion(const zchar_t *questionID, bool bVokeup)=0
Vote up or revoke voting up the question.
virtual bool IsAskQuestionEnabled()=0
Determine if the ask question is allowed by the host/co-host.
virtual SDKError CommentQuestion(const zchar_t *questionID, const zchar_t *commentContent)=0
The attendee comments a question.
virtual bool IsQACommentEnabled()=0
Determine if enabled to comment question.
virtual SDKError ReopenQuestion(const zchar_t *questionID)=0
The host reopens the question.
virtual SDKError AnswerQuestionPublic(const zchar_t *questionID, const zchar_t *answerContent)=0
The host answers the question publicly.
virtual int GetOpenQuestionCount()=0
Get the count of the opened questions.
virtual SDKError EnableAnonymousQuestion(bool bEnable)=0
Enable or disable to ask question anonymously.
virtual SDKError EnableMeetingQAFeature(bool bEnable)=0
Set to enable/disable meeting QA.
virtual int GetDismissedQuestionCount()=0
Get the count of the dismissed questions.
virtual bool IsQAEnabled()=0
Determine if the meeting q&a service is enabled.
virtual SDKError EnableAttendeeViewAllQuestion(bool bEnable)=0
Enable or disable the attendees to view all the questions.
virtual int GetMyQuestionCount()=0
Get the question count of the attendee himself.
virtual SDKError StartLiving(const zchar_t *questionID)=0
Set the question can be answered live.
virtual int GetAnsweredQuestionCount()=0
Get the count of the answered questions.
virtual bool IsQALegalNoticeAvailable()=0
Determine whether the legal notice for QA is available.
virtual IQAItemInfo * GetQuestion(const zchar_t *questionID)=0
Get a certain question.
virtual SDKError SetEvent(IMeetingQAControllerEvent *pEvent)=0
Set the meeting q&a controller callback event handler.
virtual SDKError DismissQuestion(const zchar_t *questionID)=0
The host dismisses the question.
virtual bool IsMeetingQAFeatureOn()=0
Determine if meeting QA is enabled in current meeting.
virtual IList< IQAItemInfo * > * GetOpenQuestionList()=0
Get the list of the opened questions.
virtual SDKError EnableQAVoteup(bool bEnable)=0
Enable or disable to vote up question.
virtual bool IsAttendeeCanViewAllQuestions()=0
Determine if the attendee can view all the questions.
virtual IList< IQAItemInfo * > * GetAllQuestionList()=0
Get the list of all the questions.
virtual IList< IQAItemInfo * > * GetMyQuestionList()=0
Get the list of all the questions that the attendee himself added.
virtual bool IsQAVoteupEnabled()=0
Determine if enabled to vote up question.
virtual SDKError DeleteQuestion(const zchar_t *questionID)=0
The host deletes the question.
virtual IAnswerItem * GetAnswer(const zchar_t *answerID)=0
Get a certain answer.
virtual const zchar_t * getQALegalNoticesPrompt()=0
Get the QA legal notices prompt.
virtual IList< IQAItemInfo * > * GetDismissedQuestionList()=0
Get the list of the dismissed questions.
virtual SDKError EndLiving(const zchar_t *questionID)=0
Set the question can not be answered live.
virtual SDKError DeleteAnswer(const zchar_t *answerID)=0
The host deletes the answerID.
virtual SDKError EnableQAComment(bool bEnable)=0
Enable or disable to comment question.
virtual bool IsAskQuestionAnonymouslyEnabled()=0
Determine if enabled to ask question anonymously.
virtual SDKError AddQuestion(const zchar_t *questionContent, bool bAskAnonymous)=0
The attendee adds a question.
virtual IList< IQAItemInfo * > * GetAnsweredQuestionList()=0
Get the list of the answered questions.
Question item interface class.
virtual bool AmILiveAnswering()=0
Determine if the user himself is answering the question live or not.
virtual const zchar_t * GetQuestionID()=0
Get the question id.
virtual unsigned int GetUpvoteNum()=0
Get the number of the up_voters of the question.
virtual bool HasTextAnswers()=0
Determine if the question has text answers or not.
virtual bool IsLiveAnswering()=0
Determine if the question is being answered live or not.
virtual bool HasLiveAnswers()=0
Determine if the question has live answers or not.
virtual bool IsMarkedAsDismissed()=0
Determine if the question is marked as dismissed.
virtual const zchar_t * GetLiveAnswerName()=0
Get all the users' names who answers the question live.
virtual bool IsMarkedAsAnswered()=0
Determine if the question is marked as answered.
virtual time_t GetTimeStamp()=0
Get the timestamp of the question.
virtual const zchar_t * GetText()=0
Get the text of the question.
virtual bool IsSenderMyself()=0
Determine if the question's sender is the user himself or not.
virtual IList< IAnswerItem * > * GetAnswerList()=0
Get the list of all the answers to the question.
virtual bool IsMySelfUpvoted()=0
Determine if the user himself is an up_voter of the question or not.
virtual bool IsAnonymous()=0
Determine if the question is anonymous.
virtual const zchar_t * GetSenderName()=0
Get the sender's name of the question.
QAConnectStatus
Information category for Q&A connecting. Here are more detailed structural descriptions.
@ QA_STATUS_DISCONNECT_CONFLICT
@ QA_STATUS_DISCONNECTED
ZOOM windows SDK Common Definition File.
#define END_ZOOM_SDK_NAMESPACE
wchar_t zchar_t
Definition zoom_sdk_def.h:9
#define BEGIN_ZOOM_SDK_NAMESPACE
SDKError
Enumeration of common errors of SDK.