1 /***************************************************************************
2 * Copyright (C) 2003 by Hideki Ikemoto *
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 _KITATHREADVIEW_H_
12 #define _KITATHREADVIEW_H_
16 #include <qlineedit.h>
19 #include <dom/dom_node.h>
20 #include <kparts/browserextension.h>
22 #include "kitathreadviewbase.h"
36 class KitaThreadView : public KitaThreadViewBase
41 KitaThreadView(QWidget *parent, const char *name=0);
43 QString threadSubject() const;
44 QStringList parseSearchQuery(const QString &input);
45 void searchNext(const QStringList &input);
46 void highLighten(bool yes, const QStringList &input);
49 void showThreadCompleted();
50 void datURLRedirected(const KURL& newDatURL);
51 void openURLRequest( const KURL &url, const KParts::URLArgs &args = KParts::URLArgs() );
52 void createNewWindow( const KURL &url, const KParts::URLArgs &args = KParts::URLArgs() );
53 void setLocationBarURL( const QString &url );
54 void enableAction( const char * name, bool enabled );
57 void slotReceiveThreadData(KIO::Job* job, const QByteArray& data);
58 void slotRedirection(KIO::Job* job, const KURL &);
59 void slotThreadResult(KIO::Job* job);
60 void slotWriteButtonClicked();
61 void slotReceiveWriteResult(KIO::Job* job, const QByteArray & data);
62 void slotWriteResult(KIO::Job* job);
63 void slotCanceled(KIO::Job* job);
64 void slotDisplayContents(const QString& input, const KURL& urlOfInput = 0);
67 void slotDOMNodeActivated(const DOM::Node &node);
69 private: // Private attributes
70 KHTMLPart* threadPart;
71 QCString m_threadData;
75 QCString m_writeResult;
83 KIO::Job * m_currentJob;
86 QStringList m_prevquery;
91 void highLightenNodes(DOM::NodeList nodes, const QStringList &query);
92 static QStringList lt_gt_spliter( const QString & input );
93 void insertSearchCombo();
96 void slotSearchButton();
97 void slotHighLightenButton(bool yes);
98 void slotOnURL(const QString& url);
99 void slotShowThread(const KURL& _datURL, const KURL& _boardURL, const QString& boardName);
101 void signalChangeStatusbar(const QString&);