使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 4905e2e7537d507f218e8e9595485e09d9f3a2b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// QLRequest.h: interface for the CQLRequest class.
//
//////////////////////////////////////////////////////////////////////
 
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
 
#include "QLCommand.h"
#include "QLCommander.h"
 
enum REQSTATUS
{
    REQ_START=0, REQ_PARAMETER, REQ_PROPERTY, REQ_BODY, REQ_END, REQ_ERR
};
 
class AFX_EXT_CLASS CQLRequest : public CQLCommand  
{
public:
    CQLRequest( CQLCommander *pCommander);
    virtual ~CQLRequest();
 
// Operations
public:
    const DWORD GetReqStatus();
    CQLCommander* GetCommander();
    DWORD RecvBuf( LPBYTE pBuf, long &nSize );
    long Write(const LPVOID pVoid, long nSize);
    long GetSendSize();        // ·µ»Øµ±Ç°ÒѾ­·¢Ë͵ÄÄÚÈÝ´óС
    void SetBody( CString strBody );
 
private:
    long StuffMethod(LPBYTE pBuf, int nSize);
    long StuffProperty(LPBYTE pBuf, int nSize);
    long StuffParam(LPBYTE pBuf, int nSize);
 
    long StuffMethodU(LPBYTE pBuf, int nSize); // _UTOMUL
    long StuffMethodA(LPBYTE pBuf, int nSize );
    long StuffPropertyU(LPBYTE pBuf, int nSize);
    long StuffPropertyA(LPBYTE pBuf, int nSize);
    long StuffParamU(LPBYTE pBuf, int nSize);
    long StuffParamA(LPBYTE pBuf, int nSize);
 
    CQLCommander *m_pCommander;
    REQSTATUS m_reqStatus;
 
    POSITION    m_posParam; // µ±Ç°´¦ÀíµÄ²ÎÊýÁбíµÄλÖÃ
    POSITION    m_posProp; // µ±Ç°´¦ÀíµÄÊôÐÔÁбíλÖÃ
 
#ifndef _UNICODE
    CString        m_strBuff;
#else
    CByteArray    m_arBuff;
#endif
 
    long        m_nSendSize;
 
};