ldapimportexportplugininterface.h 683 Bytes
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1
/*
2
   SPDX-FileCopyrightText: 2016-2020 Laurent Montel <montel@kde.org>
Laurent Montel's avatar
Laurent Montel committed
3

4
   SPDX-License-Identifier: GPL-2.0-or-later
Laurent Montel's avatar
Laurent Montel committed
5 6 7 8 9
*/

#ifndef LDAPIMPORTEXPORTPLUGININTERFACE_H
#define LDAPIMPORTEXPORTPLUGININTERFACE_H

10 11 12
#include <KAddressBookImportExport/PluginInterface>

class LDapImportExportPluginInterface : public KAddressBookImportExport::PluginInterface
Laurent Montel's avatar
Laurent Montel committed
13 14 15
{
    Q_OBJECT
public:
Laurent Montel's avatar
Laurent Montel committed
16
    explicit LDapImportExportPluginInterface(QObject *parent = nullptr);
Laurent Montel's avatar
Laurent Montel committed
17
    ~LDapImportExportPluginInterface() override;
Laurent Montel's avatar
Laurent Montel committed
18

19 20
    void createAction(KActionCollection *ac) override;
    void exec() override;
Laurent Montel's avatar
Laurent Montel committed
21 22
private:
    void slotImportLdap();
Laurent Montel's avatar
Laurent Montel committed
23
    void importLdap();
Laurent Montel's avatar
Laurent Montel committed
24 25 26
};

#endif // LDAPIMPORTEXPORTPLUGININTERFACE_H