svnno****@sourc*****
svnno****@sourc*****
2009年 7月 29日 (水) 23:26:25 JST
Revision: 2496 http://sourceforge.jp/projects/kita/svn/view?view=rev&revision=2496 Author: nogu Date: 2009-07-29 23:26:25 +0900 (Wed, 29 Jul 2009) Log Message: ----------- remove a file added by mistake Removed Paths: ------------- kita/branches/KITA-KDE4/kita/src/libkita/bbs.cpp Deleted: kita/branches/KITA-KDE4/kita/src/libkita/bbs.cpp =================================================================== --- kita/branches/KITA-KDE4/kita/src/libkita/bbs.cpp 2009-07-29 14:20:46 UTC (rev 2495) +++ kita/branches/KITA-KDE4/kita/src/libkita/bbs.cpp 2009-07-29 14:26:25 UTC (rev 2496) @@ -1,58 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2006 by Kita Developers * - * ikemo****@users***** * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - ***************************************************************************/ -#include "k2ch.h" - -#include <QtCore/QTextCodec> - -#include "kita_misc.h" - -using namespace Kita; - -K2ch::K2ch() -{ -} - - -K2ch::~K2ch() -{ -} - -QString K2ch::buildPostStr(const QString& name, const QString& mail, - const QString& body, const QString& boardID, - const QString& threadID, int serverTime, - const QString& sessionID) -{ - QString ret; - QTextCodec* codec = QTextCodec::codecForName("Shift-JIS"); - - int mib = codec->mibEnum(); - - (ret += "submit=") += "%8f%91%82%ab%8d%9e%82%de"; /* kakikomu */ - - /* from, mail, message, bbs */ - (ret += "&FROM=") += encode_string(name, mib); - (ret += "&mail=") += encode_string(mail, mib); - (ret += "&MESSAGE=") += encode_string(body, mib); - (ret += "&bbs=") += boardID; - (ret += "&tepo=don"); - - /* key */ - (ret += "&key=") += threadID; - - /* time */ - (ret += "&time=") += QString::number(serverTime); - - /* login */ - if (! sessionID.isEmpty()) { - (ret += "&sid=") += sessionID; - } - - return ret; -}