return ret;
}
-
-QString FlashCGI::buildNewThreadPostStr( const QString & name, const QString & mail, const QString & body, const QString & boardID, const QString & threadName )
-{
- QString ret;
- QCp932Codec codec;
- int mib = codec.mibEnum();
-
- ( ret += "submit=" ) += "%90V%8bK%83X%83%8c%83b%83h%8d%ec%90%ac"; /* sinki thread sakusei */
- ( ret += "&subject=" ) += KURL::encode_string( threadName, mib );
- ( ret += "&FROM=" ) += KURL::encode_string( name, mib );
- ( ret += "&mail=" ) += KURL::encode_string( mail, mib );
- ( ret += "&MESSAGE=" ) += KURL::encode_string( body, mib );
- ( ret += "&bbs=" ) += boardID;
-
- return ret;
-}
class FlashCGI {
public:
static QString buildPostStr( const QString& name, const QString& mail, const QString& body, const QString& boardID, const QString& threadID );
- static QString buildNewThreadPostStr( const QString& name, const QString& mail, const QString& body, const QString& boardID, const QString& threadName );
private:
FlashCGI();
return ret;
}
-
-QString JBBS::buildNewThreadPostStr( const QString & name, const QString & mail, const QString & body, const QString & boardID, const QString & threadName, int serverTime )
-{
- QString ret;
- int mib = QTextCodec::codecForName( "eucJP" ) ->mibEnum();
-
- ( ret += "submit=" ) += "%90V%8BK%8F%91%82%AB%8D%9E%82%DD"; /* sinki kakikomi */
- ( ret += "&NAME=" ) += KURL::encode_string( name, mib );
- ( ret += "&MAIL=" ) += KURL::encode_string( mail, mib );
- ( ret += "&MESSAGE=" ) += KURL::encode_string( body, mib ).replace( ";", "%3B" );
- ( ret += "&BBS=" ) += boardID.section( "/", 1, 1 );
- ( ret += "&DIR=" ) += boardID.section( "/", 0, 0 );
- ( ret += "&SUBJECT=" ) += KURL::encode_string( threadName, mib );
- ( ret += "&TIME=" ) += QString::number( serverTime );
-
- return ret;
-}
class JBBS {
public:
static QString buildPostStr( const QString& name, const QString& mail, const QString& body, const QString& boardID, const QString& threadID, int serverTime );
- static QString buildNewThreadPostStr( const QString& name, const QString& mail, const QString& body, const QString& boardID, const QString& threadName, int serverTime );
private:
JBBS();
return ret;
}
-
-
-QString K2ch::buildNewThreadPostStr( const QString & name, const QString & mail,
- const QString & body, const QString & boardID,
- const QString & threadName, int serverTime,
- const QString & sessionID )
-{
- QString ret;
- QCp932Codec codec;
-
- int mib = codec.mibEnum();
-
- ( ret += "submit=" ) += "%90V%8bK%83X%83%8c%83b%83h%8d%ec%90%ac"; /* sinki thread sakusei */
-
- /* subject */
- ( ret += "&subject=" ) += KURL::encode_string( threadName, mib );
-
- /* from, mail, message, bbs */
- ( ret += "&FROM=" ) += KURL::encode_string( name, mib );
- ( ret += "&mail=" ) += KURL::encode_string( mail, mib );
- ( ret += "&MESSAGE=" ) += KURL::encode_string( body, mib );
- ( ret += "&bbs=" ) += boardID;
-
- /* time */
- ( ret += "&time=" ) += QString::number( serverTime );
-
- /* login */
- if ( ! sessionID.isEmpty() ) {
- ( ret += "&sid=" ) += sessionID;
- }
-
- return ret;
-}
class K2ch {
public:
static QString buildPostStr( const QString& name, const QString& mail, const QString& body, const QString& boardID, const QString& threadID, int serverTime, const QString& sessionID );
- static QString buildNewThreadPostStr( const QString& name, const QString& mail, const QString& body, const QString& boardID, const QString& threadName, int serverTime, const QString& sessionID );
private:
K2ch();
return ret;
}
-
-QString MachiBBS::buildNewThreadPostStr( const QString & name, const QString & mail, const QString & body, const QString & boardID, const QString & threadName, int serverTime )
-{
- // TODO: support.
- return QString::null;
-}
class MachiBBS {
public:
static QString buildPostStr( const QString& name, const QString& mail, const QString& body, const QString& boardID, const QString& threadID, int serverTime );
- static QString buildNewThreadPostStr( const QString& name, const QString& mail, const QString& body, const QString& boardID, const QString& threadName, int serverTime );
private:
MachiBBS();