Dependents: SimpleLCDClock readCard2Twitter_http AnalogClock_StepperMotor_NTP ServoCamV1
Diff: services/email/emailMessage.h
- Revision:
- 0:a2dd0ba6cd2d
- Child:
- 1:7043cc0db03c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/services/email/emailMessage.h Mon May 24 10:24:38 2010 +0000 @@ -0,0 +1,42 @@ +#ifndef EMAIL_MESSAGE_H +#define EMAIL_MESSAGE_H + +class SmtpClient; + +#include "smtp/smtpClient.h" + +#include <queue> +using std::queue; + +#include <string> +using std::string; + +class EmailMessage +{ +public: + EmailMessage(SmtpClient* pClient); + ~EmailMessage(); + + void setFrom(const char* from); + void addTo(const char* to); + int printf(const char* format, ... ); //Can be called multiple times to write the message + + void send(); + + //For now, only message sending is implemented + //int scanf(const char* format, ... ); + +private: + friend class SmtpClient; + queue<string> m_lTo; + string m_from; + + string m_content; + + SmtpClient* m_pClient; + +}; + + + +#endif