1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-11-15 19:49:12 +01:00
doorlockd-mirror/doorlockd/door.h
2015-09-25 00:50:07 +02:00

35 lines
422 B
C++

#ifndef DOOR_H
#define DOOR_H
#include <string>
#include <thread>
#include "logger.h"
class Door {
public:
static Door &get();
~Door();
void lock();
void unlock();
private:
Door();
const Logger &_l;
bool _open = { false };
std::thread _heartbeat = { };
bool _schnapper = { false };
static constexpr int _LOCKPIN = 10;
static constexpr int _SCHNAPPER = 7;
};
#endif