Implement basic UI with QML (MailListPage) and batching DbChangeProcessor (Step 3-4 of transition plan)
This commit is contained in:
+6
-6
@@ -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,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;
|
||||
|
||||
Reference in New Issue
Block a user