1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-05-31 22:22:34 +02:00
doorlockd-mirror/doorlockd/door.h
2015-05-14 22:03:00 +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