mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
Email notification on download completion
This commit is contained in:
42
src/smtp.h
Normal file
42
src/smtp.h
Normal file
@@ -0,0 +1,42 @@
|
||||
/****************************************************************************
|
||||
** $Id: qt/smtp.h 3.3.6 edited Aug 31 2005 $
|
||||
**
|
||||
** Copyright (C) 1992-2005 Trolltech AS. All rights reserved.
|
||||
**
|
||||
** This file is part of an example program for Qt. This example
|
||||
** program may be used, distributed and modified without limitation.
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef SMTP_H
|
||||
#define SMTP_H
|
||||
|
||||
|
||||
#include <QString>
|
||||
#include <QObject>
|
||||
|
||||
struct QTextStream;
|
||||
struct QTcpSocket;
|
||||
|
||||
class Smtp : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Smtp(const QString &from, const QString &to, const QString &subject, const QString &body);
|
||||
~Smtp();
|
||||
|
||||
private slots:
|
||||
void readyRead();
|
||||
|
||||
private:
|
||||
QString message;
|
||||
QTextStream *t;
|
||||
QTcpSocket *socket;
|
||||
QString from;
|
||||
QString rcpt;
|
||||
QString response;
|
||||
enum states{Rcpt,Mail,Data,Init,Body,Quit,Close};
|
||||
int state;
|
||||
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user