mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-10-30 10:22:22 +00:00
44 lines
1.0 KiB
C++
44 lines
1.0 KiB
C++
//
|
|
// Created by stephane bourque on 2021-11-08.
|
|
//
|
|
|
|
#ifndef OWSEC_ACTIONLINKMANAGER_H
|
|
#define OWSEC_ACTIONLINKMANAGER_H
|
|
|
|
#include "framework/MicroService.h"
|
|
|
|
namespace OpenWifi {
|
|
|
|
class ActionLinkManager : public SubSystemServer, Poco::Runnable {
|
|
public:
|
|
|
|
/* enum Actions {
|
|
FORGOT_PASSWORD,
|
|
VERIFY_EMAIL,
|
|
SUB_FORGOT_PASSWORD,
|
|
SUB_VERIFY_EMAIL
|
|
};
|
|
*/
|
|
static ActionLinkManager * instance() {
|
|
static auto * instance_ = new ActionLinkManager;
|
|
return instance_;
|
|
}
|
|
|
|
int Start() final;
|
|
void Stop() final;
|
|
void run();
|
|
|
|
private:
|
|
Poco::Thread Thr_;
|
|
std::atomic_bool Running_ = false;
|
|
|
|
ActionLinkManager() noexcept:
|
|
SubSystemServer("ActionLinkManager", "ACTION-SVR", "action.server")
|
|
{
|
|
}
|
|
};
|
|
inline ActionLinkManager * ActionLinkManager() { return ActionLinkManager::instance(); }
|
|
}
|
|
|
|
#endif //OWSEC_ACTIONLINKMANAGER_H
|