diff options
author | alexwild <alexwild@users.sourceforge.net> | 2007-08-24 16:08:18 +0400 |
---|---|---|
committer | alexwild <alexwild@users.sourceforge.net> | 2007-08-24 16:08:18 +0400 |
commit | a5b371c07d8a19f70daa44a5a32bc0adf6f38dfe (patch) | |
tree | 2d1dcce9024306f58e2a233060b1ac7d798c8603 /src/apps/mplayerc/LcdSupport.h | |
parent | e603b7143c322fbfdbe3bcd99b67a20d2168413f (diff) |
Logitech G15 Support (SDK v1.04.153), Part 2/2
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@160 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/LcdSupport.h')
-rw-r--r-- | src/apps/mplayerc/LcdSupport.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/apps/mplayerc/LcdSupport.h b/src/apps/mplayerc/LcdSupport.h new file mode 100644 index 000000000..4f0e4b053 --- /dev/null +++ b/src/apps/mplayerc/LcdSupport.h @@ -0,0 +1,63 @@ +/* $Id: LcdSupport.h,v 1.1 2006-11-04 22:41:51 wild Exp $ + * + * Logitech LCD Support Header + */ + +#ifndef __LCDSUPPORT_H__ +#define __LCDSUPPORT_H__ + +#include <windows.h> + +#include <lglcd/lglcd.h> +#include "../../ui/LCDUI/LCDManager.h" +#include "../../ui/LCDUI/LCDOutput.h" +#include "../../ui/LCDUI/LCDScrollingText.h" +#include "../../ui/LCDUI/LCDProgressBar.h" +#include "../../ui/LCDUI/LCDAnimatedBitmap.h" + + +class CLCDMyManager : public CLCDManager +{ + public: + virtual HRESULT Initialize(void); + virtual void OnLCDButtonUp(int nButton); + + CLCDScrollingText m_Text1; + CLCDText m_Text2; + CLCDProgressBar m_ProgBar[2]; + CLCDAnimatedBitmap m_PlayState; +}; + +class CMPC_Lcd +{ + public: + enum PlayState {PS_PLAY = 0, + PS_PAUSE = 1, + PS_STOP = 2, + PS_UNUSED = 3}; + + private: + lgLcdConnectContext m_ConnCtx; + HANDLE hLCD_UpdateThread; + HBITMAP hBmp[PS_UNUSED]; + + public: + CLCDOutput m_Output; + CLCDMyManager m_Manager; + bool Thread_Loop; + __time64_t nThread_tTimeout; + + CMPC_Lcd(); + ~CMPC_Lcd(); + + void SetMediaTitle(const _TCHAR * text); + void SetMediaRange(__int64 nStart, __int64 nStop); + void SetMediaPos(__int64 nPos); + void SetVolumeRange(__int64 nStart, __int64 nStop); + void SetVolume(__int64 nVol); + void SetStatusMessage(const _TCHAR * text, int nTimeOut); + void SetPlayState(PlayState ps); +}; + + +#endif /* __LCDSUPPORT_H__ */ |