mycmpp3client.h
来自「SMAL是short message abstract library的缩写,是」· C头文件 代码 · 共 102 行
H
102 行
/**
* MyCMPP3Client.h
*
* CMPP3 API Demo Application.
*
* Copyright 2003-2006 北京风起水流软件工作室
*
* http://www.zealware.com
*
* princetoad@gmail.com
*
*/
//#include "stdafx.h"
#include "CMPP3APIDemo.h"
#include "CMPP3APIDemoDlg.h"
/** 包含必要的头文件和库文件
*/
#include <cmpp/cmppconn.h>
#if defined(_MSC_VER)
#if _MSC_VER >= 1400 ///< vc8(2005)
#ifdef _DEBUG
#pragma comment(lib, "smalsd_vc8_md")
#else
#pragma comment(lib, "smals_vc8_md")
#endif
#elif _MSC_VER >= 1300 ///< VC7(2003)
#ifdef _DEBUG
#pragma comment(lib, "smalsd_vc71_md")
#else
#pragma comment(lib, "smals_vc71_md")
#endif
#else ///< VC6
#ifdef _DEBUG
#pragma comment(lib, "smalsd_vc6_md")
#else
#pragma comment(lib, "smals_vc6_md")
#endif
#endif
#endif
class MyCMPPClient : public CMPPClient
{
public:
MyCMPPClient(CCMPP3APIDemoDlg & _dlg);
virtual ~MyCMPPClient();
/**断开,退出时调用
*/
void Release();
/**打印出连接的统计信息
*/
void DumpStatus(CMPPConnection & connection);
/**@name 重写的虚函数,执行自定义操作
*/
//@{
BOOL OnConnectionSubmiting(
CMPPConnection & connection,
cmpp_submit _message
);
void OnConnectionSubmited(
CMPPConnection & connection,
cmpp_submit _message
);
void OnConnectionSubmitFailed(
CMPPConnection & connection,
cmpp_submit _message
);
void OnReceivedConnectionSubmitResponse(
CMPPConnection & connection,
cmpp_submit_deliver_resp _message
);
void OnReceivedConnectionDeliver(
CMPPConnection & connection,
cmpp_deliver _message
);
void OnReceivedConnectionStatusReport(
CMPPConnection & connection,
cmpp_deliver _message
);
void OnConnectionCleared(CMPPConnection & connection);
void OnConnectionLogWrite(CMPPConnection & connection, const char * str);
void OnLogWrite(const char * pchFmt, ...);
protected:
CCMPP3APIDemoDlg & dlg;
//@}
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?