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

kaddressbook

  • sources
  • kde-4.12
  • kdepim
  • kaddressbook
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 
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 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  public Q_SLOTS:
85  void setDefaultAddressBook( const Akonadi::Collection &addressBook );
86 
87  private Q_SLOTS:
88  void slotImport( const QString & );
89  void slotExport( const QString & );
90 
91  void slotImportJobDone( KJob * );
92 
93  private:
94  QItemSelectionModel *mSelectionModel;
95  QWidget *mParentWidget;
96  XXPortFactory mFactory;
97  QSignalMapper *mImportMapper;
98  QSignalMapper *mExportMapper;
99  Akonadi::Collection mDefaultAddressBook;
100  KProgressDialog *mImportProgressDialog;
101 };
102 
103 #endif
QObject
XXPortManager::XXPortManager
XXPortManager(QWidget *parent=0)
Creates a new xxport manager.
Definition: xxportmanager.cpp:40
XXPortManager::setSelectionModel
void setSelectionModel(QItemSelectionModel *model)
Sets the model that contains the current selection.
Definition: xxportmanager.cpp:69
XXPortManager::setDefaultAddressBook
void setDefaultAddressBook(const Akonadi::Collection &addressBook)
Sets the addressBook that shall be preselected in the ContactSelectionDialog.
Definition: xxportmanager.cpp:74
XXPortManager::addImportAction
void addImportAction(QAction *action, const QString &identifier)
Adds a new action to import contacts.
Definition: xxportmanager.cpp:57
xxportfactory.h
XXPortManager::~XXPortManager
~XXPortManager()
Destroys the xxport manager.
Definition: xxportmanager.cpp:53
XXPortManager
The class that manages import and export of contacts.
Definition: xxportmanager.h:40
XXPortFactory
A factory for import/export modules.
Definition: xxportfactory.h:33
XXPortManager::addExportAction
void addExportAction(QAction *action, const QString &identifier)
Adds a new action to export contacts.
Definition: xxportmanager.cpp:63
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:52 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

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