aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jobs/basejob.cpp2
-rw-r--r--jobs/roommembersjob.cpp1
-rw-r--r--jobs/syncjob.cpp5
3 files changed, 7 insertions, 1 deletions
diff --git a/jobs/basejob.cpp b/jobs/basejob.cpp
index 2177fe9c..6c68ab66 100644
--- a/jobs/basejob.cpp
+++ b/jobs/basejob.cpp
@@ -50,6 +50,7 @@ BaseJob::BaseJob(ConnectionData* connection, JobHttpType type, QString name, boo
emit failure(this);
});
setObjectName(name);
+ qDebug() << "Job" << objectName() << " created";
}
BaseJob::~BaseJob()
@@ -61,6 +62,7 @@ BaseJob::~BaseJob()
d->reply->deleteLater();
}
delete d;
+ qDebug() << "Job" << objectName() << " destroyed";
}
ConnectionData* BaseJob::connection() const
diff --git a/jobs/roommembersjob.cpp b/jobs/roommembersjob.cpp
index c16ba481..002be75b 100644
--- a/jobs/roommembersjob.cpp
+++ b/jobs/roommembersjob.cpp
@@ -20,6 +20,7 @@
#include <QtCore/QJsonObject>
#include <QtCore/QJsonArray>
+#include <QtCore/QDebug>
#include "../room.h"
#include "../state.h"
diff --git a/jobs/syncjob.cpp b/jobs/syncjob.cpp
index 37f79298..3a7573bc 100644
--- a/jobs/syncjob.cpp
+++ b/jobs/syncjob.cpp
@@ -43,8 +43,10 @@ class SyncJob::Private
QList<SyncRoomData> roomData;
};
+static size_t jobId = 0;
+
SyncJob::SyncJob(ConnectionData* connection, QString since)
- : BaseJob(connection, JobHttpType::GetJob, "SyncJob")
+ : BaseJob(connection, JobHttpType::GetJob, QString("SyncJob-%1").arg(++jobId))
, d(new Private)
{
d->since = since;
@@ -133,6 +135,7 @@ void SyncJob::parseJson(const QJsonDocument& data)
}
emitResult();
+ qDebug() << objectName() << ": processing complete";
}
void SyncRoomData::EventList::fromJson(const QJsonObject& roomContents)