Commit 87e31e59 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add shared lib

parent ada4c19f
set(kaddressbookimportexportprivatelib_SRCS
importexportengine.cpp
)
add_library(kaddressbookimportexportlibprivate ${kaddressbookimportexportprivatelib_SRCS})
......@@ -7,7 +8,7 @@ generate_export_header(kaddressbookimportexportlibprivate BASE_NAME kaddressbook
target_link_libraries(kaddressbookimportexportlibprivate
PRIVATE
KF5::I18n KF5::Contacts KF5::AkonadiContact KF5::Contacts KF5::AkonadiWidgets
KF5::I18n KF5::Contacts KF5::AkonadiContact KF5::Contacts KF5::KaddressbookImportExport
)
set_target_properties(kaddressbookimportexportlibprivate
......
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "importexportengine.h"
ImportExportEngine::ImportExportEngine(QObject *parent)
: QObject(parent)
{
}
ImportExportEngine::~ImportExportEngine()
{
}
void ImportExportEngine::setContactList(const KAddressBookImportExport::KAddressBookImportExportContactList &contacts)
{
mContactsList = contacts;
}
void ImportExportEngine::exportContacts()
{
}
void ImportExportEngine::importContacts()
{
}
/*
Copyright (C) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef IMPORTEXPORTENGINE_H
#define IMPORTEXPORTENGINE_H
#include <QObject>
#include <KAddressBookImportExport/KAddressBookImportExportContactList>
class ImportExportEngine : public QObject
{
Q_OBJECT
public:
explicit ImportExportEngine(QObject *parent = Q_NULLPTR);
~ImportExportEngine();
void setContactList(const KAddressBookImportExport::KAddressBookImportExportContactList &contacts);
void importContacts();
void exportContacts();
private:
KAddressBookImportExport::KAddressBookImportExportContactList mContactsList;
};
#endif // IMPORTEXPORTENGINE_H
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment