diff options
Diffstat (limited to 'protocols/Tox/src/tox_multimedia.h')
-rw-r--r-- | protocols/Tox/src/tox_multimedia.h | 65 |
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 |