AtmoClassicConnection.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef _AtmoClassicConnection_h_
00010 #define _AtmoClassicConnection_h_
00011
00012 #include "AtmoDefs.h"
00013 #include "AtmoConnection.h"
00014 #include "AtmoConfig.h"
00015
00016 #if defined(WIN32)
00017 # include <windows.h>
00018 #endif
00019
00020
00021 class CAtmoClassicConnection : public CAtmoConnection {
00022 private:
00023 HANDLE m_hComport;
00024
00025 #if defined(WIN32)
00026 DWORD m_dwLastWin32Error;
00027 public:
00028 DWORD getLastError() { return m_dwLastWin32Error; }
00029 #endif
00030
00031 public:
00032 CAtmoClassicConnection(CAtmoConfig *cfg);
00033 virtual ~CAtmoClassicConnection(void);
00034
00035 virtual ATMO_BOOL OpenConnection();
00036
00037 virtual void CloseConnection();
00038
00039 virtual ATMO_BOOL isOpen(void);
00040
00041 virtual ATMO_BOOL SendData(pColorPacket data);
00042
00043 virtual ATMO_BOOL HardwareWhiteAdjust(int global_gamma,
00044 int global_contrast,
00045 int contrast_red,
00046 int contrast_green,
00047 int contrast_blue,
00048 int gamma_red,
00049 int gamma_green,
00050 int gamma_blue,
00051 ATMO_BOOL storeToEeprom);
00052
00053 virtual int getNumChannels() { return 5; }
00054
00055
00056 virtual const char *getDevicePath() { return "atmo"; }
00057
00058 #if !defined(_ATMO_VLC_PLUGIN_)
00059 virtual char *getChannelName(int ch);
00060 virtual ATMO_BOOL ShowConfigDialog(HINSTANCE hInst, HWND parent, CAtmoConfig *cfg);
00061 #endif
00062
00063 virtual ATMO_BOOL CreateDefaultMapping(CAtmoChannelAssignment *ca);
00064 };
00065
00066 #endif