Pi-XPlane-FMC-CDU
SplashFMC.h
1 /*
2  This file is part of Pi-XPlane-FMC-CDU
3  A Raspberry Pi-based External FMC for XPlane
4 
5  Copyright (C) 2017-2018 shahada abubakar
6  <shahada@abubakar.net>
7 
8  This program is free software: you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation, either version 3 of the License, or
11  (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program. If not, see <https://www.gnu.org/licenses/>.
20 
21  */
22 
23 #ifndef PIXPLANEFMCCDU_SPLASHFMC_H_
24 #define PIXPLANEFMCCDU_SPLASHFMC_H_
25 
26 #include <string>
27 #include "AbstractFMC.h"
28 
29 class SplashFMC : public AbstractFMC {
30 protected:
31  int numCols;
32 public:
33  SplashFMC();
34  virtual ~SplashFMC();
35 
36  virtual std::string getName() {
37  return "SplashFMC";
38  };
39 
40  virtual void init();
41  virtual void deInit ();
42  virtual void receiveData (time_t time, std::string type, std::string dataref, std::string value);
43  virtual void keyPressEvent (int row, int col);
44  virtual void keyReleaseEvent (int row, int col);
45 
46  virtual void drawCenteredText(int line, std::string text);
47 
48 };
49 
50 #endif /* PIXPLANEFMCCDU_SPLASHFMC_H_ */
virtual std::string getName()
returns name of FMC plugin.
Definition: SplashFMC.h:36
Definition: AbstractFMC.h:28
Definition: SplashFMC.h:29
virtual void deInit()
de-initialize the fmc.
Definition: SplashFMC.cpp:65