FEATURE: Added support for secure SMTP connection (SSL)

FEATURE: Added support for SMTP authentication
This commit is contained in:
Christophe Dumez 2011-04-09 17:39:51 +00:00
parent 0a6f591cf5
commit 58bfa6f1bb
9 changed files with 599 additions and 173 deletions

View file

@ -82,6 +82,7 @@ void qt_mac_set_dock_menu(QMenu *menu);
#include "programupdater.h"
#endif
#include "powermanagement.h"
#include "smtp.h"
using namespace libtorrent;
@ -97,6 +98,10 @@ using namespace libtorrent;
// Constructor
MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), m_posInitialized(false), force_exit(false) {
setupUi(this);
// TODO: Remove this
Smtp *sender = new Smtp(this);
sender->sendMail("notification@qbittorrent.org", Preferences().getMailNotificationEmail(), "title", "content");
Preferences pref;
ui_locked = pref.isUILocked();
setWindowTitle(tr("qBittorrent %1", "e.g: qBittorrent v0.x").arg(QString::fromUtf8(VERSION)));