Pi-XPlane-FMC-CDU
XfmcFMC.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_XFMCFMC_H_
24 #define PIXPLANEFMCCDU_XFMCFMC_H_
25 
26 #include "AbstractFMC.h"
27 
28 class XfmcFMC: public AbstractFMC {
29 protected:
30 
31 public:
32  XfmcFMC();
33  virtual ~XfmcFMC();
34 
35  virtual std::string getName() {
36  return "XFMC";
37  }
38 
39  virtual void init ();
40  virtual void deInit ();
41  virtual void receiveDataRef(std::string type, std::string dataref, std::string value);
42 
43  virtual void keyPressEvent (int row, int col);
44  virtual void keyReleaseEvent (int row, int col);
45 };
46 
47 #endif /* PIXPLANEFMCCDU_XFMCFMC_H_ */
virtual void deInit()
de-initialize the fmc.
Definition: XfmcFMC.cpp:55
virtual std::string getName()
returns name of FMC plugin.
Definition: XfmcFMC.h:35
Definition: AbstractFMC.h:28
Definition: XfmcFMC.h:28
virtual void receiveDataRef(std::string type, std::string dataref, std::string value)
called when we receive a float dataref from the server.
Definition: XfmcFMC.cpp:65