Ignore:
Timestamp:
01/08/14 07:40:47 (9 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
a469e71
Parents:
8a4c7a0
Message:

Finish cleaning up the new system manager ports/source checkout functionality.
Also create a backend class that just contains a bunch of static functions for simple usage elsewhere (like generating ports update commands). This will make it easy to update the utility later if URL's or other system calls change (since we don't need to worry about all the GUI-specific stuff getting mixed in).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-sysmanager/longProc.cpp

    r8f95077 re9a3917  
    4848  process->terminate(); 
    4949} 
    50 // ==================== 
    51 //   STATIC PUBLIC FUNCTIONS 
    52 // ==================== 
    53 bool LongProc::quickCMD(QString dir, QString cmd, QStringList args){ 
    54   //Run a quick command without looking for output other than success/failure 
    55   QProcess *proc = new QProcess; 
    56   if( !dir.isEmpty() && QFile::exists(dir) ){ proc->setWorkingDirectory(dir); } 
    57   if(args.isEmpty()){ proc->start(cmd); } 
    58   else{ proc->start(cmd, args); } 
    59   while(!proc->waitForFinished(300)){ QCoreApplication::processEvents(); } 
    60   return (proc->exitCode() == 0); 
    61 } 
    6250 
    6351// ============== 
Note: See TracChangeset for help on using the changeset viewer.