ReactOS 0.4.15-dev-7889-g76290a6
CBDAFrequencyFilter Class Reference
Inheritance diagram for CBDAFrequencyFilter:
Collaboration diagram for CBDAFrequencyFilter:

Public Member Functions

STDMETHODIMP QueryInterface (REFIID InterfaceId, PVOID *Interface)
 
 STDMETHODIMP_ (ULONG) AddRef()
 
 STDMETHODIMP_ (ULONG) Release()
 
HRESULT STDMETHODCALLTYPE put_Autotune (ULONG ulTransponder)
 
HRESULT STDMETHODCALLTYPE get_Autotune (ULONG *pulTransponder)
 
HRESULT STDMETHODCALLTYPE put_Frequency (ULONG ulFrequency)
 
HRESULT STDMETHODCALLTYPE get_Frequency (ULONG *pulFrequency)
 
HRESULT STDMETHODCALLTYPE put_Polarity (Polarisation Polarity)
 
HRESULT STDMETHODCALLTYPE get_Polarity (Polarisation *pPolarity)
 
HRESULT STDMETHODCALLTYPE put_Range (ULONG ulRange)
 
HRESULT STDMETHODCALLTYPE get_Range (ULONG *pulRange)
 
HRESULT STDMETHODCALLTYPE put_Bandwidth (ULONG ulBandwidth)
 
HRESULT STDMETHODCALLTYPE get_Bandwidth (ULONG *pulBandwidth)
 
HRESULT STDMETHODCALLTYPE put_FrequencyMultiplier (ULONG ulMultiplier)
 
HRESULT STDMETHODCALLTYPE get_FrequencyMultiplier (ULONG *pulMultiplier)
 
 CBDAFrequencyFilter (IKsPropertySet *pProperty, ULONG NodeId)
 
virtual ~CBDAFrequencyFilter ()
 
HRESULT put_Autotune ([in] ULONG ulTransponder)
 
HRESULT get_Autotune ([in, out] ULONG *pulTransponder)
 
HRESULT put_Frequency ([in] ULONG ulFrequency)
 
HRESULT get_Frequency ([in, out] ULONG *pulFrequency)
 
HRESULT put_Polarity ([in] Polarisation Polarity)
 
HRESULT get_Polarity ([in, out] Polarisation *pPolarity)
 
HRESULT put_Range ([in] ULONG ulRange)
 
HRESULT get_Range ([in, out] ULONG *pulRange)
 
HRESULT put_Bandwidth ([in] ULONG ulBandwidth)
 
HRESULT get_Bandwidth ([in, out] ULONG *pulBandwidth)
 
HRESULT put_FrequencyMultiplier ([in] ULONG ulMultiplier)
 
HRESULT get_FrequencyMultiplier ([in, out] ULONG *pulMultiplier)
 
- 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 frequencyfilter.cpp.

Constructor & Destructor Documentation

◆ CBDAFrequencyFilter()

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

Definition at line 51 of file frequencyfilter.cpp.

51: 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

◆ ~CBDAFrequencyFilter()

virtual CBDAFrequencyFilter::~CBDAFrequencyFilter ( )
inlinevirtual

Definition at line 52 of file frequencyfilter.cpp.

52{};

Member Function Documentation

◆ get_Autotune()

HRESULT STDMETHODCALLTYPE CBDAFrequencyFilter::get_Autotune ( ULONG pulTransponder)

Implements IBDA_FrequencyFilter.

Definition at line 104 of file frequencyfilter.cpp.

105{
106 return E_NOINTERFACE;
107}
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ get_Bandwidth()

HRESULT STDMETHODCALLTYPE CBDAFrequencyFilter::get_Bandwidth ( ULONG pulBandwidth)

Implements IBDA_FrequencyFilter.

Definition at line 224 of file frequencyfilter.cpp.

225{
226 return E_NOINTERFACE;
227}

◆ get_Frequency()

HRESULT STDMETHODCALLTYPE CBDAFrequencyFilter::get_Frequency ( ULONG pulFrequency)

Implements IBDA_FrequencyFilter.

Definition at line 134 of file frequencyfilter.cpp.

