@@ -42,16 +42,11 @@ class ICustomizedShareRenderEvent
42
42
virtual void onWindowMsgNotification (UINT uMsg, WPARAM wParam, LPARAM lParam) = 0;
43
43
};
44
44
45
- // / \brief Share render interface.
45
+ // / \brief Share action base interface.
46
46
// /
47
- class ICustomizedShareRender
47
+ class IShareActionBase
48
48
{
49
49
public:
50
- // / \brief Set the share render callback event handler.
51
- // / \param pEvent A pointer to the ICustomizedShareRenderEvent that receives the share render event.
52
- // / \return If the function succeeds, the return value is SDKErr_Success.
53
- // /Otherwise failed. To get extended error information, see \link SDKError \endlink enum.
54
- virtual SDKError SetEvent (ICustomizedShareRenderEvent* pEvent) = 0;
55
50
56
51
// / \brief Show the shared content received.
57
52
// / \return If the function succeeds, the return value is SDKErr_Success.
@@ -63,6 +58,25 @@ class ICustomizedShareRender
63
58
// /Otherwise failed. To get extended error information, see \link SDKError \endlink enum.
64
59
virtual SDKError Hide () = 0;
65
60
61
+ // / \brief Get the window handle of showing sharing content.
62
+ // / \return If the function succeeds, the return value is the window handle.
63
+ // /Otherwise failed, the return value is NULL.
64
+ virtual HWND GetOwnerWnd () = 0;
65
+
66
+ virtual ~IShareActionBase () {}
67
+ };
68
+
69
+ // / \brief Share render interface.
70
+ // /
71
+ class ICustomizedShareRender : public IShareActionBase
72
+ {
73
+ public:
74
+ // / \brief Set the share render callback event handler.
75
+ // / \param pEvent A pointer to the ICustomizedShareRenderEvent that receives the share render event.
76
+ // / \return If the function succeeds, the return value is SDKErr_Success.
77
+ // /Otherwise failed. To get extended error information, see \link SDKError \endlink enum.
78
+ virtual SDKError SetEvent (ICustomizedShareRenderEvent* pEvent) = 0;
79
+
66
80
// / \brief View the sharing content from the specified user ID.
67
81
// / \param userid Specify the user ID that is sending the sharing content.
68
82
// / \remarks Call the IMeetingShareController::GetViewableShareSourceList to get the list of users who are sending the sharing.
@@ -88,11 +102,6 @@ class ICustomizedShareRender
88
102
// /Otherwise failed. To get extended error information, see \link SDKError \endlink enum.
89
103
virtual SDKError SetViewMode (CustomizedViewShareMode mode) = 0;
90
104
91
- // / \brief Get the window handle of showing sharing content.
92
- // / \return If the function succeeds, the return value is the window handle.
93
- // /Otherwise failed, the return value is NULL.
94
- virtual HWND GetOwnerWnd () = 0;
95
-
96
105
// / \brief Redraw the window of showing the sharing.
97
106
// / \return If the function succeeds, the return value is SDKErr_Success.
98
107
// /Otherwise failed. To get extended error information, see \link SDKError \endlink enum.
@@ -101,6 +110,76 @@ class ICustomizedShareRender
101
110
virtual SDKError HandleWindowsMoveMsg () = 0;
102
111
virtual ~ICustomizedShareRender (){}
103
112
};
113
+
114
+
115
+ // / \brief The share action callback event.
116
+ // /
117
+ class IShareActionEvent
118
+ {
119
+ public:
120
+ // / \brief Callback event the moment the user receives the shared content.
121
+ virtual void onSharingContentStartRecving () = 0;
122
+
123
+ // / \brief Callback event when the app receives the window messages from the sharer. This is a list of the window messages.
124
+ // /WM_MOUSEMOVE
125
+ // /WM_MOUSEENTER
126
+ // /WM_MOUSELEAVE
127
+ // /WM_LBUTTONDOWN
128
+ // /WM_LBUTTONUP
129
+ // /WM_RBUTTONUP
130
+ // /WM_LBUTTONDBLCLK
131
+ // /WM_KEYDOWN
132
+ virtual void onWindowMsgNotification (UINT uMsg, WPARAM wParam, LPARAM lParam) = 0;
133
+
134
+ // / \brief The callback is triggered before the share action is destroyed.
135
+ // / \param iSharingID Specify the sharing ID.
136
+ // / \remarks The specified share action is destroyed once the function calls end. The user must complete the operations related to the share action before the function calls end.
137
+ virtual void onActionBeforeDestroyed (const unsigned int iSharingID) = 0;
138
+
139
+ virtual ~IShareActionEvent () {}
140
+ };
141
+
142
+ // / \brief The share action interface.
143
+ // /
144
+ class IShareAction : public IShareActionBase
145
+ {
146
+ public:
147
+ // / \brief Set the share action callback event handler.
148
+ // / \param pEvent A pointer to the IShareActionEvent that receives the share render event.
149
+ // / \return If the function succeeds, the return value is SDKErr_Success.
150
+ // /Otherwise the function fails. To get extended error information, see \link SDKError \endlink enum.
151
+ virtual SDKError SetEvent (IShareActionEvent* pEvent) = 0;
152
+
153
+ // / \brief Resize the share action in the specified area and reset the parent window.
154
+ // / \param rc Specify a new display area. The coordinate value of the structure is that of the parent window of share action.
155
+ // / \param hParentWnd Specify a new parent window HWND.
156
+ // / \return If the function succeeds, the return value is SDKErr_Success.
157
+ // /Otherwise the function fails. To get extended error information, see \link SDKError \endlink enum.
158
+ virtual SDKError Reposition (RECT rc, HWND hParentWnd = nullptr ) = 0;
159
+
160
+ // / \brief Get the sharing ID.
161
+ // / \return If the function succeeds, the return value is the sharing ID.
162
+ // /Otherwise the function fails, and the return value is ZERO(0).
163
+ virtual const unsigned int GetSharingID () = 0;
164
+
165
+ // / \brief Get the name of the sharing user.
166
+ // / \return If the function succeeds, the return value is the name.
167
+ // /Otherwise the function fails, and the return value is NULL.
168
+ virtual const zchar_t * GetSharingUserName () = 0;
169
+
170
+ // / \brief Subscribe the sharing content.
171
+ // / \return If the function succeeds, the return value is SDKErr_Success.
172
+ // /Otherwise the function fails. To get extended error information, see \link SDKError \endlink enum.
173
+ virtual SDKError Subscribe () = 0;
174
+
175
+ // / \brief Unsubscribe the sharing content.
176
+ // / \return If the function succeeds, the return value is SDKErr_Success.
177
+ // /Otherwise the function fails. To get extended error information, see \link SDKError \endlink enum.
178
+ virtual SDKError Unsubscribe () = 0;
179
+
180
+ virtual ~IShareAction () {}
181
+ };
182
+
104
183
END_ZOOM_SDK_NAMESPACE
105
184
106
185
#endif
0 commit comments