|
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 // myclientDlg.h : header file |
|
22 // |
|
23 |
|
24 #if !defined(AFX_MYCLIENTDLG_H__DCBFD0A5_CBD8_11D6_AF94_000000000000__INCLUDED_) |
|
25 #define AFX_MYCLIENTDLG_H__DCBFD0A5_CBD8_11D6_AF94_000000000000__INCLUDED_ |
|
26 |
|
27 #if _MSC_VER > 1000 |
|
28 #pragma once |
|
29 #endif // _MSC_VER > 1000 |
|
30 |
|
31 class CSTATSocket; |
|
32 |
|
33 #define STAT_TEMP_FILE "C:\\stat_temp_file.tmp" |
|
34 |
|
35 ///////////////////////////////////////////////////////////////////////////// |
|
36 // CMyclientDlg dialog |
|
37 |
|
38 class CMyclientDlg : public CDialog |
|
39 { |
|
40 // Construction |
|
41 public: |
|
42 CMyclientDlg(CWnd* pParent = NULL); // standard constructor |
|
43 |
|
44 CSTATSocket* pSocket; |
|
45 |
|
46 // Dialog Data |
|
47 //{{AFX_DATA(CMyclientDlg) |
|
48 enum { IDD = IDD_MYCLIENT_DIALOG }; |
|
49 CButton m_Info; |
|
50 CButton m_Receive; |
|
51 CButton m_ChkListen; |
|
52 CEdit m_Port; |
|
53 CEdit m_Machine; |
|
54 CButton m_Connect; |
|
55 CButton m_Send; |
|
56 CEdit m_SendMsg; |
|
57 CListBox m_RecvList; |
|
58 //}}AFX_DATA |
|
59 |
|
60 // ClassWizard generated virtual function overrides |
|
61 //{{AFX_VIRTUAL(CMyclientDlg) |
|
62 protected: |
|
63 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support |
|
64 //}}AFX_VIRTUAL |
|
65 |
|
66 // Implementation |
|
67 protected: |
|
68 HICON m_hIcon; |
|
69 |
|
70 // Generated message map functions |
|
71 //{{AFX_MSG(CMyclientDlg) |
|
72 virtual BOOL OnInitDialog(); |
|
73 afx_msg void OnSysCommand(UINT nID, LPARAM lParam); |
|
74 afx_msg void OnPaint(); |
|
75 afx_msg HCURSOR OnQueryDragIcon(); |
|
76 afx_msg void OnSend(); |
|
77 afx_msg void OnConnect(); |
|
78 afx_msg void OnReceive(); |
|
79 afx_msg void OnChklisten(); |
|
80 virtual void OnOK(); |
|
81 afx_msg void OnInfo(); |
|
82 //}}AFX_MSG |
|
83 DECLARE_MESSAGE_MAP() |
|
84 |
|
85 private: |
|
86 void Prepare(); |
|
87 void OpenDataInNotepad(char *pContents, unsigned long ulLength); |
|
88 bool CallProcess(LPCTSTR szApplication, LPTSTR szCommandLine, LPCTSTR szDirectory); |
|
89 void AddString(char *szText); |
|
90 void StoreDeviceInformation(char *info, unsigned long length); |
|
91 void ResetDeviceInfo(); |
|
92 void DisplayDeviceInformation(char *data); |
|
93 |
|
94 HANDLE hThreadHandle; |
|
95 |
|
96 // device information - retains information of connected device after <D> command is run |
|
97 char szMachine[256]; |
|
98 char szCPU[256]; |
|
99 char szInterface[256]; |
|
100 char szFamily[256]; |
|
101 char szManufacturer[256]; |
|
102 long lModel; |
|
103 long lFamilyRevision; |
|
104 long lHardwareRevision; |
|
105 long lSoftwareRevision; |
|
106 long lSoftwareBuild; |
|
107 long lMemoryPageSize; |
|
108 long lMemoryRAM; |
|
109 long lMemoryRAMFree; |
|
110 long lMemoryROM; |
|
111 int iDelay; |
|
112 int iImageVerification; |
|
113 char szRefDir[256]; |
|
114 int iFudge; |
|
115 }; |
|
116 |
|
117 //{{AFX_INSERT_LOCATION}} |
|
118 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. |
|
119 |
|
120 #endif // !defined(AFX_MYCLIENTDLG_H__DCBFD0A5_CBD8_11D6_AF94_000000000000__INCLUDED_) |