ZOOM Windows SDK  5.2.42037.1112
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 
10 BEGIN_ZOOM_SDK_NAMESPACE
11 
17 {
22 };
23 
26 {
27 public:
28  virtual ~IAnswerItem(){}
29 
32  virtual time_t GetTimeStamp() = 0;
33 
36  virtual const wchar_t* GetText() = 0;
37 
40  virtual const wchar_t* GetSenderName() = 0;
41 
44  virtual const wchar_t* GetQuestionID() = 0;
45 
48  virtual const wchar_t* GetAnswerID() = 0;
49 
52  virtual bool IsPrivate() = 0;
53 
56  virtual bool IsLiveAnswer() = 0;
57 
60  virtual bool IsSenderMyself() = 0;
61 };
62 
65 {
66 public:
67  virtual ~IQAItemInfo() {}
68 
71  virtual time_t GetTimeStamp() = 0;
72 
75  virtual unsigned int GetUpvoteNum() = 0;
76 
79  virtual const wchar_t* GetText() = 0;
80 
83  virtual const wchar_t* GetSenderName() = 0;
84 
87  virtual const wchar_t* GetQuestionID() = 0;
88 
91  virtual bool IsAnonymous() = 0;
92 
95  virtual bool IsMarkedAsAnswered() = 0;
96 
99  virtual bool IsMarkedAsDismissed() = 0;
100 
103  virtual bool IsSenderMyself() = 0;
104 
107  virtual bool IsMySelfUpvoted() = 0;
108 
111  virtual bool HasLiveAnswers() = 0;
112 
115  virtual bool HasTextAnswers() = 0;
116 
119  virtual bool AmILiveAnswering() = 0;
120 
123  virtual const wchar_t* GetLiveAnswerName() = 0;
124 
127  virtual bool IsLiveAnswering() = 0;
128 
131  virtual IList<IAnswerItem*>* GetAnswerList() = 0;
132 };
133 
137 {
138 public:
141  virtual void OnQAConnectStatus(QAConnectStatus connectStatus) = 0;
142 
146  virtual void OnAddQuestion(const wchar_t* questionID, bool bSuccess) = 0;
147 
151  virtual void OnAddAnswer(const wchar_t* answerID, bool bSuccess) = 0;
152 
155  virtual void OnQuestionMarkedAsDismissed(const wchar_t* question_id) = 0;
156 
159  virtual void OnReopenQuestion(const wchar_t* question_id) = 0;
160 
163  virtual void OnReceiveQuestion(const wchar_t* questionID) = 0;
164 
167  virtual void OnReceiveAnswer(const wchar_t* answerID) = 0;
168 
171  virtual void OnUserLivingReply(const wchar_t* questionID) = 0;
172 
175  virtual void OnUserEndLiving(const wchar_t* questionID) = 0;
176 
180  virtual void OnUpvoteQuestion(const wchar_t* question_id, bool order_changed) = 0;
181 
185  virtual void OnRevokeUpvoteQuestion(const wchar_t* question_id, bool order_changed) = 0;
186 
189  virtual void OnDeleteQuestion(IList<const wchar_t*>* lstQuestionID) = 0;
190 
193  virtual void OnDeleteAnswer(IList<const wchar_t*>* lstAnswerID) = 0;
194 
197  virtual void OnAllowAskQuestionAnonymousStatus(bool bEnabled) = 0;
198 
201  virtual void OnAllowAttendeeViewAllQuestionStatus(bool bEnabled) = 0;
202 
205  virtual void OnAllowAttendeeVoteupQuestionStatus(bool bEnabled) = 0;
206 
209  virtual void OnAllowAttendeeCommentQuestionStatus(bool bEnabled) = 0;
210 
212  virtual void OnRefreshQAData() = 0;
213 };
214 
218 {
219 public:
224  virtual SDKError SetEvent(IMeetingQAControllerEvent* pEvent) = 0;
225 
226  //attendee
227 
233  virtual SDKError AddQuestion(const wchar_t* questionContent, bool bAskAnonymous) = 0;
234 
237  virtual int GetMyQuestionCount() = 0;
238 
242 
249  virtual SDKError CommentQuestion(const wchar_t* questionID, const wchar_t* commentContent) = 0;
250 
251  //host
252 
259  virtual SDKError AnswerQuestionPrivate(const wchar_t* questionID, const wchar_t* answerContent) = 0;
260 
267  virtual SDKError AnswerQuestionPublic(const wchar_t* questionID, const wchar_t* answerContent) = 0;
268 
273  virtual SDKError DismissQuestion(const wchar_t* questionID) = 0;
274 
279  virtual SDKError DeleteQuestion(const wchar_t* questionID) = 0;
280 
285  virtual SDKError DeleteAnswer(const wchar_t* answerID) = 0;
286 
291  virtual SDKError ReopenQuestion(const wchar_t* questionID) = 0;
292 
297  virtual SDKError StartLiving(const wchar_t* questionID) = 0;
298 
303  virtual SDKError EndLiving(const wchar_t* questionID) = 0;
304 
307  virtual int GetOpenQuestionCount() = 0;
308 
311  virtual int GetDismissedQuestionCount() = 0;
312 
315  virtual int GetAnsweredQuestionCount() = 0;
316 
320 
324 
328 
333  virtual SDKError EnableAnonnymousQuestion(bool bEnable) = 0;
334 
339  virtual SDKError EnableAttendeeViewAllQuestion(bool bEnable) = 0;
340 
345  virtual SDKError EnableQAComment(bool bEnable) = 0;
346 
351  virtual SDKError EnableQAVoteup(bool bEnable) = 0;
352 
353  //attendee & host
354 
357  virtual bool IsQAEnabled() = 0;
358 
361  virtual bool IsQACommentEnabled() = 0;
362 
365  virtual bool IsQAVoteupEnabled() = 0;
366 
369  virtual bool IsAskQuestionAnonymouslyEnabled() = 0;
370 
373  virtual bool IsAttendeeCanViewAllQuestions()=0;
374 
378 
382  virtual IQAItemInfo* GetQuestion(const wchar_t* questionID) = 0;
383 
387  virtual IAnswerItem* GetAnswer(const wchar_t* answerID) = 0;
388 
394  virtual SDKError VoteupQuestion(const wchar_t* questionID, bool bVokeup) = 0;
395 };
396 
397 END_ZOOM_SDK_NAMESPACE
398 #endif
virtual void OnReceiveAnswer(const wchar_t *answerID)=0
Callback event of receiving answer.
virtual SDKError AnswerQuestionPublic(const wchar_t *questionID, const wchar_t *answerContent)=0
The host answers the question publicly.
virtual void OnReopenQuestion(const wchar_t *question_id)=0
Callback event of reopening question.
virtual void OnAllowAttendeeVoteupQuestionStatus(bool bEnabled)=0
Callback event of enabling attendee to vote up questions.
virtual bool IsAnonymous()=0
Determine if the question is anonymous.
virtual SDKError StartLiving(const wchar_t *questionID)=0
Set the question can be answered live.
virtual SDKError SetEvent(IMeetingQAControllerEvent *pEvent)=0
Set the meeting q&a controller callback event handler.
virtual bool IsQACommentEnabled()=0
Determine if enabled to comment question.
virtual bool IsSenderMyself()=0
Determine if the question&#39;s sender is the user himself or not.
virtual bool IsLiveAnswer()=0
Determine if the answer is live or not.
virtual bool IsMySelfUpvoted()=0
Determine if the user himself is an up_voter of the question or not.
virtual bool HasLiveAnswers()=0
Determine if the question has live answers or not.
virtual time_t GetTimeStamp()=0
Get the timestamp of the answer.
virtual const wchar_t * GetQuestionID()=0
Get the question id.
virtual unsigned int GetUpvoteNum()=0
Get the number of the up_voters of the question.
Meeting q&a controller interface class.
Definition: meeting_qa_ctrl_interface.h:217
Disconnected because of conflict.
Definition: meeting_qa_ctrl_interface.h:21
virtual SDKError AddQuestion(const wchar_t *questionContent, bool bAskAnonymous)=0
The attendee adds a question.
virtual void OnReceiveQuestion(const wchar_t *questionID)=0
Callback event of receiving question.
virtual SDKError ReopenQuestion(const wchar_t *questionID)=0
The host reopens the question.
Definition: zoom_sdk_def.h:288
virtual const wchar_t * GetSenderName()=0
Get the sender&#39;s name of the question.
virtual int GetAnsweredQuestionCount()=0
Get the count of the answered questions.
virtual SDKError EnableAnonnymousQuestion(bool bEnable)=0
Enable or disable to ask question anonymously.
virtual const wchar_t * GetText()=0
Get the text of the answer.
Meeting q&a callback event.
Definition: meeting_qa_ctrl_interface.h:136
virtual void OnQAConnectStatus(QAConnectStatus connectStatus)=0
Callback event of Q&A connecting status.
virtual void OnAllowAttendeeViewAllQuestionStatus(bool bEnabled)=0
Callback event of enabling attendee to view all questions.
virtual void OnUpvoteQuestion(const wchar_t *question_id, bool order_changed)=0
Callback event of voting up question.
virtual void OnUserLivingReply(const wchar_t *questionID)=0
Callback event of user answering live.
virtual void OnRevokeUpvoteQuestion(const wchar_t *question_id, bool order_changed)=0
Callback event of revoking voting up question.
virtual void OnQuestionMarkedAsDismissed(const wchar_t *question_id)=0
Callback event of marking question as dismissed.
virtual bool IsPrivate()=0
Determine if the answer is private or not.
QAConnectStatus
Information category for Q&A connecting. Here are more detailed structural descriptions.
Definition: meeting_qa_ctrl_interface.h:16
virtual void OnAllowAskQuestionAnonymousStatus(bool bEnabled)=0
Callback event of enabling to ask question anonymously.
virtual IList< IQAItemInfo * > * GetDismissedQuestionList()=0
Get the list of the dismissed questions.
SDKError
SDK error types. Here are more detailed structural descriptions.
Definition: zoom_sdk_def.h:29
virtual SDKError VoteupQuestion(const wchar_t *questionID, bool bVokeup)=0
Vote up or revoke voting up the question.
virtual void OnDeleteAnswer(IList< const wchar_t *> *lstAnswerID)=0
Callback event of deleting answer(s).
virtual SDKError EndLiving(const wchar_t *questionID)=0
Set the question can not be answered live.
Connected.
Definition: meeting_qa_ctrl_interface.h:19
virtual SDKError EnableAttendeeViewAllQuestion(bool bEnable)=0
Enable or disable the attendees to view all the questions.
virtual IAnswerItem * GetAnswer(const wchar_t *answerID)=0
Get a certain answer.
virtual bool IsQAVoteupEnabled()=0
Determine if enabled to vote up question.
virtual bool IsLiveAnswering()=0
Determine if the question is being answered live or not.
virtual void OnDeleteQuestion(IList< const wchar_t *> *lstQuestionID)=0
Callback event of deleting question(s).
virtual const wchar_t * GetSenderName()=0
Get the sender&#39;s name of the answer.
virtual void OnAllowAttendeeCommentQuestionStatus(bool bEnabled)=0
Callback event of enabling attendee to comment questions.
virtual IList< IQAItemInfo * > * GetOpenQuestionList()=0
Get the list of the opened questions.
virtual SDKError CommentQuestion(const wchar_t *questionID, const wchar_t *commentContent)=0
The attendee comments a question.
virtual void OnAddAnswer(const wchar_t *answerID, bool bSuccess)=0
Callback event of adding answer.
virtual bool IsAttendeeCanViewAllQuestions()=0
Determine if the attendee can view all the questions.
virtual bool IsMarkedAsDismissed()=0
Determine if the question is marked as dismissed.
virtual SDKError EnableQAVoteup(bool bEnable)=0
Enable or disable to vote up question.
virtual bool IsSenderMyself()=0
Determine whether the answer&#39;s sender is the user himself or not.
virtual time_t GetTimeStamp()=0
Get the timestamp of the question.
virtual IList< IAnswerItem * > * GetAnswerList()=0
Get the list of all the answers to the question.
virtual bool AmILiveAnswering()=0
Determine if the user himself is answering the question live or not.
virtual const wchar_t * GetText()=0
Get the text of the question.
virtual SDKError EnableQAComment(bool bEnable)=0
Enable or disable to comment question.
Question item interface class.
Definition: meeting_qa_ctrl_interface.h:64
virtual IList< IQAItemInfo * > * GetAnsweredQuestionList()=0
Get the list of the answered questions.
virtual const wchar_t * GetLiveAnswerName()=0
Get all the users&#39; names who answers the question live.
virtual const wchar_t * GetQuestionID()=0
Get the related question&#39;s id of the answer.
virtual SDKError AnswerQuestionPrivate(const wchar_t *questionID, const wchar_t *answerContent)=0
The host answers the question to the question sender privately.
Disconnected.
Definition: meeting_qa_ctrl_interface.h:20
Connecting.
Definition: meeting_qa_ctrl_interface.h:18
virtual bool IsAskQuestionAnonymouslyEnabled()=0
Determine if enabled to ask question anonymously.
virtual IList< IQAItemInfo * > * GetMyQuestionList()=0
Get the list of all the questions that the attendee himself added.
virtual bool HasTextAnswers()=0
Determine if the question has text answers or not.
virtual IList< IQAItemInfo * > * GetAllQuestionList()=0
Get the list of all the questions.
virtual int GetDismissedQuestionCount()=0
Get the count of the dismissed questions.
virtual bool IsMarkedAsAnswered()=0
Determine if the question is marked as answered.
virtual IQAItemInfo * GetQuestion(const wchar_t *questionID)=0
Get a certain question.
virtual void OnUserEndLiving(const wchar_t *questionID)=0
Callback event of end of user answering live.
virtual int GetMyQuestionCount()=0
Get the question count of the attendee himself.
virtual void OnAddQuestion(const wchar_t *questionID, bool bSuccess)=0
Callback event of adding question.
virtual bool IsQAEnabled()=0
Determine if the meeting q&a service is enabled.
Answer item interface class.
Definition: meeting_qa_ctrl_interface.h:25
virtual int GetOpenQuestionCount()=0
Get the count of the opened questions.
virtual const wchar_t * GetAnswerID()=0
Get the answer id.
virtual SDKError DeleteAnswer(const wchar_t *answerID)=0
The host deletes the answerID.
virtual void OnRefreshQAData()=0
Callback event of refreshing q&a data.
virtual SDKError DismissQuestion(const wchar_t *questionID)=0
The host dismisses the question.
virtual SDKError DeleteQuestion(const wchar_t *questionID)=0
The host deletes the question.