[network/ruqola] src/core/messages: Use RUQOLA_ENCRYPTION_LOG

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit e2f9bde913657e8bc70e8e73cb36bfd6ee43fffc by Laurent Montel.
Committed on 03/08/2026 at 11:28.
Pushed by mlaurent into branch 'master'.

Use RUQOLA_ENCRYPTION_LOG

M  +6    -6    src/core/messages/messageencrypted.cpp
M  +0    -10   src/core/messages/messageencrypted.h

https://invent.kde.org/network/ruqola/-/commit/e2f9bde913657e8bc70e8e73cb36bfd6ee43fffc

diff --git a/src/core/messages/messageencrypted.cpp b/src/core/messages/messageencrypted.cpp
index 48c2f18831..68fc299db1 100644
--- a/src/core/messages/messageencrypted.cpp
+++ b/src/core/messages/messageencrypted.cpp
@@ -5,7 +5,7 @@
 */
 
 #include "messageencrypted.h"
-#include "ruqola_message_memory_debug.h"
+#include "ruqola_encryption_debug.h"
 
 #include <QJsonObject>
 
@@ -13,18 +13,18 @@ using namespace Qt::Literals::StringLiterals;
 MessageEncrypted::MessageEncrypted()
 
 {
-    qCDebug(RUQOLA_MESSAGE_MEMORY_LOG) << " MessageEncrypted created " << this;
+    qCDebug(RUQOLA_ENCRYPTION_LOG) << " MessageEncrypted created " << this;
 }
 
 MessageEncrypted::MessageEncrypted(const MessageEncrypted &other)
     : QSharedData(other)
 {
-    qCDebug(RUQOLA_MESSAGE_MEMORY_LOG) << " MessageEncrypted created " << this;
+    qCDebug(RUQOLA_ENCRYPTION_LOG) << " MessageEncrypted created " << this;
 }
 
 MessageEncrypted::~MessageEncrypted()
 {
-    qCDebug(RUQOLA_MESSAGE_MEMORY_LOG) << " MessageEncrypted deleted " << this;
+    qCDebug(RUQOLA_ENCRYPTION_LOG) << " MessageEncrypted deleted " << this;
 }
 
 bool MessageEncrypted::isValid() const
@@ -59,7 +59,7 @@ QDebug operator<<(QDebug d, const MessageEncrypted &t)
 
 MessageEncrypted *MessageEncrypted::deserialize(const QJsonObject &o)
 {
-    MessageEncrypted *pinned = new MessageEncrypted;
+    MessageEncrypted *encrypted = new MessageEncrypted;
     // TODO
-    return pinned;
+    return encrypted;
 }
diff --git a/src/core/messages/messageencrypted.h b/src/core/messages/messageencrypted.h
index f5502823e1..24ae18c642 100644
--- a/src/core/messages/messageencrypted.h
+++ b/src/core/messages/messageencrypted.h
@@ -18,12 +18,6 @@ public:
     ~MessageEncrypted();
     explicit MessageEncrypted(const MessageEncrypted &other);
 
-    [[nodiscard]] bool pinned() const;
-    void setPinned(bool pinned);
-
-    [[nodiscard]] QString pinnedBy() const;
-    void setPinnedBy(const QString &pinnedBy);
-
     [[nodiscard]] bool operator==(const MessageEncrypted &other) const;
     void parse(const QJsonObject &o);
 
@@ -31,9 +25,5 @@ public:
     [[nodiscard]] static MessageEncrypted *deserialize(const QJsonObject &o);
 
     [[nodiscard]] bool isValid() const;
-
-private:
-    QString mPinnedBy;
-    bool mPinned = false;
 };
 LIBRUQOLACORE_EXPORT QDebug operator<<(QDebug d, const MessageEncrypted &t);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.