summaryrefslogtreecommitdiffstats
path: root/examples/serialbus/modbus/master/mainwindow.h
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup and modernize the Modbus examplesAndre Hartmann2019-02-131-13/+13
| | | | | | | | | | | | | | * Replace static_cast with QOverload * Fix some Clang warnings * Mark user-visible strings with tr() * Disable verbose log output * Replace auto-connect with explicit functor-style connect * Initialize members at declaration * Small style cleanup Change-Id: Idcb6c24a8733e7fd659ad4750ce0798a72c84af6 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* 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>
* Updated copyright headersAndre Hartmann2017-02-021-1/+1
| | | | | Change-Id: I7d38491c7ee15a1de788375acf9144c59b507d2a Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Adjust Pointer and Reference to Qt Coding StyleAndre Hartmann2016-04-221-2/+2
| | | | | Change-Id: Ifa233b324a82209cb597b5cf555b4e290b890e10 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Use 'nullptr' where it is possibleDenis Shienkov2016-04-211-1/+1
| | | | | Change-Id: I729e6b53cbc0b9a16c72c2351cc95d6bd7a2a0aa Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Resolve TODO, implement read/write multiple register.Karsten Heimrich2016-01-081-1/+4
| | | | | Change-Id: I97ad0ebf9566dbdf863436114d9c10d3a6726c70 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Improve example applications.Karsten Heimrich2016-01-061-0/+1
| | | | | | | | | | | | * Master: Small coding style change. * Slave|Master: Have a defined tab order. * Master: Have a single server address field only. * Master: Show either coils or holding registers, not both. * Master: Limit number of possible write values on start address. * Master: Enable/disable possible items depending on start address. Change-Id: I2892efe3c4cd1a6f29e26b6b6b2e6b3a3f24ea99 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Permit block writes in Modbus Master exampleAlex Blasche2015-11-131-2/+2
| | | | | Change-Id: Id6c27a0055bf38ba072d5ff00af7fcff5e15a74a Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Add Menu and options dialog to master exampleKarsten Heimrich2015-11-111-0/+7
| | | | | | | | | The settings dialog permits the setting of the response timeout. It is expected that the dialog will cover more details later on. Change-Id: Ia30355809fd1af5829b3040b86c142ecd2e7ff09 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Rename classes, master -> client, slave -> serverKarsten Heimrich2015-09-281-2/+2
| | | | | | Change-Id: I87011ffd423842cf9dbe5babc0801c95b47c9a86 Reviewed-by: Ralf Nolden <nolden@kde.org> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Adjust variables to match QModbus rename patch.Karsten Heimrich2015-09-281-1/+1
| | | | | | Change-Id: I8f14cc7d95a3c107988af216ac596b6b6a9df614 Reviewed-by: Ralf Nolden <nolden@kde.org> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Rename QModBus into QModbus.Karsten Heimrich2015-09-281-4/+4
| | | | | | Change-Id: I6b045288eeb6840a166bdb505c114dd61996f59c Reviewed-by: Ralf Nolden <nolden@kde.org> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Update examples to able to choose Serial or TCP.Karsten Heimrich2015-09-251-1/+3
| | | | | | | | | Also, pushButton was renamed to connectButton to improve readability. Change-Id: If7c20b8095b27c14bcb31672788a8a57d9ad1940 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Improve modbus example appsKarsten Heimrich2015-09-111-15/+7
| | | | | | | | | | | | 1.) Fix warnings about order of instanciation 2.) Get rid of the pesky QPointer's 3.) Remove unwanted temporary pointers around QModBus::instance 4.) Slightly improve error reporting 5.) Fix strange spaces while using input mask 5.) Remove serial port dependency Change-Id: I1697ed4862ea0803aacf3e7509e0d5f72a6dc32f Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Some fixes for namespace compiled Qt.Karsten Heimrich2015-09-111-0/+4
| | | | | Change-Id: Ib3fd1d28f68cc6d7afd4138882e03a709cfc7a0a Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Example applications improved.Karsten Heimrich2015-09-071-1/+3
| | | | | | | | | | | Both example applications, master and slave have now proper controls to control the data. Some shortcomings of the implementation were made apparent and had to be fixed. SlaveWritten signal was not implemented properly and some bugfixes. Change-Id: I852e3a3a84e7cd3de5a32a1a17f2eaeaa75cbd4f Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Write Implementation for libmodbusmasterJanne Partala2015-09-021-0/+3
| | | | | Change-Id: I1386e14f8945d72b5f1c68ced84fc2113a0c60c8 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Read Implementation for libmodbusmasterJanne Partala2015-09-011-0/+82
Only read implementation done. Write and error handling to be done. Minimal modbus master graphical example application added for testing purposes. Change-Id: I0013c57c4e9049d13e5f4f9cd4325c0c7108559a Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>