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 _KITAWRITEDIALOG_H_
12 #define _KITAWRITEDIALOG_H_
16 #include <kparts/browserextension.h>
18 #include "kitawritedialogbase.h"
34 class KitaWriteView : public KitaWriteDialogBase
40 KitaHTMLPart *m_preview;
46 static QCp932Codec* m_cp932Codec;
50 KitaWriteView( QWidget* parent, const char* name, const KURL& url, int mode, const QString& newThreadName = QString::null );
51 virtual ~KitaWriteView();
52 void setMessage( const QString& bodyStr );
53 void insertMessage( const QString& str );
55 const QString name() const;
56 const QString mail() const;
57 const QString body() const;
58 const KURL datURL() const;
62 virtual void setFocus();
63 void slotPostMessage();
65 void slotEnableWriting( bool enable );
70 void slotRecieveData( KIO::Job*, const QByteArray& );
71 void slotPostFinished( KIO::Job* );
72 void slotCurrentChanged ( QWidget * w );
73 bool slotBodyTextChanged();
78 QString setJBBSPostStr();
79 QString setFlashCGIPostStr();
80 void logPostMessage();
81 int resultCode( const QString& response ) const;
82 QString resultMessage( const QString& response ) const;
83 QString resultTitle( const QString& response ) const;
88 void postFinished( KIO::Job* );
89 void postResponse( const QString& response, const KURL& bbscgi = KURL() );
90 void openURLRequestExt( const KURL& url, const KParts::URLArgs& args = KParts::URLArgs(),
91 QString mimetype = QString::null,
92 int usr1 = 0, int usr2 = 0,
93 const KURL& usrUrl1 = KURL(),
94 const KURL& usrUrl2 = KURL(),
95 const QString& usrStr1 = QString::null,
96 const QString& usrStr2 = QString::null );
97 void closeCurrentTab();