Commit Graph

36 Commits

Author SHA1 Message Date
Christian Kandeler
d9b36a1b50 Device support: Make device actions a little more flexible.
We give the implementors of the IDevice subclasses a litte more freedom
by not assuming a modal dialog.

Change-Id: I629a3ab7fc50a73229e6439af53f1bae0cf0259e
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2012-05-02 16:52:57 +02:00
Christian Kandeler
aefb7d061c Device support: Use Core::Id for device actions.
Change-Id: Ic313e73e9fa83596e18bf2884bc310a1a7d8a744
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2012-05-02 11:05:34 +02:00
Christian Kandeler
2994b88d90 Device support: Use value semantics for Core::Id.
We had a mixed style until now (mostly using const refs). Use value
semantics everywhere for consistency and hope that the class never gets
heavier.

Change-Id: Ic9536f87b01a76252bd8643c8681b3dc9067a266
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2012-04-25 11:57:19 +02:00
Tobias Hunger
bafd3f0b14 IDevice: Make id creation (a bit) less magic
Change-Id: Icf5743a5b5a6305d18860cf6f87d70079c3effbc
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2012-04-18 19:18:07 +02:00
Christian Kandeler
e2d8a9600e Device Support: Move some functions from IDeviceFactory to IDevice.
Now that we have a polymorphic device class, we don't need to
attach all the virtual functions to the factory anymore.
In addition, the isUserEditable() function is gone, because it is
no longer needed in the presence of device-specific widgets.

Change-Id: Ie8f0be95653cb83e1618885b08cdd2aacf5dda59
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2012-04-10 10:55:50 +02:00
Christian Kandeler
79f238fb75 RemoteLinux: Allow deriving from LinuxDeviceConfiguration.
Change-Id: Ifd8405c079e047a40264c8310731cedbf7bd652f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@nokia.com>
2012-04-02 16:11:12 +02:00
Christian Kandeler
c0e50601ac DeviceManager: Remember auto-detected devices.
The current implementation "forgets" auto-detected devices when
they've been disconnected or Creator has been closed.
This has the drawback that potential changes by users to the connection
parameters cannot become persistent. This is overcome by introducing a
device fingerprint and keeping removed auto-connected devices in a
special list from which they can later be retrieved, typically when the
device gets connected again.

Change-Id: I98cfd25c677e6a2a46891a0facf3a28f0a0c3465
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@nokia.com>
2012-03-15 13:42:39 +01:00
Christian Kandeler
9a34b156c1 Introduce the concept of an abstract device.
The idea is that all kinds of devices inherit from one abstract
base class and that they are all managed by one device manager,
who does not know about their specifics.
For now, the only concrete subclass is the LinuxDeviceConguration.

Change-Id: I31ff5586a0fdd6bcf8dcc0554bb2b91fe65b2f3f
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2012-03-08 14:07:19 +01:00
Christian Kandeler
effe56ef12 RemoteLinux: More preparations for introducing an abstract device class.
- Introduce clone() method.
- Rename "osType" to "type" and "deviceType" to "machineType".
- Move machine type display out of generic settings widget.
- Put only immutable attributes into the device constructor and set the
others via setters. As part of this, also give the
SshConnectionParameters a default proxy type. The necessity to give one
to the constructor explicitly was for historical reasons.

Change-Id: I84757b1b2d6371544b9ab1f3290973e5498176ce
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2012-03-07 12:18:44 +01:00
Christian Kandeler
0d079a6339 RemoteLinux: Use toMap() and fromMap() to serialize device info.
One more step towards extracting an abstract base device class.
Note that the device settings now go into a dedicated file, like
the Qt version and toolchain information, and no longer into the
QtCreator.ini file. Reading the "old style" settings is still
supported.

Change-Id: Ic4766420930c1ab650d72068d3f6d188aa9c203b
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2012-03-05 12:53:15 +01:00
Christian Kandeler
f7e127f740 RemoteLinux: Simplify approach for id assignment.
The current one is awkward and error-prone.

