Commit c0fdcca7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Continue to implement search duplicate

parent f38043c4
/*
Copyright (c) 2013 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, version 2, as
published by the Free Software Foundation.
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; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "matchcontact.h"
MatchContact::MatchContact(const Akonadi::Item &items)
: mListItem(items)
{
}
/*
Copyright (c) 2013 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, version 2, as
published by the Free Software Foundation.
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; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef MATCHCONTACT_H
#define MATCHCONTACT_H
#include <Akonadi/Item>
struct MatchContact
{
MatchContact(const Akonadi::Item &items);
QList<Akonadi::Item> mListItem;
};
#endif // MATCHCONTACT_H
......@@ -36,5 +36,8 @@ void PotentialDuplicateContactsWidget::setAddressList(const Akonadi::Item::List
void PotentialDuplicateContactsWidget::searchDuplicateContact()
{
if (mContactList.count()>1) {
}
//TODO
}
......@@ -31,6 +31,14 @@ public:
void setAddressList(const Akonadi::Item::List &list);
private:
enum MatchType {
None = 0,
Name = 1,
Emails = 2,
Phone = 4,
NickName = 8
};
void searchDuplicateContact();
Akonadi::Item::List mContactList;
};
......
Markdown is supported
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