add_integer: remove callback parameter
[vlc/asuraparaju-public.git] / modules / video_filter / atmo / MoMoConnection.h
blob2a0315b4da41e0239e085289a68171b8b26f9084
1 /*
2 * MoMoConnection.h: class to access a MoMoLight Hardware - the description could be found
3 * here: http://lx.divxstation.com/article.asp?aId=151
5 * See the README.txt file for copyright information and how to reach the author(s).
7 * $Id$
8 */
9 #ifndef _MoMoConnection_h_
10 #define _MoMoConnection_h_
12 #include "AtmoDefs.h"
13 #include "AtmoConnection.h"
14 #include "AtmoConfig.h"
16 #if defined(WIN32)
17 # include <windows.h>
18 #endif
21 class CMoMoConnection : public CAtmoConnection {
22 private:
23 HANDLE m_hComport;
25 #if defined(WIN32)
26 DWORD m_dwLastWin32Error;
27 public:
28 DWORD getLastError() { return m_dwLastWin32Error; }
29 #endif
31 public:
32 CMoMoConnection (CAtmoConfig *cfg);
33 virtual ~CMoMoConnection (void);
35 virtual ATMO_BOOL OpenConnection();
37 virtual void CloseConnection();
39 virtual ATMO_BOOL isOpen(void);
41 virtual ATMO_BOOL SendData(pColorPacket data);
43 virtual ATMO_BOOL HardwareWhiteAdjust(int global_gamma,
44 int global_contrast,
45 int contrast_red,
46 int contrast_green,
47 int contrast_blue,
48 int gamma_red,
49 int gamma_green,
50 int gamma_blue,
51 ATMO_BOOL storeToEeprom);
53 virtual int getNumChannels();
56 virtual const char *getDevicePath() { return "momo"; }
58 #if !defined(_ATMO_VLC_PLUGIN_)
59 virtual char *getChannelName(int ch);
60 virtual ATMO_BOOL ShowConfigDialog(HINSTANCE hInst, HWND parent, CAtmoConfig *cfg);
61 #endif
63 virtual ATMO_BOOL CreateDefaultMapping(CAtmoChannelAssignment *ca);
66 #endif