Micke Prag
0aab73dcbe
Cleanup the STATE_INSTALL_DIR variable in CMake. Only define it one time
2012-03-30 14:03:34 +02:00
Micke Prag
748d19c58c
Merge pull request #1 from erijo/confuse-paths
...
Make settings paths set in cmake be used by telldusd
2012-03-30 04:59:52 -07:00
Erik Johansson
104ce0fb23
Use configured paths when accessing settings files
2012-03-13 15:00:07 +01:00
Erik Johansson
e5c2a9c847
Store configured settings paths in header file
2012-03-13 14:59:44 +01:00
Micke Prag
4760aa8a32
Add possible constant for detecting mountain lion
2012-03-01 15:32:27 +01:00
Micke Prag
5e8a3c965a
Add the version number if we cannot detect the platform on Windows
2012-03-01 15:30:40 +01:00
Micke Prag
a35ad875d2
Add Telldus Live! python example. A tdtool implementation
2012-02-28 18:39:35 +01:00
Micke Prag
c2be82e5d6
Copy the plugin to the destination folder after build instead of the combination using LIBRARY_OUTPUT_DIRECTORY and PREFIX. This allows us to build the plugins as universal binaries. Closes #121
2012-02-28 14:28:55 +01:00
Micke Prag
aff9b973a8
Convert dos endings to unix in telldus-gui, closes #160
2012-02-27 17:44:58 +01:00
Micke Prag
9500c4c898
Convert dos endings to unix in telldus-core, see #160
2012-02-27 17:37:52 +01:00
Micke Prag
bdd95b8d78
Merge branch 't108' into master
...
Closes #108
2012-02-27 16:51:52 +01:00
Micke Prag
5fcc391c95
Update CoreFoundationPreerences settings engine to handle both controllers and devices
2012-02-27 16:46:16 +01:00
Micke Prag
5dd66bfb03
Compability fixes on unix since the interface changed in a previous commit
2012-02-27 15:56:02 +01:00
Micke Prag
c0fe38e0eb
Implement the controller callback
2012-02-27 15:35:59 +01:00
Micke Prag
6196793ff6
Make the firmware setable from C++
2012-02-27 15:34:32 +01:00
Micke Prag
d728664785
Signal the firmware version as a modified signal. This since we don't know the firmware when a new controller is found. We need to communicate with the device first and the version will be detected later
2012-02-27 15:32:21 +01:00
Micke Prag
237cf4e8e7
Implement controller callback in telldus-service
2012-02-27 15:28:09 +01:00
Micke Prag
246b4273ce
Add callback TDControllerEvent
2012-02-27 15:19:04 +01:00
Lauri Aarnio
842a042cdb
tdtool: Added an alternative listing format (new options --list-sensors and --list-devices)
...
- These options list devices and sensors in a more machine-readable-friendly
format: tab-separated key=value fields, one line/device, and no header
lines, percent- or degree signs. Additionally, for sensors, age (in seconds)
of the collected data is also printed.
2012-02-27 11:27:52 +01:00
Lauri Aarnio
d51e301f6b
tdtool: minor bugfix: clear timeBuf, so that it won't be used uninitialized
2012-02-27 11:27:10 +01:00
Lauri Aarnio
11950d6c2d
Fixed a nonportable bash'ism: Use "=" for comparing strings
...
- the "==" operator is specific to bash, use "=" instead;
it is compatible with the "test" utility and other shells
(and posix, too)
2012-02-27 11:24:40 +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
148fd52c76
Create one generic callback dispatcher that can handle all our
...
callbacks.
This minimize code duplication and allows us much easier to add and
maintain callbacks.
2012-02-24 16:47:30 +01:00
Micke Prag
5d4ee9a4be
Protect against including common.h twice
2012-02-24 16:45:47 +01:00
Micke Prag
2eef2dd362
Merge branch 'master' into t108
2012-02-24 11:56:05 +01:00
Stefan Persson
f0a07fd424
Added CallbackMainDispatcher to TelldusCore namespace
2012-02-24 09:29:49 +01:00
Micke Prag
9f8ceec805
Merge remote branch 'origin/master' into t108
...
Conflicts:
telldus-core/client/Client.cpp
2012-02-23 16:59:50 +01:00
Stefan Persson
c049b97a64
Dispatching of events in own thread, to somewhat counter problems with long running events.
2012-02-23 15:48:39 +01:00
Micke Prag
a0e9fd963b
Add qmldir for plugin Controllers
2012-02-23 15:27:20 +01:00
Micke Prag
5bc43a21ab
Fix settings functions on Windows for our refactoring
2012-02-23 15:26:38 +01:00
Micke Prag
23437505d6
Initialize variable dwLength, we might get ERROR_MORE_DATA otherwize
2012-02-23 15:24:50 +01:00
Micke Prag
ab8bda2247
Export our controller functions on Windows
2012-02-23 15:21:46 +01:00
Micke Prag
6d47870856
Return 'TellStick not found' when no controller is connected instead of 'No device found'
2012-02-23 15:21:18 +01:00
Micke Prag
20840d5d8b
Initialize private variable
2012-02-23 15:20:28 +01:00
Micke Prag
d5166d26f8
Add function com.telldus.core.controller() to the script engine to iterate over controllers
2012-02-23 12:38:56 +01:00
Micke Prag
5238978d32
Allow for controller removal in TelldusCenter
2012-02-23 12:37:58 +01:00
Micke Prag
a766fe32de
Add public function tdRemoveController() to telldus-core, see #108
2012-02-23 12:34:31 +01:00
Micke Prag
3de0a98f89
Add new 'Controllers' plugin to admin controllers, see #108
2012-02-23 12:14:33 +01:00
Micke Prag
345ff62a93
Add new function tdControllerValue(), see #108
2012-02-23 12:14:33 +01:00
Micke Prag
fae493f497
Store the new name in tdSetControllerValue()
2012-02-23 12:14:33 +01:00
Micke Prag
0800cfde10
When enumerating usb-devices, try matching them to the stored ones and add them if they are not found
2012-02-23 12:14:33 +01:00
Micke Prag
23f368b968
If the requested controller is not avaialable, find the firt available one
2012-02-23 12:14:33 +01:00
Micke Prag
bfb24c3aeb
Add functions to get/set controller serial and type
2012-02-23 12:14:33 +01:00
Micke Prag
f1c71e64a0
Don't remove controllers, just mark them as unavailable
2012-02-23 12:14:32 +01:00
Micke Prag
94ca412554
Load controllers from settings
2012-02-23 12:14:32 +01:00
Micke Prag
210b41b262
Add function QMLView::sizeRootObjectToView()
2012-02-23 12:14:32 +01:00
Micke Prag
62fa35926c
Name should be wide
2012-02-23 12:14:32 +01:00
Micke Prag
39265caa01
Refactor to reuse same functions in settings for both devices and controllers
2012-02-23 12:14:32 +01:00
Micke Prag
1ad79b663e
Add function Settings::getNumberOfControllers()
2012-02-23 10:07:18 +01:00
Micke Prag
541e656fe1
Add controllers to our settings file
2012-02-23 10:07:18 +01:00