forked from Blup1980/microsip_42
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RinginDlg.h
61 lines (56 loc) · 1.88 KB
/
RinginDlg.h
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
54
55
56
57
58
59
60
61
/*
* Copyright (C) 2011-2020 MicroSIP (http://www.microsip.org)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#pragma once
#include "resource.h"
#include <pjsua-lib/pjsua.h>
#include <pjsua-lib/pjsua_internal.h>
#include "BaseDialog.h"
class RinginDlg: public CBaseDialog
{
public:
RinginDlg(CWnd* pParent = NULL); // standard constructor
~RinginDlg();
enum { IDD = IDD_RINGIN };
void TabFocusSet() override {};
bool GotoTab(int i, CTabCtrl* tab) { return false; };
pjsua_call_id call_id;
bool answered;
CFont m_font;
bool remoteHasVideo;
CFont m_font_ignore;
void CallAccept(BOOL hasVideo = FALSE);
void SetCallId(pjsua_call_id new_call_id);
void OnAnswer();
private:
void Close(BOOL accept = FALSE);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
public:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnClose();
afx_msg void OnTimer (UINT_PTR TimerVal);
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnBnClickedOk();
afx_msg void OnBnClickedCancel();
afx_msg void OnBnClickedAudio();
afx_msg void OnBnClickedVideo();
afx_msg void OnBnClickedDecline();
afx_msg void OnMove(int x, int y);
};