// IOModuleTesterDlg.h : header file // #if !defined(AFX_IOMODULETESTERDLG_H__CCA2862A_4E49_4E41_A219_EAD85CF850CA__INCLUDED_) #define AFX_IOMODULETESTERDLG_H__CCA2862A_4E49_4E41_A219_EAD85CF850CA__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 ///////////////////////////////////////////////////////////////////////////// // CIOModuleTesterDlg dialog #include "MsgAgent.h" //要使用iPush DLL API必須要有此檔 class MessageObject; class CIOModuleTesterDlg : public CDialog { // Construction public: CIOModuleTesterDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CIOModuleTesterDlg) enum { IDD = IDD_IOMODULETESTER_DIALOG }; CString m_strProperty0; CString m_strProperty1; CString m_strProperty2; CString m_strProperty3; CString m_strProperty4; CString m_strAddress; CString m_strDestination; UINT m_nPort; CString m_strReceived; CString m_strText; CString m_strValue0; CString m_strValue1; CString m_strValue2; CString m_strValue3; CString m_strValue4; CString m_strSubscribe; CString m_strUsername; CString m_strProduct; CString m_strPassword; CString m_strCompany; CString m_strName0; CString m_strName1; CString m_strName2; CString m_strName3; CString m_strName4; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CIOModuleTesterDlg) public: virtual BOOL PreTranslateMessage(MSG* pMsg); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; HMODULE m_hAgent; ConnectRealProc m_procConnect; //連線 DisconnectRealProc m_procDisconnect; //斷線 SubSubjectProc m_procSubscribe; //訂閱 UnsubSubjectProc m_procUnsubscribe; //解除訂閱 SubmitSubjectProc m_procSubmit; //送出資料 void DoSetProperty(MessageObject *lpMsgObj, CString strProperty, CString strName, CString strValue); BOOL LoadModule(); void SetUIConnected(); void SetUIDisconnected(); // Generated message map functions //{{AFX_MSG(CIOModuleTesterDlg) virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnButtonConnect(); afx_msg void OnButtonSubscribe(); afx_msg void OnButtonPublish(); afx_msg void OnButtonDisconnect(); afx_msg void OnButtonUnsubscribe(); afx_msg void OnMessageReceived(BlockDataStruct *pBlock, LPARAM lParam); afx_msg void OnCommandReceived(int nCommandType, char *strCommand); afx_msg void OnConnectFail(int nErrorCode, HANDLE hSocket); afx_msg void OnConnectionLost(int nErrorCode, HANDLE hSocket); afx_msg void OnConnectOK(char *HostInfo, HANDLE hSocket); afx_msg void OnButtonClear(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_IOMODULETESTERDLG_H__CCA2862A_4E49_4E41_A219_EAD85CF850CA__INCLUDED_)