Dependents: SimpleLCDClock readCard2Twitter_http AnalogClock_StepperMotor_NTP ServoCamV1
services/email/emailMessage.h
- Committer:
- donatien
- Date:
- 2010-05-24
- Revision:
- 0:a2dd0ba6cd2d
- Child:
- 1:7043cc0db03c
File content as of revision 0:a2dd0ba6cd2d:
#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