summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/pocketpj/SettingsDlg.h
blob: 816ede999e0deadfa601d251a568db03c652d989 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#if !defined(AFX_SETTINGSDLG_H__46F18E6E_F411_4D9E_BEE9_619D80BC81DC__INCLUDED_)
#define AFX_SETTINGSDLG_H__46F18E6E_F411_4D9E_BEE9_619D80BC81DC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SettingsDlg.h : header file
//
#include <Afxtempl.h>

/////////////////////////////////////////////////////////////////////////////
// Settings
struct CPocketPJSettings
{
    CString	m_Domain;
    CString	m_User;
    CString	m_Password;
    bool	m_UseStun;
    CString	m_StunSrv;
    bool	m_UseIce;
    bool	m_UseSrtp;
    bool	m_UsePublish;
    CString	m_DNS;
    bool	m_EchoSuppress;
    DWORD	m_EcTail;
    bool	m_TCP;
    bool	m_VAD;
    bool	m_AutoAnswer;

    CArray<CString,CString> m_Codecs;
    CArray<CString,CString> m_BuddyList;
    
    CPocketPJSettings();

    // Load from registry
    void    LoadRegistry();
    
    // Save to registry
    void    SaveRegistry();
};


/////////////////////////////////////////////////////////////////////////////
// CSettingsDlg dialog

class CSettingsDlg : public CDialog
{
// Construction
public:
	CSettingsDlg(CPocketPJSettings & cfg, CWnd* pParent = NULL);

// Dialog Data
	//{{AFX_DATA(CSettingsDlg)
	enum { IDD = IDD_SETTING };
	CComboBox	m_Codecs;
	CString	m_Domain;
	BOOL	m_ICE;
	CString	m_Passwd;
	BOOL	m_PUBLISH;
	BOOL	m_SRTP;
	BOOL	m_STUN;
	CString	m_StunSrv;
	CString	m_User;
	CString	m_Dns;
	BOOL	m_EchoSuppress;
	CString	m_EcTail;
	BOOL	m_TCP;
	BOOL	m_VAD;
	BOOL	m_AutoAnswer;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSettingsDlg)
	public:
	virtual int DoModal();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	CPocketPJSettings & m_Cfg;

	// Generated message map functions
	//{{AFX_MSG(CSettingsDlg)
	afx_msg void OnStun();
	afx_msg void OnEchoSuppress();
	afx_msg void OnSelchangeCodecs();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SETTINGSDLG_H__46F18E6E_F411_4D9E_BEE9_619D80BC81DC__INCLUDED_)