• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kaddressbook

  • sources
  • kde-4.14
  • kdepim
  • kaddressbook
  • merge
  • job
mergecontactsjob.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2013-2015 Montel Laurent <montel@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef MERGECONTACTSJOB_H
19 #define MERGECONTACTSJOB_H
20 #include <QObject>
21 
22 #include <Akonadi/Collection>
23 #include <Akonadi/Item>
24 #include <KABC/Addressee>
25 namespace KABMergeContacts {
26 class MergeContactsJob : public QObject
27 {
28  Q_OBJECT
29 public:
30  explicit MergeContactsJob(QObject *parent=0);
31  ~MergeContactsJob();
32 
33  void start();
34 
35  void setListItem(const Akonadi::Item::List &lstItem);
36 
37  void setDestination(const Akonadi::Collection &collection);
38 
39  bool canStart();
40 
41  void setNewContact(const KABC::Addressee &addr);
42 
43 Q_SIGNALS:
44  void finished(const Akonadi::Item &item);
45 
46 private slots:
47  void slotCreateMergedContactFinished(KJob *job);
48  void slotDeleteContactsFinished(KJob *job);
49 
50 private:
51  void generateMergedContact();
52  void createMergedContact(const KABC::Addressee &addressee);
53 
54  Akonadi::Collection mCollection;
55  Akonadi::Item::List mListItem;
56  Akonadi::Item mCreatedContact;
57  KABC::Addressee mNewContact;
58 };
59 }
60 #endif // MERGECONTACTSJOB_H
KABMergeContacts::MergeContactsJob::setNewContact
void setNewContact(const KABC::Addressee &addr)
Definition: mergecontactsjob.cpp:82
KABMergeContacts::MergeContactsJob::finished
void finished(const Akonadi::Item &item)
KABMergeContacts::MergeContactsJob
Definition: mergecontactsjob.h:26
QObject
KABMergeContacts::MergeContactsJob::MergeContactsJob
MergeContactsJob(QObject *parent=0)
Definition: mergecontactsjob.cpp:30
KABMergeContacts::MergeContactsJob::canStart
bool canStart()
Definition: mergecontactsjob.cpp:40
KABMergeContacts::MergeContactsJob::start
void start()
Definition: mergecontactsjob.cpp:56
KABMergeContacts::MergeContactsJob::setListItem
void setListItem(const Akonadi::Item::List &lstItem)
Definition: mergecontactsjob.cpp:87
QObject::parent
QObject * parent() const
KABMergeContacts::MergeContactsJob::setDestination
void setDestination(const Akonadi::Collection &collection)
Definition: mergecontactsjob.cpp:92
KABMergeContacts::MergeContactsJob::~MergeContactsJob
~MergeContactsJob()
Definition: mergecontactsjob.cpp:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kaddressbook

Skip menu "kaddressbook"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal