Fix assert when Mail-Followup-To contains two emails, as Ossi's Mutt does
[kdepim.git] / kdgantt2 / kdganttabstractrowcontroller.h
bloba7ee204677370786c97f1c6571c8454969a25dc5
1 /****************************************************************************
2 ** Copyright (C) 2001-2006 Klarälvdalens Datakonsult AB. All rights reserved.
3 **
4 ** This file is part of the KD Gantt library.
5 **
6 ** This file may be distributed and/or modified under the terms of the
7 ** GNU General Public License version 2 as published by the Free Software
8 ** Foundation and appearing in the file LICENSE.GPL included in the
9 ** packaging of this file.
11 ** Licensees holding valid commercial KD Gantt licenses may use this file in
12 ** accordance with the KD Gantt Commercial License Agreement provided with
13 ** the Software.
15 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18 ** See http://www.kdab.net/kdgantt for
19 ** information about KD Gantt Commercial License Agreements.
21 ** Contact info@kdab.net if any conditions of this
22 ** licensing are not clear to you.
24 **********************************************************************/
25 #ifndef KDGANTTABSTRACTROWCONTROLLER_H
26 #define KDGANTTABSTRACTROWCONTROLLER_H
28 #include <QPair>
29 #include "kdganttglobal.h"
31 class QModelIndex;
33 namespace KDGantt {
34 class KDGANTT_EXPORT AbstractRowController {
35 public:
36 AbstractRowController();
37 virtual ~AbstractRowController();
39 virtual int headerHeight() const = 0;
40 virtual int maximumItemHeight() const = 0;
41 virtual int totalHeight() const = 0;
43 virtual bool isRowVisible( const QModelIndex& idx ) const = 0;
44 virtual bool isRowExpanded( const QModelIndex& idx ) const = 0;
45 virtual Span rowGeometry( const QModelIndex& idx ) const = 0;
48 virtual QModelIndex indexAt( int height ) const = 0;
49 virtual QModelIndex indexAbove( const QModelIndex& idx ) const = 0;
50 virtual QModelIndex indexBelow( const QModelIndex& idx ) const = 0;
54 #endif /* KDGANTTABSTRACTROWCONTROLLER_H */