2026-05-24 00:02:19 +02:00
|
|
|
#include "emailmanager.h"
|
2026-06-17 22:44:27 +02:00
|
|
|
#include <QDebug>
|
2026-05-24 00:02:19 +02:00
|
|
|
#include <QFile>
|
2026-06-04 18:29:16 +02:00
|
|
|
|
2026-05-17 03:08:16 +02:00
|
|
|
EmailManager::EmailManager(QObject *parent)
|
|
|
|
|
: QObject(parent)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MailItem EmailManager::getMailItemById(qint64 id) const
|
|
|
|
|
{
|
2026-06-17 22:44:27 +02:00
|
|
|
Q_UNUSED(id);
|
|
|
|
|
qDebug() << "[EmailManager] getMailItemById (stub)";
|
|
|
|
|
return MailItem();
|
2026-05-17 03:08:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QString EmailManager::getStorageDirectory() const
|
|
|
|
|
{
|
2026-06-17 22:44:27 +02:00
|
|
|
qDebug() << "[EmailManager] getStorageDirectory (stub)";
|
|
|
|
|
return QString();
|
2026-05-24 00:02:19 +02:00
|
|
|
}
|
|
|
|
|
|
2026-05-24 21:01:05 +02:00
|
|
|
QString EmailManager::getEmailHtmlById(qint64 id) const
|
|
|
|
|
{
|
2026-06-17 22:44:27 +02:00
|
|
|
Q_UNUSED(id);
|
|
|
|
|
qDebug() << "[EmailManager] getEmailHtmlById (stub)";
|
|
|
|
|
return QString("<html><body><p>GMime not available</p></body></html>");
|
2026-05-24 21:01:05 +02:00
|
|
|
}
|
|
|
|
|
|
2026-05-24 00:02:19 +02:00
|
|
|
QString EmailManager::convertEmlToHtml(const QString& emlFilePath) const
|
|
|
|
|
{
|
2026-06-17 22:44:27 +02:00
|
|
|
Q_UNUSED(emlFilePath);
|
|
|
|
|
qDebug() << "[EmailManager] convertEmlToHtml (stub)";
|
|
|
|
|
return QString();
|
2026-05-24 21:01:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool EmailManager::sendEmail(const QString& to, const QString& subject, const QString& body)
|
|
|
|
|
{
|
2026-06-17 22:44:27 +02:00
|
|
|
Q_UNUSED(to);
|
|
|
|
|
Q_UNUSED(subject);
|
|
|
|
|
Q_UNUSED(body);
|
|
|
|
|
qDebug() << "[EmailManager] sendEmail (stub)";
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#include "emailmanager.moc"
|