File indexing completed on 2025-01-19 04:46:32
0001 /* 0002 SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <KContacts/Addressee> 0010 #include <QString> 0011 class QDomDocument; 0012 class QFile; 0013 class QWidget; 0014 class ImportWindowContact 0015 { 0016 public: 0017 ImportWindowContact(); 0018 ~ImportWindowContact(); 0019 0020 [[nodiscard]] KContacts::Addressee::List importFile(const QString &fileName); 0021 void setParentWidget(QWidget *parentWidget); 0022 void setAutoTests(bool b); // Only for autotest 0023 0024 private: 0025 [[nodiscard]] bool loadDomElement(QDomDocument &doc, QFile *file); 0026 bool mAutoTest = false; 0027 QWidget *mParentWidget = nullptr; 0028 };