diff options
author | mrwastl <mrwastl@users.sourceforge.net> | 2013-04-19 00:39:40 +0200 |
---|---|---|
committer | mrwastl <mrwastl@users.sourceforge.net> | 2013-04-19 00:39:40 +0200 |
commit | c45745ea462ea3758daffc6302552993ba4c3be0 (patch) | |
tree | d0b1896966e7a6c944e448238be6c64ef53591a6 /glcddrivers/vncserver.h | |
parent | 54d0651c970394d391f487afbb42a2592b033d1f (diff) | |
download | graphlcd-base-c45745ea462ea3758daffc6302552993ba4c3be0.tar.gz graphlcd-base-c45745ea462ea3758daffc6302552993ba4c3be0.tar.bz2 |
added new driver 'vncserver' (contrib. by Michael Heyer); ax206dpf: type change of an array to make new GCC versions happy
Diffstat (limited to 'glcddrivers/vncserver.h')
-rw-r--r-- | glcddrivers/vncserver.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/glcddrivers/vncserver.h b/glcddrivers/vncserver.h new file mode 100644 index 0000000..2cb055f --- /dev/null +++ b/glcddrivers/vncserver.h @@ -0,0 +1,51 @@ +/* + * GraphLCD driver library + * + * vncserver.h - vncserver device + * Output goes to a vncserver device + * + * This file is released under the GNU General Public License. Refer + * to the COPYING file distributed with this package. + * + * (c) 2013 Michael Heyer + */ + +#ifndef _GLCDDRIVERS_VNCSERVER_H_ +#define _GLCDDRIVERS_VNCSERVER_H_ + +#include "driver.h" +#include <rfb/rfb.h> + +namespace GLCD +{ + +class cDriverConfig; + +class cDriverVncServer : public cDriver +{ +private: + unsigned char ** LCD; + char *offbuff; + rfbScreenInfoPtr server; + long int screensize; + int bbox[4]; + int depth; + + int CheckSetup(); + void processDamage (void); +protected: + virtual bool GetDriverFeature (const std::string & Feature, int & value); +public: + cDriverVncServer(cDriverConfig * config); + + virtual int Init(); + virtual int DeInit(); + + virtual void Clear(); + virtual void SetPixel(int x, int y, uint32_t data); + virtual void Refresh(bool refreshAll = false); +}; + +} // end of namespace + +#endif |