Commit graph

52 commits

Author SHA1 Message Date
Stefan Persson
0d8bf77a45 Only a lot of debug printouts, but this version is working for SwitchKing at least 2012-09-03 16:59:09 +02:00
Micke Prag
9500c4c898 Convert dos endings to unix in telldus-core, see #160 2012-02-27 17:37:52 +01:00
Micke Prag
237cf4e8e7 Implement controller callback in telldus-service 2012-02-27 15:28:09 +01:00
Micke Prag
42beb57169 Pass around an EventRef instead of a raw Event pointer. This is safer 2012-02-24 17:39:52 +01:00
Micke Prag
00eeea1283 Add function to query controllers in the service 2012-02-23 10:07:16 +01:00
Micke Prag
e834160492 Move class Event and EventHandler into the TelldusCore namespace 2012-02-03 17:09:38 +01:00
Micke Prag
5f1d6e7fe5 Listen for suspend/resume signals and disconnect all usb-devices. This closes #171 2012-01-25 17:42:41 +01:00
Stefan Persson
e2e9ba4634 Code cleanup 2012-01-12 14:27:15 +01:00
Stefan Persson
b84e8b3806 Added TELLSTICK_ERROR_BROKEN_PIPE to distinguate between when communication with TellStick fails due to timeout or actual error. 2012-01-12 11:39:04 +01:00
Stefan Persson
8d22eff5da Added wait for ack on noop-command 2012-01-11 11:38:03 +01:00
Stefan Persson
673daf471d Sending noop to TellStick every 5 minutes, attempting to reconnect if TellStick is missing. In Linux. 2012-01-10 16:00:14 +01:00
Micke Prag
542d17a45d Add janitor object for regular maintenance and cleanups 2012-01-09 16:53:57 +01:00
Micke Prag
cccaf86cb8 Made it possible to specify a serial to a controller to disconnect. This controller will be disconnected even if it is still available 2011-03-03 11:21:41 +00:00
Micke Prag
e86b1db6a8 Use our new ControllerListener class on OSX 2010-10-29 10:16:20 +00:00
Micke Prag
93fa34545d By having smartpointers, the function EventHandler::removeEvent() is obsolete 2010-10-28 09:17:42 +00:00
Micke Prag
41c763cbd4 Converted Event pointers to smart pointers instead 2010-10-28 08:45:17 +00:00
Micke Prag
a1d0f1401a Implemented EventData as shared pointers. We are now dependent on tr1 2010-10-28 08:08:12 +00:00
Micke Prag
144083dd62 Removed unused event 2010-10-27 15:58:15 +00:00
Micke Prag
5e6b13e1d0 Removed TODO, lets have it in the main thread for now 2010-10-25 14:42:42 +00:00
Stefan Persson
24e2611adc Receiving duo-messages, and changing device status and notifying clients 2010-10-25 13:42:14 +00:00
Micke Prag
a925c75761 Parse the rawEvent in TelldusMain. 2010-10-25 09:53:36 +00:00
Stefan Persson
979ff9d097 ClientCommunicationHandler-event reused 2010-10-21 15:16:41 +00:00
Micke Prag
4dd2e24972 Added an event for controllers to signal. 2010-10-20 13:27:53 +00:00
Stefan Persson
2c2a030c9b Callback events implemented on client side (not tested for device and raw events) 2010-10-19 12:31:32 +00:00
Stefan Persson
80843dc99c Device callback events implemented server side (untested) 2010-10-18 15:33:05 +00:00
Stefan Persson
eabfd97db5 Update events, stubs 2010-10-18 12:49:42 +00:00
Stefan Persson
08e93318a2 EventUpdateManager added 2010-10-18 10:42:10 +00:00
Micke Prag
9d9fab6323 Added function TelldusMain::deviceInsertedOrRemoved() 2010-10-15 12:39:04 +00:00
Stefan Persson
de12e9fc48 Some locks implemented. Returning int:s instead of bools. 2010-10-14 11:22:05 +00:00
Stefan Persson
eeaeefe61d "TurnOn"-flow implemented until protocol. 2010-10-13 10:30:39 +00:00
Micke Prag
f6b13ea489 Added class ControllerManager 2010-10-13 09:22:05 +00:00
Stefan Persson
7a4eb71393 Example protocol stub put in use 2010-10-13 08:02:48 +00:00
Stefan Persson
e56997da55 DeviceManager added 2010-10-12 08:45:25 +00:00
Micke Prag
22dae8e3d6 Use the new event data system to send the new socket. 2010-10-11 14:11:43 +00:00
Micke Prag
509541f29c Rewrite of the class Event, now with signal data. This probably breaks Unix big-time... 2010-10-11 12:37:08 +00:00
Micke Prag
cfbfc1a5db ConnectionListener now runs in its own loop. 2010-10-11 08:50:16 +00:00
Micke Prag
93aed2099e Removed sleeps and timeouts. Now we waits forever. 2010-10-08 15:34:42 +00:00
Micke Prag
29db3d6e9a Our stopEvent is working again, away with the running-variable! 2010-10-08 15:27:29 +00:00
Micke Prag
f1423aab22 Our closeEvent-object crashed for some reason. Return of the "running"-variable! 2010-10-08 14:00:18 +00:00
Micke Prag
861bac30f4 Added a stop event to our main-loop 2010-10-08 13:12:40 +00:00
Stefan Persson
47b0e19de0 Added Socket to namespace TelldusCore. 2010-10-08 10:36:37 +00:00
Micke Prag
801d394cd9 Added function Event::clearSignal() 2010-10-08 10:20:08 +00:00
Stefan Persson
0586fe6d2b Now using ClientCommunicationHandler, including thread management. 2010-10-08 09:45:25 +00:00
Micke Prag
5a3d66f42e Use the functions Event::isSignaled() 2010-10-08 09:29:42 +00:00
Micke Prag
4bb47a9413 Acctual, working, non crashing, code. 2010-10-08 08:10:32 +00:00
Stefan Persson
aa05e17676 Renamed ClientMessageHandler to ClientCommunicationHandler 2010-10-08 07:43:17 +00:00
Micke Prag
801ac343cc Converted type EVENT to a class instead 2010-10-07 20:07:15 +00:00
Micke Prag
a756393a88 Use our new overloaded function EventHandler::add() 2010-10-07 18:45:19 +00:00
Micke Prag
86a3cd73a2 Made EventHandler handle multiple events. 2010-10-07 15:41:19 +00:00
Stefan Persson
08d838ba8d ClientMessageHandler added, and changed to wstring in some places. 2010-10-07 15:35:11 +00:00