summaryrefslogtreecommitdiffstats
path: root/examples/serialbus/can/connectdialog.h
Commit message (Collapse)AuthorAgeFilesLines
* CAN example: Replace received frames edit with proper table and modelEvgeny Shtanov2021-03-191-0/+3
| | | | | | | | | | | Add a class based on QAbstractTableModel to show the received frames. Also add a configurable queue to buffer the frames before displaying them. This should avoid frames loss in flood traffic mode. Task-number: QTBUG-85611 Change-Id: Iac4671096c1cbfdc8297acf3c99be960b7eaf010 Reviewed-by: André Hartmann <aha_1980@gmx.de>
* Merge remote-tracking branch 'origin/5.9' into 5.10v5.10.0-beta4Liang Qi2017-10-301-2/+12
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: Icfbad81955ad8a7c4ddc49ac4ee952bcba6317ec
| * Fix outdated BSD license headerKai Koehne2017-10-201-2/+12
| | | | | | | | | | | | Change-Id: Ifdd8f08e12f471aee37f749b4ad911ab7b6adb2a Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* | CAN-Example: Rename all occurrences of "backend" to "plugin"Andre Hartmann2017-07-101-2/+2
|/ | | | | | | | | | The first parameter of QCanBus::createDevice() is called "plugin", so use this term in our examples to avoid confusion. Change-Id: I2fc28731d3763e037c18a7030205dad5d54183cd Reviewed-by: Rolf Eike Beer <eb@emlix.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Merge remote-tracking branch 'origin/5.8' into 5.9v5.9.0-beta1Liang Qi2017-03-311-1/+1
|\ | | | | | | | | | | | | | | Conflicts: src/plugins/canbus/canbus.pro src/plugins/canbus/vectorcan/vectorcanbackend.cpp Change-Id: I3625693784e88204c93479806242ae70c7ec7ff3
| * Updated copyright headersAndre Hartmann2017-02-021-1/+1
| | | | | | | | | | Change-Id: I7d38491c7ee15a1de788375acf9144c59b507d2a Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | CAN-Example: Introduce bitrate selection combox boxAndre Hartmann2017-01-161-5/+0
| | | | | | | | | | | | | | | | Factor the bitrate selection logic out of connect dialog to allow re-using the logic for CAN FD data bitrate selection later. Change-Id: I0a509c6200dddbd6b254a5e7f0702e6b0c99d1a3 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | CAN: Add QCanBusDeviceInfoAndre Hartmann2017-01-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Returns: * a list of available devices for the chosen plugin * if the device is virtual * if the device is CAN FD capable Use this list in the CAN Example for interface selection. If information about virtual channels or CAN FD capabability is not available, false is returned. For SocketCAN, PeakCAN, VectorCAN and SystecCAN, the implementation is completed. TinyCAN only return the list of possible interfaces for now. This is can be changed later, but needs quite some refactoring of the TinyCAN plugin. [ChangeLog][QtCanBus] Added the new class QCanBusDeviceInfo for enumeration of available CAN interfaces and more information about them. Task-number: QTBUG-54298 Change-Id: I851bcc3b9ee41aaaf1164c6b4a5aaf6503cd8746 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | CAN-Example: Code cleanupAndre Hartmann2016-12-121-4/+3
|/ | | | | | | | | | | | * Use C++11 member initialization for POD types * Unify usage of 'slots' keyword * Use override on derived virtual function * Inline one function that is used nowhere else * Break extra long lines Change-Id: I0d78b16f7416af9313e0e40335724fccbceaf53a Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Merge remote-tracking branch 'origin/5.7' into devLiang Qi2016-06-301-0/+1
|\ | | | | | | Change-Id: Ibb05cec689a217ac93b3d5fa98a0820f52bd12b3
| * CAN-Example: Add hint to ConnectDialog interface editAndre Hartmann2016-05-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was really hard to figure out what to put in the interface edit without deeper knowledge of the backends. Now the interface edit a placeholder with the first possible name every time a new backend is selected. This is thought as a temporary fix, the proper solution would be to get the possible interfaces from the backends itself. Change-Id: I74b5c072d64f7ee98d3fa65e059e6b00c510b308 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* | CAN-Example: Simplify backend list box fillingAndre Hartmann2016-06-211-1/+0
|/ | | | | | | | | Now that QCanBus::instance()->plugins() returns a QStringList, the addItems overload can be used. Change-Id: I456097329404bf9774abf2528a4a9e92b629e575 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* CAN-Example: Change SettingsDialog to ConnectDialogAndre Hartmann2016-05-031-0/+95
This simplifies the handling and makes it more like how other CAN monitors behave. * After startup, the connect dialog is shown * If the dialog is accepted, the selected device is connected instantly * To interrupt a connection, the disconnect action can be used * To connect again, the action connect can be used Change-Id: I47db596658e90cc0393981fba135cd6d89191f1a Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>