mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 19:27:49 +02:00
fixed qt .pro file
This commit is contained in:
parent
8e266058ae
commit
5b769869d0
6 changed files with 2559 additions and 120 deletions
|
@ -18,23 +18,41 @@ namespace qt
|
|||
void Worker::startDaemon()
|
||||
{
|
||||
qDebug("Performing daemon start...");
|
||||
m_Daemon.start();
|
||||
qDebug("Daemon started.");
|
||||
emit resultReady();
|
||||
//try{
|
||||
m_Daemon.start();
|
||||
qDebug("Daemon started.");
|
||||
emit resultReady(false, "");
|
||||
/*}catch(std::exception ex){
|
||||
emit resultReady(true, ex.what());
|
||||
}catch(...){
|
||||
emit resultReady(true, QObject::tr("Error: unknown exception"));
|
||||
}*/
|
||||
}
|
||||
void Worker::restartDaemon()
|
||||
{
|
||||
qDebug("Performing daemon restart...");
|
||||
m_Daemon.restart();
|
||||
qDebug("Daemon restarted.");
|
||||
emit resultReady();
|
||||
}
|
||||
//try{
|
||||
m_Daemon.restart();
|
||||
qDebug("Daemon restarted.");
|
||||
emit resultReady(false, "");
|
||||
/*}catch(std::exception ex){
|
||||
emit resultReady(true, ex.what());
|
||||
}catch(...){
|
||||
emit resultReady(true, QObject::tr("Error: unknown exception"));
|
||||
}*/
|
||||
}
|
||||
void Worker::stopDaemon() {
|
||||
qDebug("Performing daemon stop...");
|
||||
m_Daemon.stop();
|
||||
qDebug("Daemon stopped.");
|
||||
emit resultReady();
|
||||
}
|
||||
//try{
|
||||
m_Daemon.stop();
|
||||
qDebug("Daemon stopped.");
|
||||
emit resultReady(false, "");
|
||||
/*}catch(std::exception ex){
|
||||
emit resultReady(true, ex.what());
|
||||
}catch(...){
|
||||
emit resultReady(true, QObject::tr("Error: unknown exception"));
|
||||
}*/
|
||||
}
|
||||
|
||||
Controller::Controller(DaemonQTImpl& daemon):
|
||||
m_Daemon (daemon)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue