File indexing completed on 2025-01-05 04:49:19
0001 /* 0002 SPDX-FileCopyrightText: 2016-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 #include <KContacts/Addressee> 0011 class QFile; 0012 0013 class GMXImportExportPluginInterface : public KAddressBookImportExport::PluginInterface 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit GMXImportExportPluginInterface(QObject *parent = nullptr); 0018 ~GMXImportExportPluginInterface() override; 0019 0020 void createAction(KActionCollection *ac) override; 0021 void exec() override; 0022 [[nodiscard]] bool canImportFileType(const QUrl &url) override; 0023 0024 private: 0025 void doExport(QFile *fp, const KContacts::AddresseeList &list) const; 0026 void slotImportGmx(); 0027 void slotExportGmx(); 0028 void importGMX(); 0029 void exportGMX(); 0030 };