fix Messages.sh after yesterday change in extract-messages.sh
[kdepim.git] / kmail / entitycollectionorderproxymodel.h
blobf1da35127051cbe1887eeb2bc4f3ac616d1c3d4f
1 /* -*- mode: C++; c-file-style: "gnu" -*-
2 This file is part of KMail, the KDE mail client.
3 Copyright (c) 2009, 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 ENTITYCOLLECTIONORDERPROXYMODEL_H
20 #define ENTITYCOLLECTIONORDERPROXYMODEL_H
22 #include <akonadi/entityorderproxymodel.h>
24 class EntityCollectionOrderProxyModel : public Akonadi::EntityOrderProxyModel
26 Q_OBJECT
27 public:
28 EntityCollectionOrderProxyModel( QObject * parent = 0 );
30 virtual ~EntityCollectionOrderProxyModel();
32 virtual bool lessThan(const QModelIndex& left, const QModelIndex& right) const;
34 void setManualSortingActive( bool active );
35 bool isManualSortingActive() const;
36 public slots:
37 void slotDefaultCollectionsChanged();
39 private:
40 class EntityCollectionOrderProxyModelPrivate;
41 EntityCollectionOrderProxyModelPrivate * const d;
45 #endif /* ENTITYCOLLECTIONORDERPROXYMODEL_H */