MIMEContentAgent.h
资源名称:ZapMail.rar [点击查看]
上传用户:xmpantheon
上传日期:2016-10-20
资源大小:7502k
文件大小:1k
源码类别:
Email服务器
开发平台:
Visual C++
- // MIMEContentAgent.h: interface for the CMIMEContentAgent class.
- // Author: Wes Clyburn (clyburnw@enmu.edu)
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MIMECONTENTAGENT_H__74AE0FE2_F4D9_11D1_870E_444553540001__INCLUDED_)
- #define AFX_MIMECONTENTAGENT_H__74AE0FE2_F4D9_11D1_870E_444553540001__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- // CMIMEContentAgent
- // Abstract base class. Content agents support MIME
- // content types on behalf of CMIMEMessage
- //
- class CMIMEContentAgent
- {
- public:
- CMIMEContentAgent( int nMIMEType );
- virtual ~CMIMEContentAgent();
- BOOL QueryType( int nContentType );
- virtual BOOL AppendPart( LPCTSTR szContent,
- LPCTSTR szParameters,
- int nEncoding,
- BOOL bPath,
- CString& sDestination ) = 0;
- virtual CString GetContentTypeString() = 0;
- protected:
- virtual CString build_sub_header( LPCTSTR szContent,
- LPCTSTR szParameters,
- int nEncoding,
- BOOL bPath ) = 0;
- private:
- int m_nMIMETypeIHandle;
- };
- #endif // !defined(AFX_MIMECONTENTAGENT_H__74AE0FE2_F4D9_11D1_870E_444553540001__INCLUDED_)