Changeset 3684

Show
Ignore:
Timestamp:
03/27/09 12:15:16 (12 months ago)
Author:
kris
Message:

Updated PCInstall, now it'll read messages during the upgrade process and display them
on the GUI for the user to know why the heck its taking so long :P

Location:
pcbsd/trunk/PCInstall
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pcbsd/trunk/PCInstall/pcinstall.cpp

    r3641 r3684  
    14151415 
    14161416 
    1417  
     1417// Function which reads the output of the tar extraction and displays it on the GUI 
    14181418void PCInstall::readTarStdoutSlot() 
    14191419{ 
     
    14451445} 
    14461446 
     1447// Function which reads the output of PCBSD.MountUpgrade.sh and displays on GUI its messages 
     1448void PCInstall::readUpgradeStdoutSlot() 
     1449{ 
     1450    QString Buffer; 
     1451    QString tmp; 
     1452 
     1453    // Loop while getting input 
     1454    while (RunUpgradeProc->canReadLineStdout() ) 
     1455    { 
     1456        // Read the line 
     1457        Buffer = RunUpgradeProc->readLineStdout(); 
     1458         
     1459        // Set the Label to current text 
     1460        textFileProgress->setText(Buffer); 
     1461 
     1462    } // End while loop 
     1463} 
    14471464 
    14481465void PCInstall::setupUsersSlot() 
     
    20642081 
    20652082    connect( RunUpgradeProc, SIGNAL(processExited()), this, SLOT(startTarExtractSlot()) ); 
     2083    connect( RunUpgradeProc, SIGNAL(readyReadStdout() ), this, SLOT(readUpgradeStdoutSlot() ) ); 
    20662084 
    20672085    if ( !RunUpgradeProc->start() ) { 
  • pcbsd/trunk/PCInstall/pcinstall.h

    r3501 r3684  
    6565    void startTarExtractSlot(); 
    6666    void readTarStdoutSlot(); 
     67    void readUpgradeStdoutSlot(); 
    6768    void setupUsersSlot(); 
    6869    void slotRunLastScripts();