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 <KAddressBookImportExport/PluginInterface> 0010 0011 class WindowsContactImportExportPluginInterface : public KAddressBookImportExport::PluginInterface 0012 { 0013 Q_OBJECT 0014 public: 0015 explicit WindowsContactImportExportPluginInterface(QObject *parent = nullptr); 0016 ~WindowsContactImportExportPluginInterface() override; 0017 0018 void createAction(KActionCollection *ac) override; 0019 void exec() override; 0020 0021 [[nodiscard]] bool canImportFileType(const QUrl &url) override; 0022 void importFile(const QUrl &url) override; 0023 0024 private: 0025 void slotExportWindowsContact(); 0026 void slotImportWindowsContact(); 0027 void importWindowsContact(); 0028 void exportWindowsContact(); 0029 };