2019-07-28 10:31:56 +08:00
|
|
|
|
// gui_rpcDlg.h : ͷ<>ļ<EFBFBD>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
#include "MeterBar.h"
|
|
|
|
|
#include "rpc/http_download.h"
|
|
|
|
|
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// Cgui_rpcDlg <20>Ի<EFBFBD><D4BB><EFBFBD>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
class Cgui_rpcDlg : public CDialog
|
|
|
|
|
, public rpc_callback
|
|
|
|
|
{
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// <20><><EFBFBD><EFBFBD>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
public:
|
2019-07-28 10:31:56 +08:00
|
|
|
|
Cgui_rpcDlg(CWnd* pParent = NULL); // <20><><EFBFBD><D7BC><EFBFBD>캯<EFBFBD><ECBAAF>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
~Cgui_rpcDlg();
|
|
|
|
|
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// <20>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
enum { IDD = IDD_GUI_RPC_DIALOG };
|
|
|
|
|
|
|
|
|
|
protected:
|
2019-07-28 10:31:56 +08:00
|
|
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧<><D6A7>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// ʵ<><CAB5>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
protected:
|
|
|
|
|
HICON m_hIcon;
|
|
|
|
|
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// <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;
|
2019-07-28 10:31:56 +08:00
|
|
|
|
//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:
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// <20><><EFBFBD><EFBFBD> rpc_callback <20>麯<EFBFBD><E9BAAF>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
|
2019-07-28 10:31:56 +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);
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// <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);
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// <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);
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// <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();
|
|
|
|
|
};
|