Fix build: synchronize Request API, fix GmailSynchronizer, and migrate UI to Qt6 Widgets
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// concreterequests.cpp
|
||||
#include "concreterequests.h"
|
||||
#include <QDebug>
|
||||
|
||||
Request* Concreterequests::createRequest(const QString& type, const QString& target) {
|
||||
qDebug() << "Attempting to create request type:" << type << "for target:" << target;
|
||||
|
||||
if (type == "IMAP") {
|
||||
// Placeholder for IMAP request creation
|
||||
return new ImapRequest(nullptr); // Will be properly initialized by the concrete class
|
||||
} else if (type == "SMTP") {
|
||||
// Placeholder for SMTP request creation
|
||||
return new SmtpRequest(nullptr); // Will be properly initialized by the concrete class
|
||||
}
|
||||
|
||||
qWarning() << "Unknown request type:" << type;
|
||||
return nullptr;
|
||||
}
|
||||
Reference in New Issue
Block a user