diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2009-10-18 22:54:04 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2009-10-18 22:54:04 +0000 |
| commit | 8054a813ea973b69fa655ce0cdfb516db58e4295 (patch) | |
| tree | adaaf6c64f467008130b2126fa121aff20a4d286 /source/QXmppConfiguration.cpp | |
| parent | d7a8921864d1a622ee1125075139b6693a9011c2 (diff) | |
| download | qxmpp-8054a813ea973b69fa655ce0cdfb516db58e4295.tar.gz | |
XEP-0078: Non-SASL Authentication Implementation
Diffstat (limited to 'source/QXmppConfiguration.cpp')
| -rw-r--r-- | source/QXmppConfiguration.cpp | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/source/QXmppConfiguration.cpp b/source/QXmppConfiguration.cpp index f62d1d98..20336a93 100644 --- a/source/QXmppConfiguration.cpp +++ b/source/QXmppConfiguration.cpp @@ -29,7 +29,8 @@ QXmppConfiguration::QXmppConfiguration() : m_resource("QXmpp"), m_sendIntialPresence(true),
m_sendRosterRequest(true),
m_port(5222),
- m_keepAlivePingsInterval(100), m_autoReconnectionEnabled(true)
+ m_keepAlivePingsInterval(100), m_autoReconnectionEnabled(true),
+ m_useSASLAuthentication(true)
{
}
@@ -118,3 +119,32 @@ void QXmppConfiguration::setAutoAcceptSubscriptions(bool check) m_autoAcceptSubscriptions = check;
}
+bool QXmppConfiguration::getAutoReconnectionEnabled() const
+{
+ return m_autoReconnectionEnabled;
+}
+
+void QXmppConfiguration::setAutoReconnectionEnabled(bool value)
+{
+ m_autoReconnectionEnabled = value;
+}
+
+/// Returns the type of authentication system specified by the user.
+/// \return true if SASL was specified else false. If the specified
+/// system is not available QXmpp will resort to the other one.
+
+bool QXmppConfiguration::getUseSASLAuthentication() const
+{
+ return m_useSASLAuthentication;
+}
+
+/// Returns the type of authentication system specified by the user.
+/// \param useSASL to hint to use SASL authentication system if available.
+/// false will specify to use NonSASL XEP-0078: Non-SASL Authentication
+/// If the specified one is not availbe, library will use the othe one
+
+void QXmppConfiguration::setUseSASLAuthentication(bool useSASL)
+{
+ m_useSASLAuthentication = useSASL;
+}
+
|
