00001 #ifndef MAILERTHREAD_H
00002 #define MAILERTHREAD_H
00003
00004 #include <QThread>
00005
00006 class MailSender;
00007
00008 class MailerThread : public QThread
00009 {
00010 Q_OBJECT
00011 public:
00012 MailerThread(QObject *parent = 0);
00013
00014 void setMessage(const QString &text);
00015 void setSubject(const QString &subject);
00016 void setAttachement(const QString &path);
00017 void setCc(const QString &cc);
00018
00019 protected:
00020 void run();
00021
00022 private:
00023 MailSender *mail;
00024
00025 signals:
00026 void mailSent();
00027 void sendMailError(QString message);
00028 };
00029
00030 #endif // MAILERTHREAD_H