Change-Id: I9450b121d0f01c07507b8cc6d72cb2e1453cf02d
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2012-03-02 18:16:48 +01:00
Christian Kandeler
05866e796c RemoteLinux: Move "is default" status out of the device configuration.
The information about which device is the default one is by definition
"global" and therefore does not belong into the device configurations
themselves.

Change-Id: Ib7349aac4663a674fac5bf35c4d128aeb53fbec2
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2012-03-02 11:42:39 +01:00
Kai Koehne
705b2efe87 PortList: Move to utils
Change-Id: I99dbef56a2a5b06bb4b89ca442e44bf586efdb22
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2012-03-01 09:46:22 +01:00
Christian Kandeler
90d36736e8 Rename "Linux Devices" to "Devices" in settings GUI.
We will soon have non-Linux devices in there as well. Consequently, the
whole device configuration infrastructure should be refactored and a
base class be moved to the core plugin in a follow-up commit.

Change-Id: I35cfa9e020dd42856fd3c25308cdff7a65d3887b
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-02-29 10:21:14 +01:00
Nicolas Arnaud-Cormos
74da217204 Extract the device specific settings for linux device.
The LinuxConfigFactory has now a new pure virtual method to create the widget for
the device specific settings. It allows new device to create their own settings page.

Change-Id: Ie14df043fdef088b0e6e3b1e08b5d0d1863f76e5
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2012-02-20 17:51:10 +01:00
Nicolas Arnaud-Cormos
57092dc5fb Add getter and setter for attribute in linuxdeviceconfiguration.
Change-Id: I7113255a3c100c74703f6f7552ee1569857a41af
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2012-02-20 10:29:54 +01:00
Erik Verbruggen
3fa55b7ab9 Removed module names from #include directives.
Getting the #include directives ready for Qt5. This includes the
new-project wizards.

Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2012-02-15 16:24:46 +01:00
hjk
2931a499e6 Long live the king!
Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-01-26 19:55:36 +01:00
Christian Kandeler
f709f4b071 RemoteLinux: Support generic attributes in device configuration.
Can be used by specialized plugins to store additional information.

Change-Id: I28cd28920aab9f0029a192f58437467fcf7ea395
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2011-11-28 09:37:45 +01:00
Tobias Hunger
cad3bb8085 Linux device: s/name()/displayName()/
We use displayName for user visible names everywhere, so we should
also do that here.

Change-Id: I3d976c06fa04733ff82ea208efc0a17f86cc0d79
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-11-16 13:52:07 +01:00
hjk
31600758de all: s/info@qt.nokia.com/qt-info@nokia.com/
Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2011-11-03 10:33:19 +01:00
hjk
1285a63852 d-ptr style
Change-Id: I9bae06c72d71d77b4a43f87217b7c3f8077a1fd1
Reviewed-on: http://codereview.qt-project.org/5075
Reviewed-by: hjk <qthjk@ovi.com>
2011-09-16 11:35:08 +02:00
hjk
aea628a973 whitespace
Change-Id: I67b156ab6f44ccdfe199b4928f6f62129b05b0b7
Reviewed-on: http://codereview.qt-project.org/5074
Reviewed-by: hjk <qthjk@ovi.com>
2011-09-16 11:34:54 +02:00
Christian Kandeler
8801c76a8e Coding style: Pure virtual functions, private implementation pointers.
Change-Id: I293f8dbd4e467e866bab381841659a07e32b9d90
Reviewed-on: http://codereview.qt-project.org/4948
Reviewed-by: hjk <qthjk@ovi.com>
2011-09-15 10:33:56 +02:00
Christian Kandeler
169be44125 RemoteLinux: Export LinuxDeviceConfigurations.
Specialized plug-ins might want to manipulate the device list
themselves, e.g. to add auto-detected devices.

Change-Id: I29b9bfd70c03bc83be86fc55c2023aed90f8ed62
Reviewed-on: http://codereview.qt.nokia.com/2944
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-08-15 11:28:07 +02:00
Christian Kandeler
d0ba9a8613 RemoteLinux: Add support for auto-detected devices.
We assume them to be transient, which means they do not get saved.

