2 This file is part of KMail, the KDE mail client.
3 Copyright (c) 2010 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 COLLECTIONPANE_H
20 #define COLLECTIONPANE_H
22 #include <messagelist/pane.h>
23 #include <messagelist/storagemodel.h>
25 class CollectionPane
: public MessageList::Pane
29 explicit CollectionPane( QAbstractItemModel
*model
, QItemSelectionModel
*selectionModel
, QWidget
*parent
= 0 );
30 virtual ~CollectionPane();
32 virtual MessageList::StorageModel
*createStorageModel( QAbstractItemModel
*model
, QItemSelectionModel
*selectionModel
, QObject
*parent
);
35 class CollectionStorageModel
: public MessageList::StorageModel
41 * Create a StorageModel wrapping the specified folder.
43 explicit CollectionStorageModel( QAbstractItemModel
*model
, QItemSelectionModel
*selectionModel
, QObject
*parent
= 0 );
44 virtual ~CollectionStorageModel();
45 virtual bool isOutBoundFolder( const Akonadi::Collection
& c
) const;
50 #endif /* COLLECTIONPANE_H */