summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_multimedia.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-04-17 23:21:43 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-04-17 23:21:43 +0000
commit67c3941db8a7ea1965dbed909f33380200f04090 (patch)
tree204629e2f887a7f02952375516a1d22c76c79c1f /protocols/Tox/src/tox_multimedia.h
parenta4135a992461726e155c7be95e4ceaabdb3eceff (diff)
Tox: audio support pt.4
git-svn-id: http://svn.miranda-ng.org/main/trunk@12898 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_multimedia.h')
-rw-r--r--protocols/Tox/src/tox_multimedia.h39
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