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

List:       kde-commits
Subject:    KDE/kdebase/kioslave
From:       Laurent Montel <montel () kde ! org>
Date:       2006-01-12 13:13:25
Message-ID: 1137071605.619370.12036.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 497238 by mlaurent:

Byebye readNumEntry


 M  +2 -2      sftp/kio_sftp.cpp  
 M  +1 -1      smb/kio_smb_auth.cpp  
 M  +1 -1      thumbnail/exrcreator.cpp  


--- trunk/KDE/kdebase/kioslave/sftp/kio_sftp.cpp #497237:497238
@@ -295,7 +295,7 @@
     if ( info.code != 0 )
     {
       // Should we keep the partially downloaded file ??
-      KIO::filesize_t size = config()->readNumEntry("MinimumKeepSize", DEFAULT_MINIMUM_KEEP_SIZE);
+      KIO::filesize_t size = config()->readEntry("MinimumKeepSize", DEFAULT_MINIMUM_KEEP_SIZE);
       if (info.size < size)
         ::remove(dest_part.data());
 
@@ -1060,7 +1060,7 @@
 
         if( markPartial ) {
             // Remove remote file if it smaller than our keep size
-            uint minKeepSize = config()->readNumEntry("MinimumKeepSize", DEFAULT_MINIMUM_KEEP_SIZE);
+            uint minKeepSize = config()->readEntry("MinimumKeepSize", DEFAULT_MINIMUM_KEEP_SIZE);
 
             if( sftpStat(writeUrl, attr) == SSH2_FX_OK ) {
                 if( attr.fileSize() < minKeepSize ) {
--- trunk/KDE/kdebase/kioslave/smb/kio_smb_auth.cpp #497237:497238
@@ -165,7 +165,7 @@
         KSimpleConfig cfg( "kioslaverc", true );
 
         cfg.setGroup( "SMB" );
-        int debug_level = cfg.readNumEntry( "DebugLevel", 0 );
+        int debug_level = cfg.readEntry( "DebugLevel", 0 );
 
 #if 0
 	/* old API initialisation routine does not allow to set flags */
--- trunk/KDE/kdebase/kioslave/thumbnail/exrcreator.cpp #497237:497238
@@ -64,7 +64,7 @@
 	kdDebug() << "EXRcreator - using original image" << endl;
 	KConfig * config = KGlobal::config();
 	KConfigGroup configGroup( config, "PreviewSettings" );
-	unsigned long long maxSize = configGroup.readNumEntry( "MaximumSize", 1024*1024 /* 1MB */ );
+	unsigned long long maxSize = configGroup.readEntry( "MaximumSize", 1024*1024 /* 1MB */ );
 	unsigned long long fileSize = QFile( path ).size();
 	if ( (fileSize > 0) && (fileSize < maxSize) ) {
 	    if (!img.load( path )) {
[prev in list] [next in list] [prev in thread] [next in thread] 

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