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

libkdepim

  • sources
  • kde-4.12
  • kdepim
  • libkdepim
  • job
addemailaddressjob.h
Go to the documentation of this file.
1 /*
2  Copyright 2010 Tobias Koenig <tokoe@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef ADDEMAILADDRESSJOB_H
21 #define ADDEMAILADDRESSJOB_H
22 
23 #include "kdepim_export.h"
24 
25 #include <kjob.h>
26 
27 namespace Akonadi {
28  class Item;
29 }
30 
31 namespace KPIM {
32 
40 class KDEPIM_EXPORT AddEmailAddressJob : public KJob
41 {
42  Q_OBJECT
43 
44  public:
52  AddEmailAddressJob( const QString &email, QWidget *parentWidget, QObject *parent = 0 );
53 
57  ~AddEmailAddressJob();
58 
62  virtual void start();
63 
67  Akonadi::Item contact() const;
68 
69  private:
70  //@cond PRIVATE
71  class Private;
72  Private *const d;
73 
74  Q_PRIVATE_SLOT( d, void slotSearchDone( KJob* ) )
75  Q_PRIVATE_SLOT( d, void slotAddContactDone( KJob* ) )
76  Q_PRIVATE_SLOT( d, void slotCollectionsFetched( KJob* ) )
77  Q_PRIVATE_SLOT( d, void slotResourceCreationDone( KJob* ) )
78  Q_PRIVATE_SLOT( d, void slotContactEditorError(const QString &) )
79  Q_PRIVATE_SLOT( d, void contactStored( const Akonadi::Item & ) )
80 
81  //@endcond
82 };
83 
84 }
85 
86 #endif
kdepim_export.h
KPIM::AddEmailAddressJob
A job to add a new contact with a given email address to Akonadi.
Definition: addemailaddressjob.h:40
QWidget
QObject
KJob
KDEPIM_EXPORT
#define KDEPIM_EXPORT
Definition: kdepim_export.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdepim

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

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

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