Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
drv.h
Go to the documentation of this file.
1//
2// Copyright (c) 2023, DefenceX PTY LTD
3//
4// This file is part of the VivoeX project developed by DefenceX.
5//
6// Licensed under the Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
7// License. See the LICENSE file in the project root for full license details.
8//
12#ifndef HMICORE_STATES_DRV_H_
13#define HMICORE_STATES_DRV_H_
14
15#include <glog/logging.h>
16
17#include <iostream>
18
19#include "hmicore/gva.h"
20#include "hmicore/hmi_gva.h"
22#include "hmicore/view_gva.h"
26
27namespace gva {
28
30struct StateDRV : Hmi {
36
42
47 void entry() override;
48
53 void exit() override;
54
59 void react(EventKeyPowerOn const &) override;
60
65 void react(EventKeySA const &) override;
66
71 void react(EventKeyWPN const &) override;
72
77 void react(EventKeyDEF const &) override;
78
83 void react(EventKeySYS const &) override;
84
89 void react(EventKeyDRV const &) override;
90
95 void react(EventKeySTR const &) override;
96
101 void react(EventKeyCOM const &) override;
102
107 void react(EventKeyBMS const &) override;
108
113 void react(EventKeyAlarms const &) override;
114
120 void react(EventKeyFunction const &e) override;
121
122 private:
124 gva::WidgetVideo *video_ = nullptr;
125};
126
127} // namespace gva
128
129#endif // HMICORE_STATES_DRV_H_
Class defining the video widget.
Definition video.h:29
Event for Alarms key press.
Definition base_hmi.h:51
Event for BMS key press.
Definition base_hmi.h:49
Event for COM key press.
Definition base_hmi.h:47
Event for DEF key press.
Definition base_hmi.h:39
Event for DRV key press.
Definition base_hmi.h:43
Event for Function key press.
Definition base_hmi.h:53
Definition base_hmi.h:33
Event for SA key press.
Definition base_hmi.h:35
Event for STR key press.
Definition base_hmi.h:45
Event for SYS key press.
Definition base_hmi.h:41
Event for WPN key press.
Definition base_hmi.h:37
State Machine Base Class Declaration.
Definition base_hmi.h:59
Class definition of the StateDRV.
Definition drv.h:30
void exit() override
Exit from the state.
Definition drv.cc:80
void UpdateVideo()
Update the video.
StateDRV()
Construct a new State DRV object.
void react(EventKeyPowerOn const &) override
React to an event.
Definition drv.cc:86
void entry() override
Entry into the state.
Definition drv.cc:53