135{
136 return E_NOINTERFACE;
137}

◆ get_FrequencyMultiplier()

HRESULT STDMETHODCALLTYPE CBDAFrequencyFilter::get_FrequencyMultiplier ( ULONG pulMultiplier)

Implements IBDA_FrequencyFilter.

Definition at line 253 of file frequencyfilter.cpp.

254{
255 return E_NOINTERFACE;
256}

◆ get_Polarity()

HRESULT STDMETHODCALLTYPE CBDAFrequencyFilter::get_Polarity ( Polarisation pPolarity)

Implements IBDA_FrequencyFilter.

Definition at line 164 of file frequencyfilter.cpp.

165{
166 return E_NOINTERFACE;
167}

◆ get_Range()

HRESULT STDMETHODCALLTYPE CBDAFrequencyFilter::get_Range ( ULONG pulRange)

Implements IBDA_FrequencyFilter.

Definition at line 194 of file frequencyfilter.cpp.

195{
196 return E_NOINTERFACE;
197}

◆ put_Autotune()

HRESULT STDMETHODCALLTYPE CBDAFrequencyFilter::put_Autotune ( ULONG  ulTransponder)

Implements IBDA_FrequencyFilter.

Definition at line 97 of file frequencyfilter.cpp.

98{
99 return E_NOINTERFACE;
100}

◆ put_Bandwidth()

HRESULT STDMETHODCALLTYPE CBDAFrequencyFilter::put_Bandwidth ( ULONG  ulBandwidth)

Implements IBDA_FrequencyFilter.

Definition at line 201 of file frequencyfilter.cpp.

202{
204 HRESULT hr;
205
206 // setup request
207 Node.NodeId = m_NodeId;
208 Node.Reserved = 0;
209
210 // perform request
212
213#ifdef BDAPLGIN_TRACE
214 WCHAR Buffer[100];
215 swprintf(Buffer, L"CBDAFrequencyFilter::put_Bandwidth: m_NodeId %lu ulBandwidth %lu hr %lx\n", m_NodeId, ulBandwidth, hr);
217#endif
218
219 return hr;
220}
@ KSPROPERTY_BDA_RF_TUNER_BANDWIDTH
Definition: bdamedia.h:277
Definition: bufpool.h:45
union node Node
Definition: types.h:1255
#define swprintf
Definition: precomp.h:40
const GUID KSPROPSETID_BdaFrequencyFilter
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
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)
#define L(x)
Definition: ntvdm.h:50
HRESULT hr
Definition: shlfolder.c:183
Definition: ks.h:2074
uint32_t ULONG
Definition: typedefs.h:59
Definition: dlist.c:348
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ put_Frequency()

HRESULT STDMETHODCALLTYPE CBDAFrequencyFilter::put_Frequency ( ULONG  ulFrequency)

Implements IBDA_FrequencyFilter.

Definition at line 111 of file frequencyfilter.cpp.

112{
114 HRESULT hr;
115
116 // setup request
117 Node.NodeId = m_NodeId;
118 Node.Reserved = 0;
119
120 // perform request
122
123#ifdef BDAPLGIN_TRACE
124 WCHAR Buffer[100];
125 swprintf(Buffer, L"CBDAFrequencyFilter::put_Frequency: m_NodeId %lu ulFrequency %lu hr %lx\n", m_NodeId, ulFrequency, hr);
127#endif
128
129 return hr;
130}
@ KSPROPERTY_BDA_RF_TUNER_FREQUENCY
Definition: bdamedia.h:273

◆ put_FrequencyMultiplier()

HRESULT STDMETHODCALLTYPE CBDAFrequencyFilter::put_FrequencyMultiplier ( ULONG  ulMultiplier)

Implements IBDA_FrequencyFilter.

Definition at line 230 of file frequencyfilter.cpp.

231{
233 HRESULT hr;
234
235 // setup request
236 Node.NodeId = m_NodeId;
237 Node.Reserved = 0;
238
239 // perform request
241
242#ifdef BDAPLGIN_TRACE
243 WCHAR Buffer[100];
244 swprintf(Buffer, L"CBDAFrequencyFilter::put_FrequencyMultiplier: m_NodeId %lu ulMultiplier %lu hr %lx\n", m_NodeId, ulMultiplier, hr);
246#endif
247
248 return hr;
249}
@ KSPROPERTY_BDA_RF_TUNER_FREQUENCY_MULTIPLIER
Definition: bdamedia.h:278

◆ put_Polarity()

HRESULT STDMETHODCALLTYPE CBDAFrequencyFilter::put_Polarity ( Polarisation  Polarity)

Implements IBDA_FrequencyFilter.

Definition at line 141 of file frequencyfilter.cpp.

142{
144 HRESULT hr;
145
146 // setup request
147 Node.NodeId = m_NodeId;
148 Node.Reserved = 0;
149
150 // perform request
152
153#ifdef BDAPLGIN_TRACE
154 WCHAR Buffer[100];
155 swprintf(Buffer, L"CBDAFrequencyFilter::put_Polarity: m_NodeId %lu Polarity %lu hr %lx\n", m_NodeId, Polarity, hr);
157#endif
158
159 return hr;
160}
@ KSPROPERTY_BDA_RF_TUNER_POLARITY
Definition: bdamedia.h:274
Polarisation
Definition: bdatypes.h:301

◆ put_Range()

HRESULT STDMETHODCALLTYPE CBDAFrequencyFilter::put_Range ( ULONG  ulRange)

Implements IBDA_FrequencyFilter.

Definition at line 171 of file frequencyfilter.cpp.

172{
174 HRESULT hr;
175
176 // setup request
177 Node.NodeId = m_NodeId;
178 Node.Reserved = 0;
179
180 // perform request
182
183#ifdef BDAPLGIN_TRACE
184 WCHAR Buffer[100];
185 swprintf(Buffer, L"CBDAFrequencyFilter::put_Range: m_NodeId %lu ulRange %lu hr %lx\n", m_NodeId, ulRange, hr);
187#endif
188
189 return hr;
190}
@ KSPROPERTY_BDA_RF_TUNER_RANGE
Definition: bdamedia.h:275

◆ QueryInterface()

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

Definition at line 62 of file frequencyfilter.cpp.

65{
66 *Output = NULL;
67
68 if (IsEqualGUID(refiid, IID_IUnknown))
69 {
70 *Output = PVOID(this);
71 reinterpret_cast<IUnknown*>(*Output)->AddRef();
72 return NOERROR;
73 }
74
76 {
77 *Output = (IBDA_FrequencyFilter*)(this);
78 reinterpret_cast<IBDA_FrequencyFilter*>(*Output)->AddRef();
79 return NOERROR;
80 }
81
82#ifdef BDAPLGIN_TRACE
85 StringFromCLSID(refiid, &lpstr);
86 swprintf(Buffer, L"CControlNode::QueryInterface: NoInterface for %s", lpstr);
90#endif
91
92 return E_NOINTERFACE;
93}
const GUID IID_IUnknown
#define NULL
Definition: types.h:112
#define MAX_PATH
Definition: compat.h:34
HRESULT WINAPI StringFromCLSID(REFCLSID id, LPOLESTR *idstr)
Definition: compobj.c:2412
const GUID IID_IBDA_FrequencyFilter
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:442
ULONG AddRef()
static LPCSTR lpstr
Definition: font.c:51
static LPOLESTR
Definition: stg_prop.c:27
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
@ Output
Definition: arc.h:85
void * PVOID
Definition: typedefs.h:50
void WINAPI DebugBreak(void)
#define NOERROR
Definition: winerror.h:2354

◆ STDMETHODIMP_() [1/2]

CBDAFrequencyFilter::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 22 of file frequencyfilter.cpp.

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

◆ STDMETHODIMP_() [2/2]

CBDAFrequencyFilter::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 27 of file frequencyfilter.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 CBDAFrequencyFilter::m_NodeId
protected

◆ m_pProperty

IKsPropertySet* CBDAFrequencyFilter::m_pProperty
protected

◆ m_Ref

LONG CBDAFrequencyFilter::m_Ref
protected

Definition at line 55 of file frequencyfilter.cpp.

Referenced by STDMETHODIMP_().


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