Change-Id: Ia9016172737d6e2547e3db5faf35d81c5c8cb91a
Reviewed-on: http://codereview.qt.nokia.com/2943
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-08-15 11:26:42 +02:00
Christian Kandeler
edc776c26c RemoteLinux: Private implementation for all exported classes.
Change-Id: Id92eb156b027a4986788141845170105b3b1d9e5
Reviewed-on: http://codereview.qt.nokia.com/2507
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-08-02 13:38:55 +02:00
Christian Kandeler
4b6d4d08f0 RemoteLinux: Allow non-editable device configurations.
Change-Id: I2e77a9c6c13addbe58c76b9c0312be42d6e5feb3
Reviewed-on: http://codereview.qt.nokia.com/2449
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-08-01 18:01:34 +02:00
Christian Kandeler
76a5b1953c RemoteLinux: Move constants and functions to more suitable locations.
Mostly to facilitate splitting up generic Linux und Maemo-specific
things.

Change-Id: I6072ae7deaea013219e8969d6a5254e6c5c96693
Reviewed-on: http://codereview.qt.nokia.com/2098
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-07-25 12:00:37 +02:00
hjk
82bbac7f90 Remove unneeded defines.
Mostly Q_DISABLE_COPY that were covered by the un-copy-ability of the
respective base classes. Includes a few "stylistic" whitespace changes.

Change-Id: I31ca0e7bada5ed0f34776976efe22ddc444a5bf2
Reviewed-on: http://codereview.qt.nokia.com/1609
Reviewed-by: hjk <qthjk@ovi.com>
2011-07-14 12:15:38 +02:00
Christian Kandeler
9197596000 RemoteLinux: Put PortList class into its own set of files.
This also enables us to replace some includes by forward declarations.

Change-Id: Ica98c1925e49c65d15b9e47abe1c4aeba0790482
Reviewed-on: http://codereview.qt.nokia.com/583
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-06-22 10:34:39 +02:00
Christian Kandeler
7f0e2d64de RemoteLinux: Decentralize knowledge about specific devices.
Also remove files again that somehow crept back in.

Change-Id: Ie77491c4cd872e2bb26b971c04137e7c25a903c7
Reviewed-on: http://codereview.qt.nokia.com/566
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-06-21 17:05:12 +02:00
Christian Kandeler
f74e167563 RemoteLinux: More untangling of generic and Maemo-specific stuff.
- Make key deployment a device type dependent action.
- Split up monolithic device configuration wizard.
- Split up run configurations, run controls and the associated
  factories.

Change-Id: Ib2ef9d405e6b7eaae89fc27c56e3c327829a88f7
Reviewed-on: http://codereview.qt.nokia.com/486
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2011-06-20 17:50:29 +02:00
Christian Kandeler
140eaaab0b RemoteLinux: Make device configurations settings page generic.
The list of per-device actions now comes from a factory and can
be different for different OS types.
This is a step towards moving knowledge about devices from the
RemoteLinux plugin into specialized plugins.

Change-Id: Ia46e0199d8d8c1a3891c73a4936ac53fb1063313
Reviewed-on: http://codereview.qt.nokia.com/439
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2011-06-14 12:12:00 +02:00
Christian Kandeler
9b27d80f67 RemoteLinux: Change data type for better extensibility.
Other plugins are expected to build on the RemoteLinux infrastructure
in the future, providing OS types of their own. A string-based
identifier is much better suited for that than the currently used
enum approach.

Change-Id: I702a1ed7628d908d9c68ae0910ad1a6f1b92786f
Reviewed-on: http://codereview.qt.nokia.com/357
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2011-06-07 16:11:23 +02:00
Christian Kandeler
eb1336daac RemoteLinux: Expose some currently internal classes.
This is needed in the short term to reverse the direction of
the dependency between this plugin and the analyzer.
It is expected that there'll be more users in the future.

Change-Id: I9603e8dfa70e442394ba5e8671c6353b65c46374
Reviewed-on: http://codereview.qt.nokia.com/266
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2011-05-31 13:29:45 +02:00