acl/lib_acl_cpp/include/acl_cpp/mime/mime_attach.hpp

28 lines
576 B
C++
Raw Normal View History

2014-11-19 00:25:21 +08:00
#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