Fix build: synchronize Request API, fix GmailSynchronizer, and migrate UI to Qt6 Widgets

This commit is contained in:
2026-06-17 22:44:27 +02:00
parent dcb7c52269
commit 0e9f620fe0
348 changed files with 118736 additions and 1207 deletions
+40
View File
@@ -0,0 +1,40 @@
// changetype.h
#ifndef CHANGETYPE_H
#define CHANGETYPE_H
#include "eventbus.h"
#include <QString>
#include <QDateTime>
enum ChangeType {
ADD,
DELETE,
UPDATE
};
struct MailChange {
QString mailItemId;
QString type; // ADD, DELETE, UPDATE
QString subject;
QString body;
QDateTime timestamp;
QString changeSource; // e.g., "IMAP_SYNC", "SMTP_SYNC"
};
class ChangeProcessor : public QObject {
Q_OBJECT
public:
explicit ChangeProcessor(EventBus* bus, QObject *parent = nullptr);
void processChange(const MailChange& change);
signals:
void mailChangeDetected(const MailChange& change);
private:
EventBus* m_eventBus;
// In a real system, this would interface with the database/DAO layer.
void applyChangeToModel(const MailChange& change);
};
#endif // CHANGETYPE_H