[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kioslave/smb
From:       Stephan Kulow <coolo () kde ! org>
Date:       2004-05-07 13:33:03
Message-ID: 20040507133303.C5A0B1BC4 () office ! kde ! org
[Download RAW message or body]

CVS commit by coolo: 

nicer message box for the root service and a configurable debug level


  M +18 -10    kio_smb_auth.cpp   1.26


--- kdebase/kioslave/smb/kio_smb_auth.cpp  #1.25:1.26
@@ -33,4 +33,5 @@
 #include "kio_smb_internal.h"
 
+#include <ksimpleconfig.h>
 #include <qdir.h>
 #include <stdlib.h>
@@ -120,4 +121,9 @@ bool SMBSlave::checkPassword(SMBUrl &url
     info.url.setPath(share);
 
+    if ( share.isEmpty() )
+        info.prompt = i18n(
+            "<qt>Please enter authentication information for <b>%1</b></qt>" )
+                      .arg( url.host() );
+    else
     info.prompt = i18n(
         "Please enter authentication information for:\n"
@@ -130,8 +136,10 @@ bool SMBSlave::checkPassword(SMBUrl &url
 
     if ( openPassDlg(info) ) {
+        kdDebug() << "openPassDlg returned " << info.username << endl;
         url.setUser(info.username);
         url.setPass(info.password);
         return true;
     }
+    kdDebug() << "no value from openPassDlg\n";
     return false;
 }
@@ -147,8 +155,8 @@ bool SMBSlave::auth_initialize_smbc()
     {
         kdDebug() << "smbc_init call" << endl;
-        int debug_level = 0;
-#ifndef NDEBUG
-//        debug_level = 100;
-#endif
+        KSimpleConfig cfg( "kioslaverc", true );
+
+        cfg.setGroup( "SMB" );
+        int debug_level = cfg.readNumEntry( "DebugLevel", 0 );
 
         if(smbc_init(::auth_smbc_get_data,debug_level) == -1)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic