testtoolsconn/stat/desktop/testsource/dlltester/inc/dlltestdlg.h
changeset 0 3da2a79470a7
equal deleted inserted replaced
-1:000000000000 0:3da2a79470a7
       
     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 // dlltestDlg.h : header file
       
    22 //
       
    23 
       
    24 #if !defined(AFX_DLLTESTDLG_H__04DFB726_4E37_11D6_BC5F_00B0D065107F__INCLUDED_)
       
    25 #define AFX_DLLTESTDLG_H__04DFB726_4E37_11D6_BC5F_00B0D065107F__INCLUDED_
       
    26 
       
    27 #if _MSC_VER > 1000
       
    28 #pragma once
       
    29 #endif // _MSC_VER > 1000
       
    30 
       
    31 #include <statcommon.h>
       
    32 #include <ini.h>
       
    33 
       
    34 /////////////////////////////////////////////////////////////////////////////
       
    35 // CDlltestDlg dialog
       
    36 
       
    37 class CDlltestDlg : public CDialog
       
    38 {
       
    39 // Construction
       
    40 public:
       
    41 	CDlltestDlg(CWnd* pParent = NULL);	// standard constructor
       
    42 	void Run();
       
    43 
       
    44 // Dialog Data
       
    45 	//{{AFX_DATA(CDlltestDlg)
       
    46 	enum { IDD = IDD_DLLTEST_DIALOG };
       
    47 	CButton	m_RemoveImages;
       
    48 	CButton	m_Run;
       
    49 	CButton	m_ChkLogtofile;
       
    50 	CButton	m_BrowseSnapshot;
       
    51 	CButton	m_BrowseRefImages;
       
    52 	CButton	m_BrowseLog;
       
    53 	CButton	m_BrowseCmdFile;
       
    54 	CButton	m_CheckCmdFile;
       
    55 	CButton	m_CheckVerification;
       
    56 	CButton	m_CheckSnapshot;
       
    57 	CButton	m_CheckRawCmd;
       
    58 	CEdit	m_Address;
       
    59 	CComboBox	m_Connection;
       
    60 	CProgressCtrl	m_Progress;
       
    61 	CEdit	m_Snapshot;
       
    62 	CEdit	m_Delay;
       
    63 	CEdit	m_Fudge;
       
    64 	CEdit	m_RefDir;
       
    65 	CEdit	m_RawCmd;
       
    66 	CEdit	m_LogFile;
       
    67 	CEdit	m_CmdFile;
       
    68 	CEdit	m_Iterations;
       
    69 	CComboBox	m_Platform;
       
    70 	CComboBox	m_Link;
       
    71 	//}}AFX_DATA
       
    72 
       
    73 	// ClassWizard generated virtual function overrides
       
    74 	//{{AFX_VIRTUAL(CDlltestDlg)
       
    75 	protected:
       
    76 	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
       
    77 	//}}AFX_VIRTUAL
       
    78 
       
    79 // Implementation
       
    80 protected:
       
    81 	HICON m_hIcon;
       
    82 
       
    83 	// Generated message map functions
       
    84 	//{{AFX_MSG(CDlltestDlg)
       
    85 	virtual BOOL OnInitDialog();
       
    86 	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
       
    87 	afx_msg void OnPaint();
       
    88 	afx_msg HCURSOR OnQueryDragIcon();
       
    89 	afx_msg void OnRun();
       
    90 	afx_msg void OnChangeConnection();
       
    91 	virtual void OnOK();
       
    92 	afx_msg void OnResetsettings();
       
    93 	afx_msg void OnResettests();
       
    94 	afx_msg void OnBrowselog();
       
    95 	afx_msg void OnCheckcmdfile();
       
    96 	afx_msg void OnCheckrawcmd();
       
    97 	afx_msg void OnChecksnapshot();
       
    98 	afx_msg void OnCheckverification();
       
    99 	afx_msg void OnBrowsecmdfile();
       
   100 	afx_msg void OnBrowsesnapshot();
       
   101 	afx_msg void OnBrowserefimages();
       
   102 	afx_msg void OnChklogtofile();
       
   103 	//}}AFX_MSG
       
   104 	DECLARE_MESSAGE_MAP()
       
   105 
       
   106 private:
       
   107 	void LoadEntrypoint(HINSTANCE inst, FARPROC *fn, const char *name);
       
   108 	bool LoadFunctionEntrypoints(HINSTANCE inst);
       
   109 	void Evaluate(int ret, int handle);
       
   110 	bool WriteBitmap(char *file, TBitmapFileHeader *fileheader, TBitmapInfoHeader * bmpHeader, char *bmpBits, unsigned long lSize);
       
   111 	int GetIncrement();
       
   112 	void ReadSettings();
       
   113 	void SaveSettings();
       
   114 	void AddConnectPlatforms();
       
   115 	void AddPortPlatforms();
       
   116 	void ChangeConnection(int iSelection);
       
   117 	void EnableFields(bool bEnable);
       
   118 	void GetLogFolder(CString& logFileFolder) const;
       
   119 	void GetLogFilePath(const char* logFileName, CString& logFilePath) const;
       
   120 
       
   121 	bool bRunning;				// flag set if currently processing a script
       
   122 	HANDLE hThreadHandle;		// handle to our worker thread
       
   123 	char szBuffer[2048];		// global buffer for strings
       
   124 	int iValue;					// global buffer for ints
       
   125 	int h;						// handle to stat
       
   126 	bool bErrors;
       
   127 	CStatIniFile statIniFile;
       
   128 };
       
   129 
       
   130 //{{AFX_INSERT_LOCATION}}
       
   131 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
       
   132 
       
   133 #endif // !defined(AFX_DLLTESTDLG_H__04DFB726_4E37_11D6_BC5F_00B0D065107F__INCLUDED_)