#include <qtextcodec.h>
#include <qregexp.h>
+#include "qcp932codec.h"
+
using namespace Kita2ch;
/*
return true;
}
+
+QString PostInfo::postStr()
+{
+ QCp932Codec codec;
+ int mib = codec.mibEnum();
+ QString ret;
+ (ret += "submit=") += submit;
+ (ret += "&subject=");
+ (ret += "&FROM=") += KURL::encode_string(name, mib);
+ (ret += "&mail=") += KURL::encode_string(mail, mib);
+ (ret += "&MESSAGE=") += KURL::encode_string(body, mib);
+ (ret += "&bbs=") += bbs;
+ (ret += "&key=") += key;
+ (ret += "&time=") += time;
+
+ return ret;
+}
bbscgi.setPath( m_postInfo.bbscgi );
//int mib = QTextCodec::codecForName("CP932")->mibEnum();
- QCp932Codec codec;
- int mib = codec.mibEnum();
- QString postStr;
- (postStr += "submit=") += m_postInfo.submit;
- (postStr += "&subject=");
- (postStr += "&FROM=") += KURL::encode_string(m_postInfo.name, mib);
- (postStr += "&mail=") += KURL::encode_string(m_postInfo.mail, mib);
- (postStr += "&MESSAGE=") += KURL::encode_string(m_postInfo.body, mib);
- (postStr += "&bbs=") += m_postInfo.bbs;
- (postStr += "&key=") += m_postInfo.key;
- (postStr += "&time=") += m_postInfo.time;
+ QString postStr = m_postInfo.postStr();
printf("query: %s\n", postStr.latin1());
m_array.resize(0);