[Kita-svn] [2353] don't call deprecated functions

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 7月 5日 (日) 09:09:00 JST


Revision: 2353
          http://sourceforge.jp/projects/kita/svn/view?view=rev&revision=2353
Author:   nogu
Date:     2009-07-05 09:09:00 +0900 (Sun, 05 Jul 2009)

Log Message:
-----------
don't call deprecated functions

Modified Paths:
--------------
    kita/branches/KITA-KDE4/kita/src/libkita/access.cpp
    kita/branches/KITA-KDE4/kita/src/libkita/account.cpp
    kita/branches/KITA-KDE4/kita/src/writeview.cpp


-------------- next part --------------
Modified: kita/branches/KITA-KDE4/kita/src/libkita/access.cpp
===================================================================
--- kita/branches/KITA-KDE4/kita/src/libkita/access.cpp	2009-07-04 23:39:32 UTC (rev 2352)
+++ kita/branches/KITA-KDE4/kita/src/libkita/access.cpp	2009-07-05 00:09:00 UTC (rev 2353)
@@ -16,6 +16,7 @@
 #include <kurl.h>
 #include <kio/slaveconfig.h>
 #include <kio/job.h>
+#include <kio/jobuidelegate.h>
 #include <k3rfcdate.h>
 
 #include <qregexp.h>
@@ -171,7 +172,8 @@
     }
     m_currentJob = 0;
     if ( tjob->error() ) {
-        tjob->showErrorDialog();
+        tjob->ui()->setWindow(0);
+        tjob->ui()->showErrorMessage();
     } else {
         m_header = tjob->queryMetaData( "HTTP-Headers" );
     }
@@ -394,7 +396,8 @@
 {
     m_currentJob = 0;
     if ( job->error() ) {
-        job->showErrorDialog();
+        job->ui()->setWindow(0);
+        job->ui()->showErrorMessage();
     } else {
         m_header = job->queryMetaData( "HTTP-Headers" );
     }

Modified: kita/branches/KITA-KDE4/kita/src/libkita/account.cpp
===================================================================
--- kita/branches/KITA-KDE4/kita/src/libkita/account.cpp	2009-07-04 23:39:32 UTC (rev 2352)
+++ kita/branches/KITA-KDE4/kita/src/libkita/account.cpp	2009-07-05 00:09:00 UTC (rev 2353)
@@ -15,6 +15,7 @@
 #include <kio/netaccess.h>
 #include <kio/jobclasses.h>
 #include <kio/job.h>
+#include <kio/jobuidelegate.h>
 
 #include <qregexp.h>
 #include <qapplication.h>
@@ -82,7 +83,8 @@
 {
     m_job = 0;
     if ( job->error() ) {
-        job->showErrorDialog();
+        job->ui()->setWindow(0);
+        job->ui()->showErrorMessage();
     }
 
     QString str( m_data );

Modified: kita/branches/KITA-KDE4/kita/src/writeview.cpp
===================================================================
--- kita/branches/KITA-KDE4/kita/src/writeview.cpp	2009-07-04 23:39:32 UTC (rev 2352)
+++ kita/branches/KITA-KDE4/kita/src/writeview.cpp	2009-07-05 00:09:00 UTC (rev 2353)
@@ -388,7 +388,7 @@
 
     /* login */
     if ( Kita::DatManager::is2chThread( m_datURL ) && Kita::Account::isLogged() ) {
-        sessionID = KUrl::encode_string( Kita::Account::getSessionID() );
+        sessionID = KUrl::toPercentEncoding( Kita::Account::getSessionID() );
     }
 
     return K2ch::buildPostStr( name(), mail(),



Kita-svn メーリングリストの案内
Back to archive index