git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Components/About.py: fix /etc/image-version parser..now we also show image type ...
[enigma2.git]
/
lib
/
gdi
/
lcd.h
diff --git
a/lib/gdi/lcd.h
b/lib/gdi/lcd.h
index 88e543f77761024910432e5d12bc12cd6d9520eb..99f921b525e16434bf6cb4dcf8c952b6a508f8d4 100644
(file)
--- a/
lib/gdi/lcd.h
+++ b/
lib/gdi/lcd.h
@@
-1,5
+1,3
@@
-#ifndef DISABLE_LCD
-
#ifndef __lcd_h
#define __lcd_h
#ifndef __lcd_h
#define __lcd_h
@@
-14,41
+12,53
@@
class eLCD
{
class eLCD
{
+#ifdef SWIG
+ eLCD(eSize size);
+ ~eLCD();
+#else
protected:
eSize res;
unsigned char *_buffer;
int lcdfd;
int _stride;
int locked;
protected:
eSize res;
unsigned char *_buffer;
int lcdfd;
int _stride;
int locked;
+#endif
public:
int lock();
void unlock();
int islocked() { return locked; }
public:
int lock();
void unlock();
int islocked() { return locked; }
-
+ bool detected() { return lcdfd >= 0; }
+#ifndef SWIG
eLCD(eSize size);
virtual ~eLCD();
eLCD(eSize size);
virtual ~eLCD();
-
__u8 *buffer() { return (__u8*)_buffer; }
int stride() { return _stride; }
eSize size() { return res; }
virtual void update()=0;
__u8 *buffer() { return (__u8*)_buffer; }
int stride() { return _stride; }
eSize size() { return res; }
virtual void update()=0;
+#endif
};
class eDBoxLCD: public eLCD
{
static eDBoxLCD *instance;
unsigned char inverted;
};
class eDBoxLCD: public eLCD
{
static eDBoxLCD *instance;
unsigned char inverted;
+ int is_oled;
+#ifdef SWIG
+ eDBoxLCD();
+ ~eDBoxLCD();
+#endif
public:
public:
- static eDBoxLCD *getInstance();
- int switchLCD(int state);
- int setLCDParameter(int brightness, int contrast);
- void setInverted( unsigned char );
+#ifndef SWIG
eDBoxLCD();
~eDBoxLCD();
eDBoxLCD();
~eDBoxLCD();
+#endif
+ static eDBoxLCD *getInstance();
+ int setLCDContrast(int contrast);
+ int setLCDBrightness(int brightness);
+ void setInverted( unsigned char );
+ bool isOled() const { return !!is_oled; }
void update();
};
#endif
void update();
};
#endif
-
-#endif //DISABLE_LCD