mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-13 16:35:35 +08:00
9697f95b8f
This reverts commit 15d999759e
.
32 lines
635 B
C++
32 lines
635 B
C++
#pragma once
|
|
#include "../acl_cpp_define.hpp"
|
|
#include "../stdlib/string.hpp"
|
|
#include "mime_node.hpp"
|
|
|
|
#if !defined(ACL_MIME_DISABLE)
|
|
|
|
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(void);
|
|
|
|
/**
|
|
* 获得附件的文件名
|
|
* @return {const char*} 返回值为 NULL 则说明没有找到文件名
|
|
*/
|
|
const char* get_filename(void) const;
|
|
|
|
private:
|
|
string m_filename;
|
|
};
|
|
|
|
} // namespace acl
|
|
|
|
#endif // !defined(ACL_MIME_DISABLE)
|