1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-11-16 03:59:11 +01:00
doorlockd-mirror/doorlockd/door.h

35 lines
422 B
C
Raw Normal View History

2015-05-11 00:18:22 +02:00
#ifndef DOOR_H
#define DOOR_H
#include <string>
#include <thread>
2015-05-11 00:18:22 +02:00
#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;
2015-05-11 00:18:22 +02:00
};
#endif