aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-10-20 19:13:56 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-10-20 19:17:04 +0900
commit8b9207d5a04386957d8eab8dd251421eaaa7c0d2 (patch)
treeaa0b1c63f5aa7448aa12b2692b485d96648f8ea9 /lib/connection.cpp
parentff78cd3370eccf593be789677dd8c4e2cdcea173 (diff)
downloadlibquotient-8b9207d5a04386957d8eab8dd251421eaaa7c0d2.tar.gz
libquotient-8b9207d5a04386957d8eab8dd251421eaaa7c0d2.zip
Qualify types in signals and Q_INVOKABLEs
Because https://doc.qt.io/qt-5/moc.html#limitations . For direct connections that doesn't matter but it very much does for queued ones. Along with this DirectChatsMap and IgnoredUsersList have been moved from Connection:: to Quotient::.
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 25f1c3f6..af85d066 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -385,7 +385,7 @@ void Connection::syncLoop(int timeout)
syncLoopIteration(); // initial sync to start the loop
}
-QJsonObject toJson(const Connection::DirectChatsMap& directChats)
+QJsonObject toJson(const DirectChatsMap& directChats)
{
QJsonObject json;
for (auto it = directChats.begin(); it != directChats.end();) {
@@ -1050,7 +1050,7 @@ QVector<Room*> Connection::roomsWithTag(const QString& tagName) const
return rooms;
}
-Connection::DirectChatsMap Connection::directChats() const
+DirectChatsMap Connection::directChats() const
{
return d->directChats;
}
@@ -1117,7 +1117,7 @@ bool Connection::isIgnored(const User* user) const
return ignoredUsers().contains(user->id());
}
-Connection::IgnoredUsersList Connection::ignoredUsers() const
+IgnoredUsersList Connection::ignoredUsers() const
{
const auto* event = d->unpackAccountData<IgnoredUsersEvent>();
return event ? event->ignored_users() : IgnoredUsersList();