acl  3.5.3.0
mime_attach.hpp
浏览该文件的文档.
1 #pragma once
2 #include "../acl_cpp_define.hpp"
3 #include "../stdlib/string.hpp"
4 #include "mime_node.hpp"
5 
6 #if !defined(ACL_MIME_DISABLE)
7 
8 namespace acl {
9 
11 {
12 public:
13  mime_attach(const char* emailFile, const MIME_NODE* node,
14  bool enableDecode = true, const char* toCharset = "gb2312",
15  off_t off = 0);
16 
17  virtual ~mime_attach(void);
18 
19  /**
20  * 获得附件的文件名
21  * @return {const char*} 返回值为 NULL 则说明没有找到文件名
22  */
23  const char* get_filename(void) const;
24 
25 private:
26  string m_filename;
27 };
28 
29 } // namespace acl
30 
31 #endif // !defined(ACL_MIME_DISABLE)
#define ACL_CPP_API