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
Micke Prag
433f4db3e0
Make the mutex for Settings static to be shared between instances
2012-02-23 10:07:17 +01:00
Micke Prag
cd044d818d
Implement tdSetControllerValue in telldus-core
2012-02-23 10:07:17 +01:00
Micke Prag
979e6082c2
Implement tdSetControllerValue in TelldusService
2012-02-23 10:07:17 +01:00
Micke Prag
f8226be943
Add overloaded function ConfigurationDialog::addPage() to load a QWidget directly
2012-02-23 10:07:17 +01:00
Micke Prag
2b7f02bbb4
Add public function tdController() to telldus-core. See #108
2012-02-23 10:07:16 +01:00
Micke Prag
00eeea1283
Add function to query controllers in the service
2012-02-23 10:07:16 +01:00
Micke Prag
799c25f98e
Refactor ControllerManager's list of controllers to allow for metadata storage and loaded controller without an actual connected controller
2012-02-23 10:07:16 +01:00
Torbjörn Lönnemark
f34e1ad53f
Fix Client::close to allow for reinitialization
...
Make sure Client::close cleans up properly to allow for reinitialization
of the Client class.
Closes #188
2012-02-21 15:15:23 +01:00
Lauri
0fda29f7a1
The udev script should be sh instead of bash to keep dependencies low
2012-02-20 09:27:40 +01:00
Lauri
2896cc74ad
Add missing include stdarg.h, seems to be needed by uClibc
2012-02-20 09:24:22 +01:00