telepathy-qt: BaseChannelSASLAuthenticationInterface: Fixed SASL status properties.

David Edmundson davidedmundson at kemper.freedesktop.org
Fri Apr 24 06:40:14 PDT 2015


Module: telepathy-qt
Branch: master
Commit: 3f90bcd87d26a595dd392bd0fb49996384ef94b6
URL:    http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=3f90bcd87d26a595dd392bd0fb49996384ef94b6

Author: Alexandr Akulich <akulichalexander at gmail.com>
Date:   Sun Mar 29 01:17:48 2015 +0500

BaseChannelSASLAuthenticationInterface: Fixed SASL status properties.

---

 TelepathyQt/base-channel.cpp |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/TelepathyQt/base-channel.cpp b/TelepathyQt/base-channel.cpp
index 360e500..bd3dbd4 100644
--- a/TelepathyQt/base-channel.cpp
+++ b/TelepathyQt/base-channel.cpp
@@ -1014,7 +1014,8 @@ void BaseChannelCaptchaAuthenticationInterface::setCaptchaErrorDetails(const QVa
     notifyPropertyChanged(QLatin1String("CaptchaErrorDetails"), QVariant::fromValue(error));
 }
 
-//Chan.I.SASLAuthentication
+// Chan.I.SASLAuthentication
+// The BaseChannelSASLAuthenticationInterface code is fully or partially generated by the TelepathyQt-Generator.
 struct TP_QT_NO_EXPORT BaseChannelSASLAuthenticationInterface::Private {
     Private(BaseChannelSASLAuthenticationInterface *parent,
             const QStringList &availableMechanisms,
@@ -1185,7 +1186,6 @@ void BaseChannelSASLAuthenticationInterface::Adaptee::abortSasl(uint reason, con
  * \headerfile TelepathyQt/base-channel.h <TelepathyQt/BaseChannel>
  *
  * \brief Base class for implementations of Channel.Interface.SASLAuthentication
- *
  */
 
 /**
@@ -1262,6 +1262,8 @@ uint BaseChannelSASLAuthenticationInterface::saslStatus() const
 void BaseChannelSASLAuthenticationInterface::setSaslStatus(uint status, const QString &reason, const QVariantMap &details)
 {
     mPriv->saslStatus = status;
+    mPriv->saslError = reason;
+    mPriv->saslErrorDetails = details;
     QMetaObject::invokeMethod(mPriv->adaptee, "saslStatusChanged", Q_ARG(uint, status), Q_ARG(QString, reason), Q_ARG(QVariantMap, details)); //Can simply use emit in Qt5
 }
 



More information about the telepathy-commits mailing list