diff options
author | Tobias Hunger <tobias.hunger@nokia.com> | 2012-05-02 15:55:34 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2012-05-03 13:29:47 +0200 |
commit | 566642731f8d351ac66bcd12f5d2be353cfb91e6 (patch) | |
tree | 659d29858f3e36a88947d36c4c807e8ed10e1dc2 /src/plugins/projectexplorer/devicesupport/devicemanagermodel.h | |
parent | 1cc3a5ecd9169b301d7c1de5f18e1f951bac51f4 (diff) | |
download | qt-creator-566642731f8d351ac66bcd12f5d2be353cfb91e6.tar.gz |
Device: Decouple DeviceManager and DeviceSettingsWidget
Decouple DeviceSettingsWidget from the DeviceManager by
extending the DeviceModel with some methods to query information
from there.
This allows to add things like filtering to the model.
Change-Id: I8ac45d3ae254c31e2fe36556978bd6af5adccd32
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
Diffstat (limited to 'src/plugins/projectexplorer/devicesupport/devicemanagermodel.h')
-rw-r--r-- | src/plugins/projectexplorer/devicesupport/devicemanagermodel.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/devicesupport/devicemanagermodel.h b/src/plugins/projectexplorer/devicesupport/devicemanagermodel.h index f83b10a7fb..53c1a6a8f8 100644 --- a/src/plugins/projectexplorer/devicesupport/devicemanagermodel.h +++ b/src/plugins/projectexplorer/devicesupport/devicemanagermodel.h @@ -32,8 +32,10 @@ #ifndef DEVICEMANAGERMODEL_H #define DEVICEMANAGERMODEL_H +#include "../projectexplorer_export.h" +#include "idevice.h" + #include <coreplugin/id.h> -#include <projectexplorer/projectexplorer_export.h> #include <QAbstractListModel> @@ -51,6 +53,10 @@ public: void updateDevice(Core::Id id); + IDevice::ConstPtr device(int pos) const; + Core::Id deviceId(int pos) const; + int indexOf(IDevice::ConstPtr dev) const; + private slots: void handleDeviceAdded(Core::Id id); void handleDeviceRemoved(Core::Id id); |