File indexing completed on 2024-12-22 04:57:00
0001 /* 0002 SPDX-FileCopyrightText: 2015-2018 Krzysztof Nowicki <krissn@op.pl> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "ewsclient.h" 0008 0009 #include "auth/ewsabstractauth.h" 0010 #include "ewsclient_debug.h" 0011 0012 QHash<QString, QString> EwsClient::folderHash; 0013 0014 EwsClient::EwsClient(QObject *parent) 0015 : QObject(parent) 0016 , mEnableNTLMv2(true) 0017 { 0018 } 0019 0020 EwsClient::~EwsClient() 0021 { 0022 } 0023 0024 void EwsClient::setServerVersion(const EwsServerVersion &version) 0025 { 0026 if (mServerVersion.isValid() && mServerVersion != version) { 0027 qCWarning(EWSCLI_LOG) << "Warning - server version changed." << mServerVersion << version; 0028 } 0029 mServerVersion = version; 0030 } 0031 0032 QUrl EwsClient::url() const 0033 { 0034 return mUrl; 0035 } 0036 0037 void EwsClient::setAuth(EwsAbstractAuth *auth) 0038 { 0039 mAuth = auth; 0040 } 0041 0042 EwsAbstractAuth *EwsClient::auth() const 0043 { 0044 return mAuth.data(); 0045 } 0046 0047 #include "moc_ewsclient.cpp"