BREW POP / SMTP Mailer - 2 / 6 -
Overview
Application Class: SimpleMailer
SFMTYPEDEFCLASS(SimpleMailer) class SimpleMailer : public SFRApplication { SFMSEALCOPY(SimpleMailer) private: SFXConfig _option; // For address of SMTP server etc. SFXProperty _mail; // For receiving mail public: static SFCInvokerPtr Factory(Void); static SFXConfigPtr GetOption(Void); static SFXPropertyPtr GetMail(Void); private: explicit SimpleMailer(Void) static_throws; virtual ~SimpleMailer(Void); }; // Constructor SimpleMailer::SimpleMailer(Void) static_throws { _option.Load("option.dat"); // Load setup data ::new MainWindow(); // Creates MainWindow return; } SFXConfigPtr SimpleMailer::GetOption(Void) { return &(static_cast<SimpleMailerPtr>(GetInstance())->_option); } SFXPropertyPtr SimpleMailer::GetMail(Void) { return &(static_cast<SimpleMailerPtr>(GetInstance())->_mail); }