Commit graph

2206 commits

Author SHA1 Message Date
Micke Prag
6a944bffcf Use QtQuick 1.0 instead of Qt 4.7 for sensors module 2013-02-14 15:59:43 +01:00
Micke Prag
3b193bfaad Make the sensors module translatable, see #163 2013-02-14 15:58:42 +01:00
Micke Prag
30920ea816 Allow .qml files to be translated. See #163 2013-02-14 15:57:30 +01:00
Micke Prag
b6b78ad157 Convert spaces to tabs. 2013-02-13 17:54:43 +01:00
Micke Prag
d5d22aceb5 Do not log SIGPIPE. This is a normal signal when a client disconnects.
Closes #280
2013-02-13 17:29:26 +01:00
Micke Prag
05f5db163c Add IKEA non dimmer. This closes #251 2013-02-13 17:29:25 +01:00
Micke Prag
9a28b1444b Sort the devices in TelldusCenter by its name.
If anyone thinks to breaks their preferred order, please read
http://xkcd.com/1172/
This closes #112.
2013-02-13 17:27:56 +01:00
Stefan Persson
475fdb9d59 Code cleanup, removed debug messages 2012-12-06 16:12:42 +01:00
Micke Prag
6796129cb5 Use C++ casting instead of C casting according to Google style guidelines
"readability/casting"
2012-12-05 14:28:29 +01:00
Micke Prag
641598a359 We need this on one line so the style guidelines check will detect it is a struct 2012-12-05 14:07:18 +01:00
Micke Prag
630db4f483 Cast the long to int. Since the value is never greater than 2 bytes this is safe. 2012-12-05 13:59:31 +01:00
Micke Prag
5933cf104e Use Windows type LONG instead of long to follow the API better 2012-12-05 13:58:06 +01:00
Stefan Persson
3d05f2d510 Added missing space after comma, according to Google style guidelines "whitespace/comma" 2012-12-05 13:02:11 +01:00
Stefan Persson
fcb798d466 Removed blank lines at start/end of code blocks according to Google style guidelines "whitespace/blank_line" 2012-12-05 13:02:06 +01:00
Stefan Persson
68a041edb4 An else should appear on the same line as the preceding }, according to Google style guidelines "whitespace/newline" 2012-12-05 13:01:57 +01:00
Stefan Persson
58d58a8640 Use tabs for indentation according to Google style guidelines "whitespace/usr_tab_for_indentation" 2012-12-05 13:01:52 +01:00
Stefan Persson
8d90a4e14a Added whitespaces to comments according to Google style guidelines "whitespace/comments" 2012-12-05 13:01:46 +01:00
Micke Prag
ce24cabff9 Streams are highly discouraged except for logging according to
Google style guidelines "readability/streams"
2012-12-05 12:58:17 +01:00
Micke Prag
52faa7a36d Use safe version of date functions according to google style guidelines (runtime/threadsafe_fn) 2012-12-05 12:46:01 +01:00
Micke Prag
7000632f6c Fix #ifndef header guard style, according to Google style guidelines
"build/header_guard"
2012-12-05 12:05:11 +01:00
Micke Prag
e36b2287e8 Uncommented text after #endif is non-standard. Use a comment. [build/endif_comment] 2012-12-05 12:01:12 +01:00
Stefan Persson
fb79664508 Removed whitespace after line end, accoring to Google style guidelines "whitespace/end_of_line" 2012-12-05 11:43:31 +01:00
Stefan Persson
e38eb0f72d Ordered header files correctly according to Google style guidelines "build/include_order" 2012-12-05 11:39:48 +01:00
Stefan Persson
69c67e3c09 Fixed placement of curly braces according to Google style guidelines "whitespace/braces" 2012-12-05 11:36:03 +01:00
Micke Prag
bca00ef148 F_SETFD must be supplied to fcntl() to set options 2012-12-05 11:21:13 +01:00
Micke Prag
174c31f4ca Use fcntl() to set FD_CLOEXEC on OS X since the SOCK_CLOEXEC flag for socket() isn't supported. 2012-12-05 11:18:07 +01:00
Micke Prag
38e624af66 stdlib.h is needed for malloc 2012-12-04 17:28:49 +01:00
Micke Prag
2cb1a2ac97 Set the flag O_CLOEXEC on all file handles so they don't interferes with the execution of scripts. See #100 2012-12-04 17:28:49 +01:00
Micke Prag
3441b9cc45 Missing username in TODO according to Google style guidelines "readability/todo" 2012-12-04 17:25:17 +01:00
Micke Prag
6136c16d83 Use static_cast<int>(...) instead of C-style cast [readability/casting] 2012-12-04 17:16:06 +01:00
Micke Prag
2399e6c349 All parameters should be named in a function [readability/function] 2012-12-04 17:08:47 +01:00
Micke Prag
01a65acdd6 Do not use namespace using-directives according to Google style guidelines "build/namespaces" 2012-12-04 16:56:44 +01:00
Micke Prag
81946e9887 Find Python dynamically so it works on Windows too 2012-12-04 16:41:31 +01:00
Stefan Persson
7d0f3747fe Include directory when naming .h files, according to Google style guidelines "build/include" 2012-12-04 16:39:39 +01:00
Stefan Persson
d5e8c1f941 Adding copyright messages according to Google style guidelines "legal/copyright" 2012-12-04 16:10:17 +01:00
Stefan Persson
05197abf6e Fixed regression errors for windows 2012-12-04 15:14:40 +01:00
Stefan Persson
9f68c2083a Some code/comment cleanup 2012-12-04 15:05:45 +01:00
Stefan Persson
9d39fe8d47 Merged with Windows_service_fixes 2012-12-04 15:01:46 +01:00
Stefan Persson
df6bd27883 More logging for TelldusService debug, ticket #266, 266-1. 2012-12-04 11:34:06 +01:00
Micke Prag
e5f6858cf5 Cleanup our new environment after its use 2012-11-22 13:10:11 +01:00
Micke Prag
15225dd5f6 Cleanup the logger before exit 2012-11-22 13:10:10 +01:00
Micke Prag
46c24d4a6e Make the path for the scripts configurable 2012-11-22 13:10:10 +01:00
Micke Prag
fac773249c Rename SettingsConfusePath.h to config.h so it can be used by other configurable options 2012-11-22 13:10:10 +01:00
Micke Prag
b2948cba5b Preload all scripts to execute on startup to avoid scanning the
directory on every event.
2012-11-22 13:10:10 +01:00
Micke Prag
d48ee1f02b Execute a script from /usr/local/share/telldus/scripts on all events.
Closes #100
2012-11-22 13:09:59 +01:00
Micke Prag
32f2d9f955 Check all incomming messages against duplicates. Only one unique message
per second is accepted. Closes #84
2012-11-19 16:42:18 +01:00
Micke Prag
0018ad28d1 Remove old telldus-gui.pro 2012-11-19 10:14:09 +01:00
Micke Prag
d88d5a5098 Remove empty lines according to google style guidelines 2012-11-08 15:40:31 +01:00
Micke Prag
4467a75abc Cleanup our CF variables so we do not leak memory. See #240 2012-11-08 10:49:04 +01:00
Micke Prag
992b03c5ba Code cleanup according to style guidelines 2012-11-08 10:36:50 +01:00