Logo Search packages:      
Sourcecode: ultracopier version File versions  Download package

bool copyThread::setBlockSize ( const int  block = 64 ) [slot]

set block size

Parameters:
blockthe new block size
Returns:
Return true if succes

Definition at line 574 of file CopyThread.cpp.

References blockSizeCurrent, maxSpeed, and setMaxSpeed().

Referenced by Main_window::Main_window(), Main_window::setDefaultOptions(), and Main_window::updateBlockSize().

{
      DEBUGCONSOLE(50,"copyThread::setBlockSize","Set new block size: "+QString::number(block));
      if(block<1 || block>16384)
      {
            blockSizeCurrent=block*1024;
            //set the new max speed because the timer have changed
            setMaxSpeed(maxSpeed);
            return true;
      }
      else
            return false;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index