0
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
#if !defined(AFX_STATMANAGECONNECTION_H__49661E91_DF72_11D6_BC83_00B0D065107F__INCLUDED_)
|
|
22 |
#define AFX_STATMANAGECONNECTION_H__49661E91_DF72_11D6_BC83_00B0D065107F__INCLUDED_
|
|
23 |
|
|
24 |
#if _MSC_VER > 1000
|
|
25 |
#pragma once
|
|
26 |
#endif // _MSC_VER > 1000
|
|
27 |
// STATManageConnection.h : header file
|
|
28 |
//
|
|
29 |
|
|
30 |
#include <STATExp.h>
|
|
31 |
|
|
32 |
#include "ini.h"
|
|
33 |
|
|
34 |
/////////////////////////////////////////////////////////////////////////////
|
|
35 |
// STATManageConnection dialog
|
|
36 |
|
|
37 |
class STATManageConnection : public CDialog
|
|
38 |
{
|
|
39 |
// Construction
|
|
40 |
public:
|
|
41 |
STATManageConnection(CWnd* pParent = NULL); // standard constructor
|
|
42 |
|
|
43 |
// Dialog Data
|
|
44 |
//{{AFX_DATA(STATManageConnection)
|
|
45 |
enum { IDD = IDD_MANAGECONNECTION };
|
|
46 |
CEdit m_Address;
|
|
47 |
CComboBox m_Transport;
|
|
48 |
CListBox m_ListConnections;
|
|
49 |
//}}AFX_DATA
|
|
50 |
|
|
51 |
|
|
52 |
// Overrides
|
|
53 |
// ClassWizard generated virtual function overrides
|
|
54 |
//{{AFX_VIRTUAL(STATManageConnection)
|
|
55 |
protected:
|
|
56 |
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
57 |
//}}AFX_VIRTUAL
|
|
58 |
|
|
59 |
// Implementation
|
|
60 |
protected:
|
|
61 |
|
|
62 |
// Generated message map functions
|
|
63 |
//{{AFX_MSG(STATManageConnection)
|
|
64 |
afx_msg void OnRemove();
|
|
65 |
virtual BOOL OnInitDialog();
|
|
66 |
virtual void OnOK();
|
|
67 |
afx_msg void OnAdd();
|
|
68 |
virtual void OnCancel();
|
|
69 |
afx_msg void OnSelchangeListconnections();
|
|
70 |
afx_msg void OnSelchangeTransport();
|
|
71 |
//}}AFX_MSG
|
|
72 |
DECLARE_MESSAGE_MAP()
|
|
73 |
|
|
74 |
private:
|
|
75 |
bool InList(CString & Entry);
|
|
76 |
static LPTSTR ToUnicode(const char *string); // convert ANSI to Unicode
|
|
77 |
static char * ToAnsi(LPCTSTR string); // convert Unicode to ANSI
|
|
78 |
|
|
79 |
CStatIniFile statIniFile;
|
|
80 |
long lCount;
|
|
81 |
};
|
|
82 |
|
|
83 |
extern CString cConnectionInfo;
|
|
84 |
|
|
85 |
//{{AFX_INSERT_LOCATION}}
|
|
86 |
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
87 |
|
|
88 |
#endif // !defined(AFX_STATMANAGECONNECTION_H__49661E91_DF72_11D6_BC83_00B0D065107F__INCLUDED_)
|