From 67c3941db8a7ea1965dbed909f33380200f04090 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 17 Apr 2015 23:21:43 +0000 Subject: Tox: audio support pt.4 git-svn-id: http://svn.miranda-ng.org/main/trunk@12898 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_multimedia.h | 39 +++++++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 5 deletions(-) (limited to 'protocols/Tox/src/tox_multimedia.h') 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 -- cgit v1.2.3