summaryrefslogtreecommitdiff
path: root/Layout/LayoutSurveyFailure.h
blob: aac3142595f401bcaab46085bf4f431dafac3ffc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef __LAYOUTSURVEYFAILURE_H__
#define __LAYOUTSURVEYFAILURE_H__

#include "Layout.h"
#include "GPSPARSER.h"

class LayoutSurveyFailure : public Layout {
    public:
        LayoutSurveyFailure(DOGS102* lcd);
        ~LayoutSurveyFailure();

        void display();
        void updateId(uint32_t id);
        void updateRate(std::string rate);
        void updatePower(uint32_t power);
        void updateGpsLatitude(GPSPARSER::latitude lat);
        void updateGpsLatitude(std::string msg);
        void updateGpsLongitude(GPSPARSER::longitude lon);
        void updateGpsTime(struct tm time);
        void updateInfo(std::string info);
        void updateSw1(std::string sw1);
        void updateSw2(std::string sw2);
        void updatePassFail(uint8_t pass, uint8_t fail);

    private:
        Label _lTitle;
        Label _lId;
        Label _lDr;
        Label _lPwr;

        Field _fId;
        Field _fDr;
        Field _fPwr;
        Field _fGpsLat;
        Field _fGpsLon;
        Field _fGpsTime;
        Field _fInfo;
        Field _fSw1;
        Field _fSw2;
};

#endif