Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-12-13 19:20:45 +0300
committerHannah von Reth <vonreth@kde.org>2021-12-13 22:18:58 +0300
commitb206a3d994f84451c98429621f3d6e56f98a5827 (patch)
tree4c6dfcccba9b3d7b6d488ed69370619d3a3fd610 /src/common
parentf776818cf599a55df4431dc21a20173e6a9d11bf (diff)
Ensure we compare the correct signals
Diffstat (limited to 'src/common')
-rw-r--r--src/common/syncfilestatus.cpp11
-rw-r--r--src/common/syncfilestatus.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/common/syncfilestatus.cpp b/src/common/syncfilestatus.cpp
index fe9d4fc2a..2fdfee426 100644
--- a/src/common/syncfilestatus.cpp
+++ b/src/common/syncfilestatus.cpp
@@ -14,6 +14,8 @@
#include "syncfilestatus.h"
+#include <QDebug>
+
namespace OCC {
SyncFileStatus::SyncFileStatus()
: _tag(StatusNone)
@@ -82,3 +84,12 @@ QString SyncFileStatus::toSocketAPIString() const
return statusString;
}
}
+
+
+QDebug &operator<<(QDebug &debug, const OCC::SyncFileStatus &item)
+{
+ QDebugStateSaver saver(debug);
+ debug.setAutoInsertSpaces(false);
+ debug << "OCC::SyncFileStatus(shared=" << item.shared() << ", tag=" << item.tag() << ")";
+ return debug;
+}
diff --git a/src/common/syncfilestatus.h b/src/common/syncfilestatus.h
index 9e9c1f539..a0f5930bb 100644
--- a/src/common/syncfilestatus.h
+++ b/src/common/syncfilestatus.h
@@ -67,6 +67,7 @@ inline bool operator!=(const SyncFileStatus &a, const SyncFileStatus &b)
return !(a == b);
}
}
+OCSYNC_EXPORT QDebug &operator<<(QDebug &debug, const OCC::SyncFileStatus &item);
Q_DECLARE_METATYPE(OCC::SyncFileStatus)