Implement basic UI with QML (MailListPage) and batching DbChangeProcessor (Step 3-4 of transition plan)

This commit is contained in:
Padrino
2026-05-17 01:09:01 +02:00
parent e3071a23e0
commit acec320222
20 changed files with 829 additions and 82 deletions
+6 -6
View File
@@ -3,9 +3,9 @@
#include <QString>
#include <QDateTime>
#include <QVector>
#include "../models/account.h"
#include "../models/folder.h"
#include "../core/mailitem.h"
#include "models/account.h"
#include "models/folder.h"
#include "mailitem.h"
namespace WinoMail {
namespace Events {
@@ -38,7 +38,7 @@ struct FolderAddedEvent : public BaseEvent {
};
struct FolderRemovedEvent : public BaseEvent {
String folderId;
QString folderId;
};
struct FolderUpdatedEvent : public BaseEvent {
@@ -63,12 +63,12 @@ struct AccountUpdatedEvent : public BaseEvent {
// Sync events
struct SyncStartedEvent : public BaseEvent {
int accountId;
String folderId; // Optional, empty for full account sync
QString folderId; // Optional, empty for full account sync
};
struct SyncFinishedEvent : public BaseEvent {
int accountId;
String folderId; // Optional, empty for full account sync
QString folderId; // Optional, empty for full account sync
bool success;
QString errorMessage; // If success is false
};
+3 -1
View File
@@ -3,9 +3,11 @@
#include <QString>
#include <QMap>
#include <QMutex>
#include <QObject>
class Translator
class Translator : public QObject
{
Q_OBJECT
public:
static Translator& instance();
~Translator() = default;