summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/pocketpj/SettingsDlg.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-02-22 23:38:47 +0000
committerBenny Prijono <bennylp@teluu.com>2008-02-22 23:38:47 +0000
commit05d51710084a1af289b44c33efbf1c61d9af3e80 (patch)
tree2e5103b13d0529fee0d6dd14745444d47f559a06 /pjsip-apps/src/pocketpj/SettingsDlg.h
parent5e9005a6ed8321e2a3d6cd307bafe5c6ca79eee3 (diff)
Ticket #493: PocketPC, a new and better sample application for PocketPC
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1819 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/pocketpj/SettingsDlg.h')
-rw-r--r--pjsip-apps/src/pocketpj/SettingsDlg.h82
1 files changed, 82 insertions, 0 deletions
diff --git a/pjsip-apps/src/pocketpj/SettingsDlg.h b/pjsip-apps/src/pocketpj/SettingsDlg.h
new file mode 100644
index 00000000..48f0891a
--- /dev/null
+++ b/pjsip-apps/src/pocketpj/SettingsDlg.h
@@ -0,0 +1,82 @@
+#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;
+
+ CArray<CString,CString> m_BuddyList;
+
+ // 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 };
+ 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;
+ //}}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)
+ // NOTE: the ClassWizard will add member functions here
+ //}}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_)