2
Copyright (c) 2010 Tobias Koenig <tokoe@kde.org>
4
This library is free software; you can redistribute it and/or modify it
5
under the terms of the GNU Library General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or (at your
7
option) any later version.
9
This library is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12
License for more details.
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 the
16
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20
#ifndef IMPORTHANDLERBASE_H
21
#define IMPORTHANDLERBASE_H
23
#include "mobileui_export.h"
25
#include <akonadi/item.h>
27
#include <QtCore/QObject>
30
class KProgressDialog;
31
class QItemSelectionModel;
33
class MOBILEUI_EXPORT ImportHandlerBase : public QObject
38
ImportHandlerBase( QObject *parent = 0 );
41
void setSelectionModel( QItemSelectionModel *model );
47
virtual QString fileDialogNameFilter() const = 0;
48
virtual QString fileDialogTitle() const = 0;
49
virtual QString collectionDialogText() const = 0;
50
virtual QString collectionDialogTitle() const = 0;
51
virtual QString importDialogText( int count, const QString &collectionName ) const = 0;
52
virtual QString importDialogTitle() const = 0;
54
virtual QStringList mimeTypes() const = 0;
55
virtual Akonadi::Item::List createItems( const QStringList &fileNames, bool *ok ) = 0;
58
void slotImportJobDone( KJob* );
61
KProgressDialog *mImportProgressDialog;
62
QItemSelectionModel *mSelectionModel;