blob: 48f0891a416b01cfa118939107cd9afac7ec402a [file] [log] [blame]
Benny Prijono5d9c16f2008-02-22 23:38:47 +00001#if !defined(AFX_SETTINGSDLG_H__46F18E6E_F411_4D9E_BEE9_619D80BC81DC__INCLUDED_)
2#define AFX_SETTINGSDLG_H__46F18E6E_F411_4D9E_BEE9_619D80BC81DC__INCLUDED_
3
4#if _MSC_VER > 1000
5#pragma once
6#endif // _MSC_VER > 1000
7// SettingsDlg.h : header file
8//
9#include <Afxtempl.h>
10
11/////////////////////////////////////////////////////////////////////////////
12// Settings
13struct CPocketPJSettings
14{
15 CString m_Domain;
16 CString m_User;
17 CString m_Password;
18 bool m_UseStun;
19 CString m_StunSrv;
20 bool m_UseIce;
21 bool m_UseSrtp;
22 bool m_UsePublish;
23 CString m_DNS;
24
25 CArray<CString,CString> m_BuddyList;
26
27 // Load from registry
28 void LoadRegistry();
29
30 // Save to registry
31 void SaveRegistry();
32};
33
34
35/////////////////////////////////////////////////////////////////////////////
36// CSettingsDlg dialog
37
38class CSettingsDlg : public CDialog
39{
40// Construction
41public:
42 CSettingsDlg(CPocketPJSettings & cfg, CWnd* pParent = NULL);
43
44// Dialog Data
45 //{{AFX_DATA(CSettingsDlg)
46 enum { IDD = IDD_SETTING };
47 CString m_Domain;
48 BOOL m_ICE;
49 CString m_Passwd;
50 BOOL m_PUBLISH;
51 BOOL m_SRTP;
52 BOOL m_STUN;
53 CString m_StunSrv;
54 CString m_User;
55 CString m_Dns;
56 //}}AFX_DATA
57
58
59// Overrides
60 // ClassWizard generated virtual function overrides
61 //{{AFX_VIRTUAL(CSettingsDlg)
62 public:
63 virtual int DoModal();
64 protected:
65 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
66 //}}AFX_VIRTUAL
67
68// Implementation
69protected:
70 CPocketPJSettings & m_Cfg;
71
72 // Generated message map functions
73 //{{AFX_MSG(CSettingsDlg)
74 // NOTE: the ClassWizard will add member functions here
75 //}}AFX_MSG
76 DECLARE_MESSAGE_MAP()
77};
78
79//{{AFX_INSERT_LOCATION}}
80// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
81
82#endif // !defined(AFX_SETTINGSDLG_H__46F18E6E_F411_4D9E_BEE9_619D80BC81DC__INCLUDED_)