summaryrefslogtreecommitdiff
path: root/glcddrivers/g15daemon.h
blob: c7c216afdc7d390b878b2d69e25ef429d9ae8d2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 * GraphLCD driver library
 *
 * g15daemon.h  -  pseudo device for the g15daemon
 *                   Output goes to the g15daemon which then displays it
 *
 * (c) 2005-2010 Andreas Regel <andreas.regel AT powarman.de>
 * (c) 2011-2013 Wolfgang Astleitner <mrwastl AT users.sourceforge.net>
 */

#ifndef _GLCDDRIVERS_G15DAEMON_H_
#define _GLCDDRIVERS_G15DAEMON_H_

#include "driver.h"


namespace GLCD
{

class cDriverConfig;

class cDriverG15daemon : public cDriver
{
private:
    char *offbuff;
    int sockfd;
    long int screensize;

    int CheckSetup();

public:
    cDriverG15daemon(cDriverConfig * config);

    virtual int Init();
    virtual int DeInit();

    virtual void Clear();
    virtual void SetPixel(int x, int y, uint32_t data);
    //virtual void Set8Pixels(int x, int y, unsigned char data);
    virtual void Refresh(bool refreshAll = false);
};

} // end of namespace

#endif