File indexing completed on 2024-12-22 04:56:59

0001 /*
0002     SPDX-FileCopyrightText: 2018 Krzysztof Nowicki <krissn@op.pl>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "ewsabstractauth.h"
0008 
0009 #include <QFile>
0010 
0011 EwsAbstractAuth::EwsAbstractAuth(QObject *parent)
0012     : QObject(parent)
0013 {
0014 }
0015 
0016 void EwsAbstractAuth::setAuthParentWidget(QWidget *widget)
0017 {
0018     mAuthParentWidget = widget;
0019 }
0020 
0021 void EwsAbstractAuth::notifyRequestAuthFailed()
0022 {
0023     Q_EMIT requestAuthFailed();
0024 }
0025 
0026 void EwsAbstractAuth::setPKeyAuthCertificateFiles(const QString &certFile, const QString &pkeyFile)
0027 {
0028     if (QFile::exists(certFile) && QFile::exists(pkeyFile)) {
0029         mPKeyCertFile = certFile;
0030         mPKeyKeyFile = pkeyFile;
0031     }
0032 }
0033 
0034 #include "moc_ewsabstractauth.cpp"