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).
9 #ifndef _MoMoConnection_h_
10 #define _MoMoConnection_h_
13 #include "AtmoConnection.h"
14 #include "AtmoConfig.h"
21 class CMoMoConnection
: public CAtmoConnection
{
26 DWORD m_dwLastWin32Error
;
28 DWORD
getLastError() { return m_dwLastWin32Error
; }
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
,
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
);
63 virtual ATMO_BOOL
CreateDefaultMapping(CAtmoChannelAssignment
*ca
);