qt: daemon now operates in the background thread; added Quit GUI button

This commit is contained in:
hypnosis-i2p 2016-06-17 21:49:49 +08:00
parent 3e912c6198
commit 1b35f68de9
12 changed files with 360 additions and 43 deletions

View file

@ -33,8 +33,10 @@ namespace i2p
#if defined(QT_GUI_LIB) // check if QT
#define Daemon i2p::util::DaemonQT::Instance()
class DaemonQTImpl;
class DaemonQT: public i2p::util::Daemon_Singleton
#if 0
class DaemonQTImpl;
#endif
class DaemonQT: public i2p::util::Daemon_Singleton
{
public:
@ -45,12 +47,14 @@ namespace i2p
}
bool init(int argc, char* argv[]);
void run ();
#if 0
void run ();
private:
private:
std::shared_ptr<DaemonQTImpl> m_Impl;
};
#endif
};
#elif defined(_WIN32)
#define Daemon i2p::util::DaemonWin32::Instance()