[Qt-creator] Kit and device concept in QtCreator

David Kaspar dkaspar at blackberry.com
Thu Sep 5 17:39:05 CEST 2013


Hi Christian,

You are right. I am sorry - I have been looking too much into our use-cases.

Then as you suggest, we might have another interface to represent the 
'context' instead of RunConfiguration. Theoretically we might use such 
Context even for the Device i.e.:

bool canHandle(Context)
Context getActive(Context)
QList<Context> getChildren(Context)
void setActive(Context, Context)

This would be enough extensible to allow any number of columns if 
necessary. The current behavior of the columns might be handled by a 
fallback implementation (aka Project/Target/Build/Deploy/Run columns) 
which would be always searching for extension interface to allow plugin 
into any column.

Thanks,
   David


On 05/09/13 17:23, Christian Kandeler wrote:
> On 09/05/2013 05:15 PM, David Kaspar wrote:
>> We wanted this 'device-switching in Mini Target Selector' feature
>> implemented right after the 'device-switching in run-configuration' - at
>> least for Qnx plugin. This would significantly improve the usability. I
>> think that this feature would be very useful even for other devices.
>>
>>    From API point of view, this feature can be implemented by providing a
>> new extension interface with the following methods:
>>
>> bool canProvideDeviceListFor(RunConfiguration)
>> Core::Id getActiveDevice(RunConfiguration)
>> QList<Core::Id> getDeviceList(RunConfiguration)
>> void setActiveDevice(RunConfiguration, Core::Id)
> Please keep in mind that there might not be a run configuration, but a
> deploy configuration could still be present (or, less likely, vice
> versa). And if both are present, they would typically share the device
> setting. So you'd need a new abstraction for that.
>
>
> Christian
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator


---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.



More information about the Qt-creator mailing list