1 /***************************************************************************
2 * Copyright (C) 2004 by Kita Developers *
3 * ikemo@users.sourceforge.jp *
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 ***************************************************************************/
11 #ifndef _KITABBSVIEW_H_
12 #define _KITABBSVIEW_H_
14 #include <kparts/browserextension.h>
36 * @author Hideki Ikemoto <ikemo@users.sourceforge.jp>
38 class KitaBBSView : public QWidget
41 Kita::ListViewItem* m_favorites;
42 static QCp932Codec* m_cp932Codec;
50 QValueList<Kita::Category> getCategoryList( const QString& html ) const;
53 QComboBox* SearchCombo;
54 KListView* m_boardList;
57 QVBoxLayout* KitaBBSViewBaseLayout;
58 QHBoxLayout* layout10;
62 void loadBoard( QListViewItem* item );
63 void slotContextMenuRequested( QListViewItem*, const QPoint&, int );
64 void slotMouseButtonClicked( int, QListViewItem* );
65 void refreshFavoriteBoards();
66 void filter( const QString& str );
69 KitaBBSView( QWidget *parent, const char *name = 0 );
75 void updateBoardList();
77 void setFont( const QFont& font );
78 virtual void setFocus();
82 bool downloadBoardList();
85 void openBoard( const KURL& url );
86 void openURLRequestExt( const KURL& url, const QString mimetype = QString::null );
87 void sigShowSubject();