Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
status_updater.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//
13
14#ifndef HMICORE_STATUS_UPDATER_H_
15#define HMICORE_STATUS_UPDATER_H_
16#include <memory>
17
18#include "hmicore/screen_gva.h"
20
21namespace gva {
22
25 public:
30 StatusUpdater() = default;
31
36 ~StatusUpdater() = default;
37
43 void ClockUpdate(ClockArgs *args);
44
50 void GetLocalTime(std::tm *localTime) const;
51
57 void UpdateClock(std::shared_ptr<WidgetStatusBar> statusBar) const;
58
67 void ParseGpsData(const int *gps_file_descriptor, nmeaINFO *info, nmeaPARSER *parser,
68 const LocationType &location) const;
69
77 void UpdateLocation(std::shared_ptr<WidgetStatusBar> statusBar, const nmeaINFO &info,
78 const LocationType &location) const;
79
80 private:
82 static const int kMaxNmea = 1000;
83};
84} // namespace gva
85
86#endif // HMICORE_STATUS_UPDATER_H_
Class defining the status updater.
Definition status_updater.h:24
StatusUpdater()=default
Construct a new Status Updater object.
void ClockUpdate(ClockArgs *args)
Update the clock.
Definition status_updater.cc:99
~StatusUpdater()=default
Destroy the Status Updater object.
void ParseGpsData(const int *gps_file_descriptor, nmeaINFO *info, nmeaPARSER *parser, const LocationType &location) const
Parse the GPS data.
Definition status_updater.cc:38
void UpdateClock(std::shared_ptr< WidgetStatusBar > statusBar) const
Update the clock and the rest of the status bar settings.
Definition status_updater.cc:28
void UpdateLocation(std::shared_ptr< WidgetStatusBar > statusBar, const nmeaINFO &info, const LocationType &location) const
Update the location.
Definition status_updater.cc:71
void GetLocalTime(std::tm *localTime) const
Get the Local Time attribute.
Definition status_updater.cc:111
The clock arguments.
Definition screen_gva.h:118
Enum for the location type.
Definition gva.h:543