File indexing completed on 2024-12-15 04:55:35

0001 /*
0002    SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "abstractimapsettingscheckjob.h"
0008 #include "abstractimapsettingspassword.h"
0009 
0010 AbstractImapSettingsCheckJob::AbstractImapSettingsCheckJob(QObject *parent)
0011     : QObject(parent)
0012 {
0013 }
0014 
0015 AbstractImapSettingsCheckJob::~AbstractImapSettingsCheckJob()
0016 {
0017     delete mPasswordImporter;
0018 }
0019 
0020 void AbstractImapSettingsCheckJob::setImapSettingsPassword(AbstractImapSettingsPassword *passwordImporter)
0021 {
0022     mPasswordImporter = passwordImporter;
0023 }
0024 
0025 void AbstractImapSettingsCheckJob::checkNoSettingsImported()
0026 {
0027     if (!mSettingsWereImported) {
0028         Q_EMIT noSettingsImported(name());
0029     }
0030     deleteLater();
0031 }
0032 
0033 #include "moc_abstractimapsettingscheckjob.cpp"