1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/IdwApi.h Sun Mar 16 09:11:39 2014 +0100
1.3 @@ -0,0 +1,48 @@
1.4 +//------------------------------------------------------------------------------
1.5 +#ifndef IDWAPI_H_INCLUDED
1.6 +#define IDWAPI_H_INCLUDED
1.7 +//------------------------------------------------------------------------------
1.8 +#include <windows.h>
1.9 +#include "Mutex.h"
1.10 +#include "iMONDisplayDefines.h"
1.11 +#include "iMONDisplayWrapper.h"
1.12 +#include "IdwThread.h"
1.13 +//------------------------------------------------------------------------------
1.14 +class IdwApi
1.15 +{
1.16 +public:
1.17 + IdwApi(HINSTANCE hInstance);
1.18 + ~IdwApi();
1.19 +
1.20 +public:
1.21 + DSPResult Init(IDW_INITRESULT* pInitResult);
1.22 + DSPResult Uninit();
1.23 + DSPResult IsInited();
1.24 + DSPResult IsPluginModeEnabled();
1.25 + DSPResult SetVfdText(LPCWSTR lpszLine1, LPCWSTR lpszLine2);
1.26 + DSPResult SetVfdEqData(PDSPEQDATA pEqData);
1.27 + DSPResult SetLcdText(LPCWSTR lpszText);
1.28 + DSPResult SetLcdEqData(PDSPEQDATA pEqDataL, PDSPEQDATA pEqDataR);
1.29 + DSPResult SetLcdAllIcons(BOOL bOn);
1.30 + DSPResult SetLcdOrangeIcon(BYTE btIconData1, BYTE btIconData2);
1.31 + DSPResult SetLcdMediaTypeIcon(BYTE btIconData);
1.32 + DSPResult SetLcdSpeakerIcon(BYTE btIconData1, BYTE btIconData2);
1.33 + DSPResult SetLcdVideoCodecIcon(BYTE btIconData);
1.34 + DSPResult SetLcdAudioCodecIcon(BYTE btIconData);
1.35 + DSPResult SetLcdAspectRatioIcon(BYTE btIconData);
1.36 + DSPResult SetLcdEtcIcon(BYTE btIconData);
1.37 + DSPResult SetLcdProgress(int nCurPos, int nTotal);
1.38 +
1.39 +private:
1.40 + IdwApi(const IdwApi& other) {}
1.41 + IdwApi& operator=(const IdwApi& other) { return *this; }
1.42 +
1.43 +private:
1.44 + HINSTANCE m_hInstance;
1.45 + Mutex m_mutex;
1.46 + int m_nInitCount;
1.47 + IdwThread* m_pIdwThread;
1.48 +};
1.49 +//------------------------------------------------------------------------------
1.50 +#endif
1.51 +//------------------------------------------------------------------------------