47 lines
711 B
C++
47 lines
711 B
C++
#ifndef _POP_MAILMESSAGE_HPP_
|
|
#define _POP_MAILMESSAGE_HPP_
|
|
#ifndef _POP_HEADER_HPP_
|
|
#include <pop/header.hpp>
|
|
#endif
|
|
#ifndef _COMMON_BLOCK_HPP_
|
|
#include <common/block.hpp>
|
|
#endif
|
|
#ifndef _COMMON_STRING_HPP_
|
|
#include <common/string.hpp>
|
|
#endif
|
|
|
|
class Mail : public Block<String>, public Header
|
|
{
|
|
public:
|
|
Mail(void);
|
|
Mail(Block<String> &msgLines);
|
|
virtual ~Mail();
|
|
Mail &operator=(Block<String> &msgLines);
|
|
private:
|
|
};
|
|
|
|
inline
|
|
Mail::Mail(void)
|
|
{
|
|
}
|
|
|
|
inline
|
|
Mail::Mail(Block<String> &msgLines)
|
|
: Block<String>(msgLines), Header(msgLines)
|
|
{
|
|
}
|
|
|
|
inline
|
|
Mail::~Mail()
|
|
{
|
|
}
|
|
|
|
inline
|
|
Mail &Mail::operator=(Block<String> &msgLines)
|
|
{
|
|
(Block<String>&)*this=msgLines;
|
|
(Header&)*this=msgLines;
|
|
return *this;
|
|
}
|
|
#endif
|