acl/lib_acl_cpp/samples/gui_rpc/gui_rpcDlg.h

66 lines
1.4 KiB
C
Raw Normal View History

// gui_rpcDlg.h : ͷ<>ļ<EFBFBD>
2014-11-19 00:25:21 +08:00
//
#pragma once
#include "MeterBar.h"
#include "rpc/http_download.h"
// Cgui_rpcDlg <20>Ի<EFBFBD><D4BB><EFBFBD>
2014-11-19 00:25:21 +08:00
class Cgui_rpcDlg : public CDialog
, public rpc_callback
{
// <20><><EFBFBD><EFBFBD>
2014-11-19 00:25:21 +08:00
public:
Cgui_rpcDlg(CWnd* pParent = NULL); // <20><>׼<EFBFBD><D7BC><EFBFBD><EFBFBD><ECBAAF>
2014-11-19 00:25:21 +08:00
~Cgui_rpcDlg();
// <20>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
2014-11-19 00:25:21 +08:00
enum { IDD = IDD_GUI_RPC_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧<><D6A7>
2014-11-19 00:25:21 +08:00
// ʵ<><CAB5>
2014-11-19 00:25:21 +08:00
protected:
HICON m_hIcon;
// <20><><EFBFBD>ɵ<EFBFBD><C9B5><EFBFBD>Ϣӳ<CFA2><EFBFBD><E4BAAF>
2014-11-19 00:25:21 +08:00
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
protected:
CMeterBar m_wndMeterBar;
private:
CWndResizer m_resizer;
//CRect m_rect; //<2F><><EFBFBD>ڱ<EFBFBD><DAB1><EFBFBD><EFBFBD>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD>仯ǰ<E4BBAF>Ĵ<EFBFBD>С
2014-11-19 00:25:21 +08:00
CEdit m_reqCtlEdit;
CEdit m_resCtlEdit;
CString m_serverIp;
CString m_serverPort;
public:
// <20><><EFBFBD><EFBFBD> rpc_callback <20><EFBFBD><E9BAAF>
2014-11-19 00:25:21 +08:00
// <20><><EFBFBD><EFBFBD> HTTP <20><><EFBFBD><EFBFBD>ͷ<EFBFBD><CDB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E9BAAF>
2014-11-19 00:25:21 +08:00
virtual void SetRequestHdr(const char* hdr);
// <20><><EFBFBD><EFBFBD> HTTP <20><>Ӧͷ<D3A6><CDB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E9BAAF>
2014-11-19 00:25:21 +08:00
virtual void SetResponseHdr(const char* hdr);
// <20><><EFBFBD>ع<EFBFBD><D8B9><EFBFBD><EFBFBD>еĻص<C4BB><D8B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E9BAAF>
2014-11-19 00:25:21 +08:00
virtual void OnDownloading(long long int content_length,
long long int total_read);
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD>Ļص<C4BB><D8B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E9BAAF>
2014-11-19 00:25:21 +08:00
virtual void OnDownloadOver(long long int total_read,
double spent);
public:
afx_msg void OnBnClickedButtonRun();
afx_msg void OnBnClickedClear();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnEnChangeUrl();
};