Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /****************************************************************************
- ** ui.h extension file, included from the uic-generated form implementation.
- **
- ** If you want to add, delete, or rename functions or slots, use
- ** Qt Designer to update this file, preserving your code.
- **
- ** You should not define a constructor or destructor in this file.
- ** Instead, write your code in functions called init() and destroy().
- ** These will automatically be called by the form's constructor and
- ** destructor.
- *****************************************************************************/
- #include "portsnapprogress.h"
- #include <qtextstream.h>
- #include <QProcess>
- #include <QDebug>
- #include <QDir>
- void PortsnapProc::init(bool ports, QString pcVer)
- {
- longProcess = new PortsnapProc;
- connect(longProcess, SIGNAL(ProcMessage(QString)), this, SLOT(UpdateProcessDisplay(QString)) );
- connect(longProcess, SIGNAL(procFinished(bool)), this, SLOT(ProcessFinished(bool)) );
- if( longProcess->isRunning() ){
- qDebug() << "Ports are already being modified, try again after it finishes";
- return;
- }
- if( longProcess->startInitPorts() ){ qDebug() << "Ports init started successfully"; }
- else{ qDebug() << "Ports init could not be started"; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement