ReactOS 0.4.15-dev-7654-g6bc40d3
CBDASignalStatistics Class Reference
Inheritance diagram for CBDASignalStatistics:
Collaboration diagram for CBDASignalStatistics:

Public Member Functions

STDMETHODIMP QueryInterface (REFIID InterfaceId, PVOID *Interface)
 
 STDMETHODIMP_ (ULONG) AddRef()
 
 STDMETHODIMP_ (ULONG) Release()
 
HRESULT STDMETHODCALLTYPE put_SignalStrength (LONG lDbStrength)
 
HRESULT STDMETHODCALLTYPE get_SignalStrength (LONG *plDbStrength)
 
HRESULT STDMETHODCALLTYPE put_SignalQuality (LONG lPercentQuality)
 
HRESULT STDMETHODCALLTYPE get_SignalQuality (LONG *plPercentQuality)
 
HRESULT STDMETHODCALLTYPE put_SignalPresent (BOOLEAN fPresent)
 
HRESULT STDMETHODCALLTYPE get_SignalPresent (BOOLEAN *pfPresent)
 
HRESULT STDMETHODCALLTYPE put_SignalLocked (BOOLEAN fLocked)
 
HRESULT STDMETHODCALLTYPE get_SignalLocked (BOOLEAN *pfLocked)
 
HRESULT STDMETHODCALLTYPE put_SampleTime (LONG lmsSampleTime)
 
HRESULT STDMETHODCALLTYPE get_SampleTime (LONG *plmsSampleTime)
 
 CBDASignalStatistics (IKsPropertySet *pProperty, ULONG NodeId)
 
 ~CBDASignalStatistics ()
 
HRESULT put_SignalStrength ([in] LONG lDbStrength)
 
HRESULT get_SignalStrength ([in, out] LONG *plDbStrength)
 
HRESULT put_SignalQuality ([in] LONG lPercentQuality)
 
HRESULT get_SignalQuality ([in, out] LONG *plPercentQuality)
 
HRESULT put_SignalPresent ([in] BOOLEAN fPresent)
 
HRESULT get_SignalPresent ([in, out] BOOLEAN *pfPresent)
 
HRESULT put_SignalLocked ([in] BOOLEAN fLocked)
 
HRESULT get_SignalLocked ([in, out] BOOLEAN *pfLocked)
 
HRESULT put_SampleTime ([in] LONG lmsSampleTime)
 
HRESULT get_SampleTime ([in, out] LONG *plmsSampleTime)
 
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 

Protected Attributes

LONG m_Ref
 
IKsPropertySetm_pProperty
 
ULONG m_NodeId
 

Additional Inherited Members

- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 

Detailed Description

Definition at line 17 of file signalstatistics.cpp.

Constructor & Destructor Documentation

◆ CBDASignalStatistics()

CBDASignalStatistics::CBDASignalStatistics ( IKsPropertySet pProperty,
ULONG  NodeId 
)
inline

Definition at line 50 of file signalstatistics.cpp.

50: m_Ref(0), m_pProperty(pProperty), m_NodeId(NodeId){};
_Must_inspect_result_ _In_ KSP_BDA_NODE_PIN * pProperty
Definition: bdasup.h:156
IKsPropertySet * m_pProperty

◆ ~CBDASignalStatistics()

CBDASignalStatistics::~CBDASignalStatistics ( )
inline

Definition at line 51 of file signalstatistics.cpp.

51{};

Member Function Documentation

◆ get_SampleTime()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::get_SampleTime ( LONG plmsSampleTime)

Implements IBDA_SignalStatistics.

Definition at line 241 of file signalstatistics.cpp.

242{
244 HRESULT hr;
246
247 // setup request
248 Node.NodeId = (ULONG)-1;
249 Node.Reserved = 0;
250
251 // perform request
252 hr = m_pProperty->Get(KSPROPSETID_BdaSignalStats, KSPROPERTY_BDA_SAMPLE_TIME, &Node.NodeId, sizeof(KSP_NODE)-sizeof(KSPROPERTY), plmsSampleTime, sizeof(LONG), &BytesReturned);
253
254#ifdef BDAPLGIN_TRACE
255 WCHAR Buffer[100];
256 swprintf(Buffer, L"CBDASignalStatistics::get_SampleTime: m_NodeId %lu hr %lx, BytesReturned %lu \n", m_NodeId, hr, BytesReturned);
258#endif
259
260 return hr;
261}
@ KSPROPERTY_BDA_SAMPLE_TIME
Definition: bdamedia.h:332
Definition: bufpool.h:45
union node Node
Definition: types.h:1255
#define swprintf
Definition: precomp.h:40
struct KSIDENTIFIER KSPROPERTY
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
HRESULT Get([in] REFGUID guidPropSet, [in] DWORD dwPropID, [in, size_is(cbInstanceData)] LPVOID pInstanceData, [in] DWORD cbInstanceData, [out, size_is(cbPropData)] LPVOID pPropData, [in] DWORD cbPropData, [out] DWORD *pcbReturned)
#define L(x)
Definition: ntvdm.h:50
long LONG
Definition: pedump.c:60
HRESULT hr
Definition: shlfolder.c:183
const GUID KSPROPSETID_BdaSignalStats
Definition: ks.h:2074
uint32_t ULONG
Definition: typedefs.h:59
Definition: dlist.c:348
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_ ULONG _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_opt_ PULONG_PTR BytesReturned
Definition: wdfiotarget.h:1052
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ get_SignalLocked()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::get_SignalLocked ( BOOLEAN pfLocked)

Implements IBDA_SignalStatistics.

Definition at line 191 of file signalstatistics.cpp.

192{
194 HRESULT hr;
197
198 // setup request
199 Node.NodeId = (ULONG)-1;
200 Node.Reserved = 0;
201
202 // perform request
204
205 *pfLocked = Locked;
206
207#ifdef BDAPLGIN_TRACE
208 WCHAR Buffer[100];
209 swprintf(Buffer, L"CBDASignalStatistics::get_SignalLocked: m_NodeId %lu hr %lx, BytesReturned %lu Locked %lu\n", m_NodeId, hr, BytesReturned, Locked);
211#endif
212
213 return hr;
214}
@ KSPROPERTY_BDA_SIGNAL_LOCKED
Definition: bdamedia.h:331
_In_ PMEMORY_AREA _In_ PVOID _In_ BOOLEAN Locked
Definition: newmm.h:209

◆ get_SignalPresent()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::get_SignalPresent ( BOOLEAN pfPresent)

Implements IBDA_SignalStatistics.

Definition at line 156 of file signalstatistics.cpp.

157{
159 HRESULT hr;
160 ULONG Present;
162
163 // setup request
164 Node.NodeId = (ULONG)-1;
165 Node.Reserved = 0;
166
167 // perform request
169
170 // store result
171 *pfPresent = Present;
172
173#ifdef BDAPLGIN_TRACE
174 WCHAR Buffer[100];
175 swprintf(Buffer, L"CBDASignalStatistics::get_SignalPresent: m_NodeId %lu hr %lx, BytesReturned %lu Present %lu\n", m_NodeId, hr, BytesReturned, Present);
177#endif
178
179 return hr;
180}
@ KSPROPERTY_BDA_SIGNAL_PRESENT
Definition: bdamedia.h:330

◆ get_SignalQuality()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::get_SignalQuality ( LONG plPercentQuality)

Implements IBDA_SignalStatistics.

Definition at line 125 of file signalstatistics.cpp.

126{
128 HRESULT hr;
130
131 // setup request
132 Node.NodeId = (ULONG)-1;
133 Node.Reserved = 0;
134
135 // perform request
136 hr = m_pProperty->Get(KSPROPSETID_BdaSignalStats, KSPROPERTY_BDA_SIGNAL_QUALITY, &Node.NodeId, sizeof(KSP_NODE)-sizeof(KSPROPERTY), plPercentQuality, sizeof(LONG), &BytesReturned);
137
138#ifdef BDAPLGIN_TRACE
139 WCHAR Buffer[100];
140 swprintf(Buffer, L"CBDASignalStatistics::get_SignalQuality: m_NodeId %lu hr %lx, BytesReturned %lu plPercentQuality %lu\n", m_NodeId, hr, BytesReturned, *plPercentQuality);
142#endif
143
144 return hr;
145}
@ KSPROPERTY_BDA_SIGNAL_QUALITY
Definition: bdamedia.h:329

◆ get_SignalStrength()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::get_SignalStrength ( LONG plDbStrength)

Implements IBDA_SignalStatistics.

Definition at line 92 of file signalstatistics.cpp.

93{
95 HRESULT hr;
97
98 // setup request
99 Node.NodeId = (ULONG)-1;
100 Node.Reserved = 0;
101
103
105
106
107#ifdef BDAPLGIN_TRACE
108 WCHAR Buffer[100];
109 swprintf(Buffer, L"CBDASignalStatistics::get_SignalStrength: m_NodeId %lu hr %lx, BytesReturned %lu plDbStrength %ld\n", m_NodeId, hr, BytesReturned, *plDbStrength);
111#endif
112
113 return hr;
114}
@ KSPROPERTY_BDA_SIGNAL_STRENGTH
Definition: bdamedia.h:328
#define assert(x)
Definition: debug.h:53

◆ put_SampleTime()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::put_SampleTime ( LONG  lmsSampleTime)

Implements IBDA_SignalStatistics.

Definition at line 218 of file signalstatistics.cpp.

219{
221 HRESULT hr;
222
223 // setup request
224 Node.NodeId = (ULONG)-1;
225 Node.Reserved = 0;
226
227 // perform request
228 hr = m_pProperty->Set(KSPROPSETID_BdaSignalStats, KSPROPERTY_BDA_SAMPLE_TIME, &Node.NodeId, sizeof(KSP_NODE)-sizeof(KSPROPERTY), &lmsSampleTime, sizeof(LONG));
229
230#ifdef BDAPLGIN_TRACE
231 WCHAR Buffer[100];
232 swprintf(Buffer, L"CBDASignalStatistics::put_SampleTime: m_NodeId %lu hr %lx\n", m_NodeId, hr);
234#endif
235
236 return hr;
237}
HRESULT Set([in] REFGUID guidPropSet, [in] DWORD dwPropID, [in, size_is(cbInstanceData)] LPVOID pInstanceData, [in] DWORD cbInstanceData, [in, size_is(cbPropData)] LPVOID pPropData, [in] DWORD cbPropData)

◆ put_SignalLocked()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::put_SignalLocked ( BOOLEAN  fLocked)

Implements IBDA_SignalStatistics.

Definition at line 184 of file signalstatistics.cpp.

185{
186 return E_NOINTERFACE;
187}
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ put_SignalPresent()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::put_SignalPresent ( BOOLEAN  fPresent)

Implements IBDA_SignalStatistics.

Definition at line 149 of file signalstatistics.cpp.

150{
151 return E_NOINTERFACE;
152}

◆ put_SignalQuality()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::put_SignalQuality ( LONG  lPercentQuality)

Implements IBDA_SignalStatistics.

Definition at line 118 of file signalstatistics.cpp.

119{
120 return E_NOINTERFACE;
121}

◆ put_SignalStrength()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::put_SignalStrength ( LONG  lDbStrength)

Implements IBDA_SignalStatistics.

Definition at line 85 of file signalstatistics.cpp.

86{
87 return E_NOINTERFACE;
88}

◆ QueryInterface()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::QueryInterface ( REFIID  InterfaceId,
PVOID Interface 
)

Definition at line 61 of file signalstatistics.cpp.

64{
65 *Output = NULL;
66
67 if (IsEqualGUID(refiid, IID_IUnknown))
68 {
69 *Output = PVOID(this);
70 reinterpret_cast<IUnknown*>(*Output)->AddRef();
71 return NOERROR;
72 }
73
75 {
76 *Output = (IBDA_SignalStatistics*)(this);
77 reinterpret_cast<IBDA_SignalStatistics*>(*Output)->AddRef();
78 return NOERROR;
79 }
80 return E_NOINTERFACE;
81}
const GUID IID_IUnknown
#define NULL
Definition: types.h:112
ULONG AddRef()
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
@ Output
Definition: arc.h:85
const GUID IID_IBDA_SignalStatistics
void * PVOID
Definition: typedefs.h:50
#define NOERROR
Definition: winerror.h:2354

◆ STDMETHODIMP_() [1/2]

CBDASignalStatistics::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 22 of file signalstatistics.cpp.

23 {
25 return m_Ref;
26 }
#define InterlockedIncrement
Definition: armddk.h:53

◆ STDMETHODIMP_() [2/2]

CBDASignalStatistics::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 27 of file signalstatistics.cpp.

28 {
30 if (!m_Ref)
31 {
32 delete this;
33 return 0;
34 }
35 return m_Ref;
36 }
#define InterlockedDecrement
Definition: armddk.h:52

Member Data Documentation

◆ m_NodeId

ULONG CBDASignalStatistics::m_NodeId
protected

◆ m_pProperty

IKsPropertySet* CBDASignalStatistics::m_pProperty
protected

◆ m_Ref

LONG CBDASignalStatistics::m_Ref
protected

Definition at line 54 of file signalstatistics.cpp.

Referenced by STDMETHODIMP_().


The documentation for this class was generated from the following file: