[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [ruqola] src/ruqolacore: Add qDebug method
From:       Laurent Montel <null () kde ! org>
Date:       2018-09-27 11:50:18
Message-ID: E1g5UoE-0001Ug-5f () code ! kde ! org
[Download RAW message or body]

Git commit bf43a0ed9a2b3569b3ffc4da7373534d2b77c636 by Laurent Montel.
Committed on 27/09/2018 at 11:23.
Pushed by mlaurent into branch 'master'.

Add qDebug method

M  +17   -1    src/ruqolacore/ruqolaserverconfig.cpp
M  +1    -0    src/ruqolacore/ruqolaserverconfig.h

https://commits.kde.org/ruqola/bf43a0ed9a2b3569b3ffc4da7373534d2b77c636

diff --git a/src/ruqolacore/ruqolaserverconfig.cpp b/src/ruqolacore/ruqolaserverconfig.cpp
index 51f72a5d..8dff2dca 100644
--- a/src/ruqolacore/ruqolaserverconfig.cpp
+++ b/src/ruqolacore/ruqolaserverconfig.cpp
@@ -223,4 +223,20 @@ AuthenticationManager::OauthTypes RuqolaServerConfig::serverOauthTypes() const
     return mServerOauthTypes;
 }
 
-//TODO add qDebug
+QDebug operator <<(QDebug d, const RuqolaServerConfig &t)
+{
+    d << "mUniqueId  " << t.uniqueId();
+    d << "mJitsiMeetUrl " << t.jitsiMeetUrl();
+    d << "mJitsiMeetPrefix " << t.jitsiMeetPrefix();
+    d << "mFileUploadStorageType " << t.fileUploadStorageType();
+    d << "mSiteUrl " << t.siteUrl();
+    d << "mSiteName " << t.siteName();
+    d << "mServerOauthTypes " << t.serverOauthTypes();
+    d << "mRuqolaOauthTypes " << t.ruqolaOauthTypes();
+    d << "mBlockEditingMessageInMinutes " << t.blockEditingMessageInMinutes();
+    d << "mAllowEditingMessage " << t.allowMessageEditing();
+    d << "mOtrEnabled " << t.otrEnabled();
+    d << "mNeedAdaptNewSubscriptionRC60 " << t.needAdaptNewSubscriptionRC60();
+    d << "mEncryptionEnabled " << t.encryptionEnabled();
+    return d;
+}
diff --git a/src/ruqolacore/ruqolaserverconfig.h b/src/ruqolacore/ruqolaserverconfig.h
index 4ecd83ce..fccc92e0 100644
--- a/src/ruqolacore/ruqolaserverconfig.h
+++ b/src/ruqolacore/ruqolaserverconfig.h
@@ -97,4 +97,5 @@ private:
     bool mNeedAdaptNewSubscriptionRC60 = false;
     bool mEncryptionEnabled = true;
 };
+LIBRUQOLACORE_EXPORT QDebug operator <<(QDebug d, const RuqolaServerConfig &t);
 #endif // RUQOLASERVERCONFIG_H

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic