1
/* -*- mode: C++; c-file-style: "gnu" -*-
2
This file is part of KMail, the KDE mail client.
3
Copyright (c) 2011 Montel Laurent <montel@kde.org>
5
KMail is free software; you can redistribute it and/or modify it
6
under the terms of the GNU General Public License, version 2, as
7
published by the Free Software Foundation.
9
KMail is distributed in the hope that it will be useful, but
10
WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
General Public License for more details.
14
You should have received a copy of the GNU General Public License along
15
with this program; if not, write to the Free Software Foundation, Inc.,
16
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
#ifndef FILTERACTIONMISSINGCOLLECTIONDIALOG_H
20
#define FILTERACTIONMISSINGCOLLECTIONDIALOG_H
23
#include <akonadi/collection.h>
25
class QAbstractItemModel;
29
namespace MailCommon {
30
class FolderRequester;
33
class FilterActionMissingCollectionDialog : public KDialog
37
explicit FilterActionMissingCollectionDialog( const Akonadi::Collection::List& list, const QString & filtername, QWidget *parent = 0 );
38
~FilterActionMissingCollectionDialog();
40
Akonadi::Collection selectedCollection() const;
41
static Akonadi::Collection::List potentialCorrectFolders( const QString& path, bool & exactPath );
44
void slotCurrentItemChanged();
48
static void getPotentialFolders( const QAbstractItemModel *model, const QModelIndex& parentIndex, const QString& realPath, Akonadi::Collection::List& list );
50
IdentifyCollection = Qt::UserRole +1
54
MailCommon::FolderRequester *mFolderRequester;
55
QListWidget *mListwidget;
59
#endif /* FILTERACTIONMISSINGCOLLECTIONDIALOG_H */