pfodParser  3.61.0
The pfodParser library is handles commands sent from the Android pfodApp, pfodApp supports WiFi, BLE, Bluetooth and SMS connections
pfodControl.h
Go to the documentation of this file.
1 #ifndef pfodControl_h
2 #define pfodControl_h
3 /*
4  * (c)2014-2017 Forward Computing and Control Pty. Ltd.
5  * NSW Australia, www.forward.com.au
6  * This code is not warranted to be fit for any purpose. You may only use it at your own risk.
7  * This code may be freely used for both private and commercial use
8  * Provide this copyright is maintained.
9  */
10 
11 #include "pfodDwgs.h"
12 
13 class pfodControl {
14 
15  public:
16  pfodControl(pfodDwgs *_dwgsPtr);
17 
18  // every subclass must define these two methods
19  virtual void draw() = 0;
20  virtual void update() = 0;
21  //========================================
22 
23  void setValue(int newValue);
24  int getValue();
25 
26  void setLabel(const __FlashStringHelper *_label);
27 
28  protected:
30  const __FlashStringHelper *label;
31  int value;
32 };
33 #endif //pfodControl_h
void setLabel(const __FlashStringHelper *_label)
const __FlashStringHelper * label
Definition: pfodControl.h:30
pfodDwgs * dwgsPtr
Definition: pfodControl.h:29
void setValue(int newValue)
pfodControl(pfodDwgs *_dwgsPtr)
virtual void update()=0
virtual void draw()=0
int getValue()