summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_multimedia.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-04-24 13:24:33 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-04-24 13:24:33 +0000
commit6fb6adb873fdf453a9c712c5ec8cdfa3182d1973 (patch)
tree744d6c14da3f90cb03a2730b7de4e5f3ceba3e78 /protocols/Tox/src/tox_multimedia.h
parent90fae1963c8236f5fb8c73f490286539a7e061a7 (diff)
Tox: work commit
- multimedia dialogs are reworked - some fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@13081 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_multimedia.h')
-rw-r--r--protocols/Tox/src/tox_multimedia.h65
1 files changed, 45 insertions, 20 deletions
diff --git a/protocols/Tox/src/tox_multimedia.h b/protocols/Tox/src/tox_multimedia.h
index f69430a142..68f35bef56 100644
--- a/protocols/Tox/src/tox_multimedia.h
+++ b/protocols/Tox/src/tox_multimedia.h
@@ -1,53 +1,78 @@
#ifndef _TOX_MULTIMEDIA_H_
#define _TOX_MULTIMEDIA_H_
-class CToxAudioCall : public CToxDlgBase
+#define WM_CALL_END (WM_PROTO_LAST + 100)
+
+class CToxCallDlgBase : public CToxDlgBase
{
protected:
MCONTACT hContact;
- bool isCallStarted;
-
- CCtrlButton ok;
- CCtrlButton cancel;
-
- void SetIcon(const char *name);
virtual void OnInitDialog();
- void OnClose();
+ virtual void OnClose();
virtual INT_PTR DlgProc(UINT msg, WPARAM wParam, LPARAM lParam);
- virtual void OnOk(CCtrlBase*) = 0;
- virtual void OnCancel(CCtrlBase*) = 0;
+ void SetIcon(const char *name);
+ void SetTitle(const TCHAR *title);
public:
- CToxAudioCall(CToxProto *proto, MCONTACT hContact);
-
- void OnStartCall();
+ CToxCallDlgBase(CToxProto *proto, int idDialog, MCONTACT hContact);
};
-class CToxIncomingAudioCall : public CToxAudioCall
+///////////////////////////////////////////////
+
+class CToxIncomingCall : public CToxCallDlgBase
{
+private:
+ CCtrlLabel from;
+ CCtrlLabel date;
+
+ CCtrlButton answer;
+ CCtrlButton reject;
+
protected:
void OnInitDialog();
+ void OnClose();
- void OnOk(CCtrlBase*);
- void OnCancel(CCtrlBase*);
+ void OnAnswer(CCtrlBase*);
public:
- CToxIncomingAudioCall(CToxProto *proto, MCONTACT hContact);
+ CToxIncomingCall(CToxProto *proto, MCONTACT hContact);
};
-class CToxOutgoingAudioCall : public CToxAudioCall
+///////////////////////////////////////////////
+
+class CToxOutgoingCall : public CToxCallDlgBase
{
+private:
+ CCtrlLabel to;
+ CCtrlButton call;
+ CCtrlButton cancel;
+
protected:
void OnInitDialog();
+ //void OnClose();
- void OnOk(CCtrlBase*);
+ void OnCall(CCtrlBase*);
void OnCancel(CCtrlBase*);
public:
- CToxOutgoingAudioCall(CToxProto *proto, MCONTACT hContact);
+ CToxOutgoingCall(CToxProto *proto, MCONTACT hContact);
+};
+
+///////////////////////////////////////////////
+
+class CToxCallDialog : public CToxCallDlgBase
+{
+protected:
+ CCtrlButton end;
+
+ void OnInitDialog();
+ void OnClose();
+
+public:
+ CToxCallDialog(CToxProto *proto, MCONTACT hContact);
};
#endif //_TOX_MULTIMEDIA_H_ \ No newline at end of file