mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
qt: daemon now operates in the background thread; added Quit GUI button
This commit is contained in:
parent
3e912c6198
commit
1b35f68de9
12 changed files with 360 additions and 43 deletions
14
Daemon.h
14
Daemon.h
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue