mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 17:00:52 +08:00
28 lines
549 B
C++
28 lines
549 B
C++
|
#pragma once
|
|||
|
#include "acl_cpp/acl_cpp_define.hpp"
|
|||
|
#include "acl_cpp/stdlib/string.hpp"
|
|||
|
#include "acl_cpp/mime/mime_node.hpp"
|
|||
|
|
|||
|
namespace acl {
|
|||
|
|
|||
|
class ACL_CPP_API mime_attach : public mime_node
|
|||
|
{
|
|||
|
public:
|
|||
|
mime_attach(const char* emailFile, const MIME_NODE* node,
|
|||
|
bool enableDecode = true, const char* toCharset = "gb2312",
|
|||
|
off_t off = 0);
|
|||
|
|
|||
|
virtual ~mime_attach();
|
|||
|
|
|||
|
/**
|
|||
|
* <EFBFBD><EFBFBD><EFBFBD>ø<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
* @return {const char*} <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵΪ NULL <EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD>û<EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
*/
|
|||
|
const char* get_filename() const;
|
|||
|
|
|||
|
private:
|
|||
|
string m_filename;
|
|||
|
};
|
|||
|
|
|||
|
} // namespace acl
|