X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fgdi%2Flcd.h;h=99f921b525e16434bf6cb4dcf8c952b6a508f8d4;hb=88bae399660a892a61882f59251d9359750d3d3b;hp=6ee4dbe73465783ff25d5c19b3b45f9d2246f6b1;hpb=164779f4a960754a7d18d5947c43df1e26963a89;p=vuplus_dvbapp diff --git a/lib/gdi/lcd.h b/lib/gdi/lcd.h index 6ee4dbe..99f921b 100644 --- a/lib/gdi/lcd.h +++ b/lib/gdi/lcd.h @@ -27,6 +27,7 @@ public: int lock(); void unlock(); int islocked() { return locked; } + bool detected() { return lcdfd >= 0; } #ifndef SWIG eLCD(eSize size); virtual ~eLCD(); @@ -42,6 +43,7 @@ class eDBoxLCD: public eLCD { static eDBoxLCD *instance; unsigned char inverted; + int is_oled; #ifdef SWIG eDBoxLCD(); ~eDBoxLCD(); @@ -55,6 +57,7 @@ public: int setLCDContrast(int contrast); int setLCDBrightness(int brightness); void setInverted( unsigned char ); + bool isOled() const { return !!is_oled; } void update(); };