From 8a579f697b075bbc76c9f1b23d72982717e073a4 Mon Sep 17 00:00:00 2001 From: ikemo Date: Sun, 17 Apr 2005 12:34:29 +0000 Subject: [PATCH] move board( not tested! ) git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1711 56b19765-1e22-0410-a548-a0f45d66c51a --- kita/src/bbs/bbsview.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/kita/src/bbs/bbsview.cpp b/kita/src/bbs/bbsview.cpp index 4350e8c..60e729b 100644 --- a/kita/src/bbs/bbsview.cpp +++ b/kita/src/bbs/bbsview.cpp @@ -135,6 +135,10 @@ bool KitaBBSView::isBoardURL( const QString& url ) const */ bool KitaBBSView::downloadBoardList() { + // moved urls. + QValueList oldURLs; + QValueList newURLs; + QString tmpFile; QString url = KitaConfig::boardListURL(); if ( ! @@ -183,6 +187,8 @@ bool KitaBBSView::downloadBoardList() if ( ret == Kita::Board_enrollNew ) newBoards += boardName + " ( " + category.category_name + " ) " + boardURL + "\n"; if ( ret == Kita::Board_enrollMoved ) oldBoards += boardName + " ( " + category.category_name + " ) " + oldURL + " -> " + boardURL + "\n"; count++; + oldURLs += oldURL; + newURLs += boardURL; } } @@ -233,6 +239,14 @@ bool KitaBBSView::downloadBoardList() return FALSE; } + // if moved URL exists. move files. + for( int i=0; i %s", oldURL.latin1(), newURL.latin1()); + Kita::BoardManager::moveBoard( oldURL, newURL ); + } /*------------------------------------------------*/ /* save config */ -- 2.11.0