diff options
Diffstat (limited to 'examples/serialbus/can/mainwindow.h')
-rw-r--r-- | examples/serialbus/can/mainwindow.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/serialbus/can/mainwindow.h b/examples/serialbus/can/mainwindow.h index 273045f..40b2e4a 100644 --- a/examples/serialbus/can/mainwindow.h +++ b/examples/serialbus/can/mainwindow.h @@ -77,22 +77,23 @@ public: ~MainWindow(); private slots: - void checkMessages(); - void sendMessage() const; - void receiveError(QCanBusDevice::CanBusError) const; + void processReceivedFrames(); + void sendFrame(const QCanBusFrame &frame) const; + void processErrors(QCanBusDevice::CanBusError) const; void connectDevice(); void disconnectDevice(); - void framesWritten(qint64); + void processFramesWritten(qint64); protected: void closeEvent(QCloseEvent *event) override; private: - void showStatusMessage(const QString &message); void initActionsConnections(); + qint64 m_numberFramesWritten = 0; Ui::MainWindow *m_ui = nullptr; QLabel *m_status = nullptr; + QLabel *m_written = nullptr; ConnectDialog *m_connectDialog = nullptr; QCanBusDevice *m_canDevice = nullptr; }; |