// allow the view to change the statusbar and caption
connect(m_threadView, SIGNAL(signalChangeStatusbar(const QString&)),
this, SLOT(changeStatusbar(const QString&)));
- connect(m_boardView, SIGNAL(signalLoadBoard(const KURL&, const QString&)),
- m_subjectView, SLOT(slotLoadBoard(const KURL&, const QString&)));
+// connect(m_boardView, SIGNAL(signalLoadBoard(const KURL&, const QString&)),
+// m_subjectView, SLOT(slotLoadBoard(const KURL&, const QString&)));
+ connect(m_boardView, SIGNAL(clicked(const Kita2ch::Board&)),
+ m_subjectView, SLOT(loadBoard(const Kita2ch::Board&)));
connect(m_subjectView, SIGNAL(signalShowThread(const Kita2ch::Board&, const Kita2ch::Thread&)),
m_threadView, SLOT(slotShowThread(const Kita2ch::Board&, const Kita2ch::Thread&)));
// connect(m_view, SIGNAL(signalChangeCaption(const QString&)),
#include <klistview.h>
#include "part/qcp932codec.h"
+#include "part/kita2ch.h"
#include "kitaboardview.h"
#include "kita.h"
if(item->text(1).isEmpty()) {
return;
}
-
- emit signalLoadBoard(url, boardName);
+
+ Kita2ch::Board board(url, boardName);
+ emit clicked(board);
}
void KitaBoardView::slotFontChanged(QFont& font)
class Kita;
class KURL;
+namespace Kita2ch {
+ class Board;
+}
+
/**
- *
+ *
* Hideki Ikemoto
**/
class KitaBoardView : public KitaBoardViewBase
void slotLoadBoard(QListViewItem* item);
void slotFontChanged(QFont& font);
signals:
- void signalLoadBoard(const KURL& url, const QString& boardName);
+ void clicked(const Kita2ch::Board& board);
};
#endif
emit signalShowThread(m_board, Kita2ch::Thread(datURL));
}
-void KitaSubjectView::slotLoadBoard(const KURL& url, const QString& boardName)
+void KitaSubjectView::loadBoard(const Kita2ch::Board& board)
{
// reset member variables.
{
m_prevquery = "";
}
- m_board = Kita2ch::Board(url, boardName);
+ m_board = board;
m_board.refreshChildList();
KitaCacheInfo* cache = KitaCacheInfo::getInstance();
class KListViewItem;
/**
- *
+ *
* Hideki Ikemoto
**/
class KitaSubjectView : public KitaSubjectViewBase
public slots:
void reloadSubject();
void loadThread(QListViewItem* item);
- void slotLoadBoard(const KURL& url, const QString& boardName);
+ void loadBoard(const Kita2ch::Board& board);
void slotHideButton(bool on);
void slotFontChanged(QFont& font);