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
|
@ -4,6 +4,7 @@
|
|||
#include <QObject>
|
||||
#include <QThread>
|
||||
#include <QMutex>
|
||||
#include <QMessageBox>
|
||||
|
||||
namespace i2p
|
||||
{
|
||||
|
@ -32,6 +33,7 @@ namespace qt
|
|||
bool isRunning();
|
||||
private:
|
||||
void setRunning(bool running);
|
||||
void showError(std::string errorMsg);
|
||||
private:
|
||||
QMutex* mutex;
|
||||
bool m_IsRunning;
|
||||
|
@ -55,7 +57,7 @@ namespace qt
|
|||
void stopDaemon();
|
||||
|
||||
signals:
|
||||
void resultReady();
|
||||
void resultReady(bool failed, QString failureMessage);
|
||||
};
|
||||
|
||||
class Controller : public QObject
|
||||
|
@ -69,7 +71,11 @@ namespace qt
|
|||
DaemonQTImpl& m_Daemon;
|
||||
|
||||
public slots:
|
||||
void handleResults(){}
|
||||
void handleResults(bool failed, QString failureMessage){
|
||||
if(failed){
|
||||
QMessageBox::critical(0, QObject::tr("Error"), failureMessage);
|
||||
}
|
||||
}
|
||||
signals:
|
||||
void startDaemon();
|
||||
void stopDaemon();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue