diff options
Diffstat (limited to 'protocols/Tox/src/tox_multimedia.h')
-rw-r--r-- | protocols/Tox/src/tox_multimedia.h | 39 |
1 files changed, 34 insertions, 5 deletions
diff --git a/protocols/Tox/src/tox_multimedia.h b/protocols/Tox/src/tox_multimedia.h index 3dd5ad475b..5145bc3539 100644 --- a/protocols/Tox/src/tox_multimedia.h +++ b/protocols/Tox/src/tox_multimedia.h @@ -3,22 +3,51 @@ class CToxAudioCall : public CToxDlgBase
{
-private:
- int callId;
+protected:
+ MCONTACT hContact;
+ bool isCallStarted;
CCtrlButton ok;
CCtrlButton cancel;
+ void SetIcon(const char *name);
+
+ virtual void OnInitDialog();
+ void OnClose();
+
+ virtual INT_PTR DlgProc(UINT msg, WPARAM wParam, LPARAM lParam);
+
+ virtual void OnOk(CCtrlBase*) = 0;
+ virtual void OnCancel(CCtrlBase*) = 0;
+
+public:
+ CToxAudioCall(CToxProto *proto, MCONTACT hContact);
+
+ void OnStartCall();
+};
+
+class CToxIncomingAudioCall : public CToxAudioCall
+{
protected:
void OnInitDialog();
+
void OnOk(CCtrlBase*);
void OnCancel(CCtrlBase*);
- void OnClose();
- INT_PTR DlgProc(UINT msg, WPARAM wParam, LPARAM lParam);
+public:
+ CToxIncomingAudioCall(CToxProto *proto, MCONTACT hContact);
+};
+
+class CToxOutcomingAudioCall : public CToxAudioCall
+{
+protected:
+ void OnInitDialog();
+
+ void OnOk(CCtrlBase*);
+ void OnCancel(CCtrlBase*);
public:
- CToxAudioCall(CToxProto *proto, int callId);
+ CToxOutcomingAudioCall(CToxProto *proto, MCONTACT hContact);
};
#endif //_TOX_MULTIMEDIA_H_
\ No newline at end of file |