OSDN Git Service

6a932b218209e8a2bf714bbbacf595e56243a18d
[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     ColumnMarkOrder,
30     ColumnIdOrder,
31     ColumnEnd = ColumnIdOrder
32 };
33
34 namespace Kita
35 {
36     /* for BoardView */
37     class ThreadListViewItem : public QTableWidgetItem
38     {
39     public:
40         ThreadListViewItem(int column);
41
42         virtual bool operator<(const QTableWidgetItem& other) const;
43
44     private:
45         int m_column;
46     };
47 }
48
49 #endif