summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_multimedia.h
blob: 5145bc35397726f64ede66a50b5426d5c278d41e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef _TOX_MULTIMEDIA_H_
#define _TOX_MULTIMEDIA_H_

class CToxAudioCall : public CToxDlgBase
{
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*);

public:
	CToxIncomingAudioCall(CToxProto *proto, MCONTACT hContact);
};

class CToxOutcomingAudioCall : public CToxAudioCall
{
protected:
	void OnInitDialog();

	void OnOk(CCtrlBase*);
	void OnCancel(CCtrlBase*);

public:
	CToxOutcomingAudioCall(CToxProto *proto, MCONTACT hContact);
};

#endif //_TOX_MULTIMEDIA_H_