• 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
  • xxport
xxportmanager.h
Go to the documentation of this file.
1 /*
2  This file is part of KAddressBook.
3 
4  Copyright (c) 2009 Tobias Koenig <tokoe@kde.org>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License along
17  with this program; if not, write to the Free Software Foundation, Inc.,
18  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef XXPORTMANAGER_H
22 #define XXPORTMANAGER_H
23 
24 #include "xxport/xxportfactory.h"
25 #include "kaddressbook_export.h"
26 #include <Akonadi/Collection>
27 
28 #include <QtCore/QObject>
29 
30 class KJob;
31 class KProgressDialog;
32 
33 class QAction;
34 class QItemSelectionModel;
35 class QSignalMapper;
36 
40 class KADDRESSBOOK_EXPORT XXPortManager : public QObject
41 {
42  Q_OBJECT
43 
44 public:
50  explicit XXPortManager( QWidget *parent = 0 );
51 
55  ~XXPortManager();
56 
63  void addImportAction( QAction *action, const QString &identifier );
64 
71  void addExportAction( QAction *action, const QString &identifier );
72 
78  void setSelectionModel( QItemSelectionModel *model );
79 
80  void importFile( const KUrl &url);
81 
82 
83 public Q_SLOTS:
88  void setDefaultAddressBook( const Akonadi::Collection &addressBook );
89 
90 private Q_SLOTS:
91  void slotImport( const QString & );
92  void slotExport( const QString & );
93 
94  void slotImportJobDone( KJob * );
95 
96 private:
97  void import(const ContactList &contacts);
98  QItemSelectionModel *mSelectionModel;
99  QWidget *mParentWidget;
100  XXPortFactory mFactory;
101  QSignalMapper *mImportMapper;
102  QSignalMapper *mExportMapper;
103  Akonadi::Collection mDefaultAddressBook;
104  KProgressDialog *mImportProgressDialog;
105 };
106 
107 #endif
kaddressbook_export.h
QWidget
KADDRESSBOOK_EXPORT
#define KADDRESSBOOK_EXPORT
Definition: kaddressbook_export.h:35
QObject
ContactList
Definition: contactlist.h:27
QString
xxportfactory.h
XXPortManager
The class that manages import and export of contacts.
Definition: xxportmanager.h:40
QAction
QItemSelectionModel
QSignalMapper
XXPortFactory
A factory for import/export modules.
Definition: xxportfactory.h:33
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