mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-16 01:40:52 +08:00
28 lines
553 B
C++
28 lines
553 B
C++
#pragma once
|
|
#include "../acl_cpp_define.hpp"
|
|
#include "../stdlib/string.hpp"
|
|
#include "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();
|
|
|
|
/**
|
|
* 获得附件的文件名
|
|
* @return {const char*} 返回值为 NULL 则说明没有找到文件名
|
|
*/
|
|
const char* get_filename() const;
|
|
|
|
private:
|
|
string m_filename;
|
|
};
|
|
|
|
} // namespace acl
|