Commit Graph

366 Commits

Author SHA1 Message Date
Ralf Ramsauer 99ddc88c6b Improved GUI 2015-10-05 23:59:18 +02:00
Ralf Ramsauer 70a4b3de03 Bugfix & logical change
- Improved doormessage
- Moved isOpen from Doormessage to Logic
2015-10-05 23:30:25 +02:00
Ralf Ramsauer a113fbae26 Resized images 2015-10-05 22:37:19 +02:00
Ralf Ramsauer 28d08ac40b Added new LED images and removed old templante.png 2015-10-05 22:13:54 +02:00
Ralf Ramsauer 791904b799 Improved GUI 2015-10-05 21:03:09 +02:00
Ralf Ramsauer 36ddfe4d5c Improved Webfrontend
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-10-02 20:37:44 +02:00
Ralf Ramsauer 8f80d5b39c Better layout for LCD 2015-10-02 20:19:53 +02:00
Ralf Ramsauer 7874dafd3a Improved GUI 2015-10-02 19:39:47 +02:00
Ralf Ramsauer b27196d1cc No schnappering on Button Unlock
Unlock button does only release the bolzen

Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-10-02 18:05:30 +02:00
Ralf Ramsauer 77b3c82916 removed usings from logger.cpp 2015-10-02 17:27:51 +02:00
Ralf Ramsauer 54f22393a4 Improved Logging
- removed daemon.cpp
- Added additional output logfile to Logger class
2015-10-02 17:25:16 +02:00
Ralf Ramsauer f504cf4e92 common code style 2015-10-02 16:40:12 +02:00
Ralf Ramsauer 0d92d15432 Added definitions to surpress compiler warnings 2015-10-01 23:07:14 +02:00
Ralf Ramsauer 2b620d37e9 automatic shutdown & reconnection 2015-10-01 22:57:01 +02:00
Ralf Ramsauer 6181412d7b Automatic reconnect 2015-10-01 22:31:10 +02:00
Ralf Ramsauer b66c82aad8 Added tool for simple command injection 2015-10-01 22:10:35 +02:00
Ralf Ramsauer 49a5b88f6c Big rewrite of several things
- Data type Token changed from uint64_t to std::string
- Added new class "Request" that describes a JSON TCP request
- Classes may now throw Responses for proper error handling
- Removed JSON parsing from Logic
- proper Error handling everywhere
- Many small fixes
- removed unnecessary includes
- removed using namespace std everywhere
2015-10-01 22:09:55 +02:00
Ralf Ramsauer abf69d70fa Fixed typo 2015-10-01 18:02:25 +02:00
Ralf Ramsauer c9fa75201f Changed window sizes 2015-09-30 15:36:11 +02:00
Ralf Ramsauer cde0521d6f Added ui file for MainWindow 2015-09-30 15:26:28 +02:00
Ralf Ramsauer 765e41afd5 Switched to asynchronous asio handling 2015-09-30 15:21:41 +02:00
Ralf Ramsauer 17516379d7 Merge branch 'master' into next 2015-09-30 00:59:17 +02:00
Ralf Ramsauer b2244ed9be Fix segfaults 2015-09-30 00:44:06 +02:00
Ralf Ramsauer 1984f6720e bugfix 2015-09-29 15:03:43 +02:00
Ralf Ramsauer 2b2ec56a9b Bugfix 2015-09-29 15:00:36 +02:00
Ralf Ramsauer b1ea4426a9 Some improvements 2015-09-29 14:55:20 +02:00
Ralf Ramsauer 60ed23486b Improved directory structure
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-29 14:33:53 +02:00
Ralf Ramsauer 4366e117d1 Improved GUI 2015-09-29 02:13:48 +02:00
Ralf Ramsauer a45fc4ca33 Bugfix: QR code generation was case insensitive
Also changed Qstring back to std::string
2015-09-29 02:13:35 +02:00
Ralf Ramsauer 2ab091679f Removed sending status code as answer to subscription message 2015-09-29 02:12:02 +02:00
Ralf Ramsauer a3bf378458 Added mainwindow.h to CMakeLists.txt 2015-09-29 02:11:29 +02:00
Ralf Ramsauer fb9f5f835e Fixed include bug 2015-09-28 17:07:21 +02:00
Ralf Ramsauer 9c7cc532fe Created new MainWindow QT Frontend
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-28 17:05:05 +02:00
Ralf Ramsauer 8f8d8a75b1 std::string -> QString 2015-09-28 17:03:03 +02:00
Ralf Ramsauer 3d7b6fbe08 Moved common code parts to static library
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 16:53:17 +02:00
Ralf Ramsauer 13b0b8744a Added simple Qt Qr widget 2015-09-25 13:12:07 +02:00
Ralf Ramsauer 69dcbe6b59 Write first tokenupdate on session initialization 2015-09-25 13:11:02 +02:00
Ralf Ramsauer b8cb8f9876 Added door state to Clientmessage / Doormessage 2015-09-25 03:26:07 +02:00
Ralf Ramsauer 404f219b6c added install rule for doorlock-client 2015-09-25 01:31:39 +02:00
Ralf Ramsauer cb5de7eba9 First working version of doorlock-client 2015-09-25 00:50:11 +02:00
Ralf Ramsauer b9dc2f5ee1 Improved Clientmessage
- Added Clientmessage::fromJson
- Improved JSON key handling
2015-09-25 00:50:10 +02:00
Ralf Ramsauer aa79228e47 Added Response::fromJSON 2015-09-25 00:50:10 +02:00
Ralf Ramsauer 4c05636ff0 Improved exception handling 2015-09-25 00:50:10 +02:00
Ralf Ramsauer 80d8610559 Added response to subscription 2015-09-25 00:50:10 +02:00
Ralf Ramsauer b07c0e8f54 Bugfix
socket might be closed after session-thread is spawned.
socket might throw errors very early.
2015-09-25 00:50:10 +02:00
Ralf Ramsauer 93fccda5d8 Small fix 2015-09-25 00:50:10 +02:00
Ralf Ramsauer 36787b91b3 Some refactoring 2015-09-25 00:50:10 +02:00
Ralf Ramsauer 9b58de4b5d Added stub for doorlock-client
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:10 +02:00
Ralf Ramsauer 9e4de23dff Renamed main.cpp to doorlockd.cpp
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:10 +02:00
Ralf Ramsauer 8ed116bf7f Added proper client and doormessage classes
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-25 00:50:10 +02:00