OSDN Git Service

d6eeda571934b02a3cd457c7a13b29c0bf67d594
[kita/kita.git] / kita / src / threadlistviewitem.h
1 /***************************************************************************
2 *   Copyright (C) 2004 by Kita Developers                                 *
3 *   ikemo@users.sourceforge.jp                                            *
4 *                                                                         *
5 *   This program is free software; you can redistribute it and/or modify  *
6 *   it under the terms of the GNU General Public License as published by  *
7 *   the Free Software Foundation; either version 2 of the License, or     *
8 *   (at your option) any later version.                                   *
9 ***************************************************************************/
10 #ifndef KITATHREADLISTVIEWITEM_H
11 #define KITATHREADLISTVIEWITEM_H
12
13 #include <QtGui/QTableWidgetItem>
14
15 enum ThreadListCol {
16     ColumnBegin = 0,
17     ColumnMark = 0,
18     ColumnId,
19     ColumnIcon,
20     ColumnSubject,
21     ColumnResNum,
22     ColumnReadNum,
23     ColumnViewPos,
24     ColumnUnread,
25     ColumnSince,
26     ColumnSpeed,
27     ColumnBoard,
28     ColumnDatUrl,
29     ColumnIdOrder,
30     ColumnEnd = ColumnIdOrder
31 };
32
33 namespace Kita
34 {
35     /* for BoardView */
36     class ThreadListViewItem : public QTableWidgetItem
37     {
38     public:
39         ThreadListViewItem(int column);
40
41         virtual bool operator<(const QTableWidgetItem& other) const;
42
43     private:
44         int m_column;
45     };
46 }
47
48 #endif