OSDN Git Service

remove unused code.
[kita/kita.git] / kita / src / bbsview.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
11 #ifndef _KITABBSVIEW_H_
12 #define _KITABBSVIEW_H_
13
14 #include <kparts/browserextension.h>
15
16 #include <qwidget.h>
17
18 class KURL;
19 class KListView;
20 class QCp932Codec;
21 class QSpacerItem;
22 class QListViewItem;
23 class QComboBox;
24 class QVBoxLayout;
25 class QHBoxLayout;
26
27 namespace Kita
28 {
29     class Board;
30     class Category;
31     class ListViewItem;
32 }
33
34 /**
35  *
36  * @author Hideki Ikemoto <ikemo@users.sourceforge.jp>
37  **/
38 class KitaBBSView : public QWidget
39 {
40     Q_OBJECT
41     Kita::ListViewItem* m_favorites;
42
43     /* list color */
44     QColor m_textColor;
45     QColor m_baseColor;
46     QColor m_backColor;
47     QColor m_altColor;
48
49     QValueList<Kita::Category> getCategoryList( const QString& html ) const;
50
51     void saveOpened();
52     QComboBox* SearchCombo;
53     KListView* m_boardList;
54
55 protected:
56     QVBoxLayout* KitaBBSViewBaseLayout;
57     QHBoxLayout* layout10;
58     QSpacerItem* spacer2;
59
60 private slots:
61     void loadBoard( QListViewItem* item );
62     void slotContextMenuRequested( QListViewItem*, const QPoint&, int );
63     void slotMouseButtonClicked( int, QListViewItem* );
64     void refreshFavoriteBoards();
65     void filter( const QString& str );
66
67 public:
68     KitaBBSView( QWidget *parent, const char *name = 0 );
69     ~KitaBBSView();
70
71     void loadOpened();
72
73 public slots:
74     void updateBoardList();
75     void showBoardList();
76     void setFont( const QFont& font );
77     virtual void setFocus();
78
79 private:
80     void loadExtBoard();
81     bool downloadBoardList();
82 };
83
84 #endif