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

void Main_window::cancel_copy_window (  ) [slot]

Cancel query.

Click on the cancel button or query the cancel. Close all should be closed.

Definition at line 1481 of file Mwindow.cpp.

References AddingFolderThread, CopyThread, copyThread::getCurrentStat(), shouldBeClosed, AddFolderThread::stop(), copyThread::stopTheCopy(), TimerForCopySpeedUpdate, and TimerForCopyUpdate.

Referenced by closeEvent(), errorManagement(), GetActionFileExist(), ListingIsFinish(), Main_window(), and setArguments().

{
      DEBUGCONSOLE(30,"Main_window::cancel_copy_window","Quit the main windows");
      shouldBeClosed=true;
      this->hide();
      #if (DEBUG_ULTRACOPIER>0)
      DebugTrackThread.stop();
      #endif
      TimerForCopyUpdate->stop();
      TimerForCopySpeedUpdate->stop();
      disconnect(AddingFolderThread);
      if(AddingFolderThread->isRunning())
      {
            DEBUGCONSOLE(30,"Main_window::cancel_copy_window","Close the listing thread");
            AddingFolderThread->stop();
            DEBUGCONSOLE(90,"Main_window::cancel_copy_window","stop() ... done");
            AddingFolderThread->quit();
            DEBUGCONSOLE(90,"Main_window::cancel_copy_window","terminate() ... done");
      }
      if(CopyThread->getCurrentStat()!=copyThread::Stopped)
      {
            DEBUGCONSOLE(30,"Main_window::cancel_copy_window","Close the copy thread");
            CopyThread->stopTheCopy();
            DEBUGCONSOLE(90,"Main_window::cancel_copy_window","terminate() ... done");
      }
      DEBUGCONSOLE(90,"Main_window::cancel_copy_window","emit copyFinish()");
      emit copyFinish();
      DEBUGCONSOLE(90,"Main_window::cancel_copy_window","check thread stat");
      if(CopyThread->allThreadIsFinish() && AddingFolderThread->isFinished())
      {
            DEBUGCONSOLE(90,"Main_window::cancel_copy_window","emit canDeleteTheObject()");
            emit canDeleteTheObject();
      }
      DEBUGCONSOLE(90,"Main_window::cancel_copy_window","stop");
}

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