Pop3Base4.h
资源名称:POP3SMTP.rar [点击查看]
上传用户:pyhyhg
上传日期:2022-08-11
资源大小:56k
文件大小:1k
源码类别:
Email客户端
开发平台:
Visual C++
- //this is base class for CPop3
- //mostly, you don't use it directly (exceptions are Set, and OnConnect)
- //CPop3 will find this class useful
- #if !defined(AFX_GNIAZDO_H__03185426_9BCB_420B_ADA4_4561790828A8__INCLUDED_)
- #define AFX_GNIAZDO_H__03185426_9BCB_420B_ADA4_4561790828A8__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- // Pop3Base4.h : header file
- //
- #define DLG CPOP3SMTPDlg* //change it to your CDialog-based class
- /////////////////////////////////////////////////////////////////////////////
- // CBase4Pop3 command target
- // CBase4Pop3 socket messages:
- #define S_ACCEPT 0
- #define S_CLOSE 1
- #define S_CONNECT 2
- #define S_RECEIVE 3
- #define S_SEND 4
- //#define S_NOTCON 5
- class CBase4Pop3 : public CAsyncSocket
- {
- // Attributes
- public:
- // Operations
- public:
- CBase4Pop3();
- virtual ~CBase4Pop3();
- // Overrides
- public:
- void Set(CDialog * pWnd);
- CDialog * m_pWnd; //pointer to parent
- // Implementation
- protected:
- virtual void OnReceive(int);
- virtual void OnClose(int);
- virtual void OnSend(int);
- virtual void OnConnect(int);
- virtual void OnAccept(int);
- private:
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_GNIAZDO_H__03185426_9BCB_420B_ADA4_456179