mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
separate DaemonQT and DaemonQTImpl
This commit is contained in:
parent
14c85fa975
commit
eb96edbd31
2 changed files with 50 additions and 21 deletions
8
Daemon.h
8
Daemon.h
|
@ -1,6 +1,7 @@
|
|||
#ifndef DAEMON_H__
|
||||
#define DAEMON_H__
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
namespace i2p
|
||||
|
@ -32,6 +33,7 @@ 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
|
||||
{
|
||||
public:
|
||||
|
@ -43,9 +45,11 @@ namespace i2p
|
|||
}
|
||||
|
||||
bool init(int argc, char* argv[]);
|
||||
bool start();
|
||||
bool stop();
|
||||
void run ();
|
||||
|
||||
private:
|
||||
|
||||
std::shared_ptr<DaemonQTImpl> m_Impl;
|
||||
};
|
||||
|
||||
#elif defined(_WIN32)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue