ReactOS  0.4.15-dev-494-g1d8c567
CTuneRequest Class Reference
Inheritance diagram for CTuneRequest:
Collaboration diagram for CTuneRequest:

Public Member Functions

STDMETHODIMP QueryInterface (REFIID InterfaceId, PVOID *Interface)
 
 STDMETHODIMP_ (ULONG) AddRef()
 
 STDMETHODIMP_ (ULONG) Release()
 
HRESULT STDMETHODCALLTYPE GetTypeInfoCount (UINT *pctinfo)
 
HRESULT STDMETHODCALLTYPE GetTypeInfo (UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
HRESULT STDMETHODCALLTYPE GetIDsOfNames (REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
HRESULT STDMETHODCALLTYPE Invoke (DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
HRESULT STDMETHODCALLTYPE get_TuningSpace (ITuningSpace **TuningSpace)
 
HRESULT STDMETHODCALLTYPE get_Components (IComponents **Components)
 
HRESULT STDMETHODCALLTYPE Clone (ITuneRequest **NewTuneRequest)
 
HRESULT STDMETHODCALLTYPE get_Locator (ILocator **Locator)
 
HRESULT STDMETHODCALLTYPE put_Locator (ILocator *Locator)
 
HRESULT STDMETHODCALLTYPE get_ONID (long *ONID)
 
HRESULT STDMETHODCALLTYPE put_ONID (long ONID)
 
HRESULT STDMETHODCALLTYPE get_TSID (long *TSID)
 
HRESULT STDMETHODCALLTYPE put_TSID (long TSID)
 
HRESULT STDMETHODCALLTYPE get_SID (long *SID)
 
HRESULT STDMETHODCALLTYPE put_SID (long SID)
 
 CTuneRequest (ITuningSpace *TuningSpace)
 
 CTuneRequest (ITuningSpace *TuningSpace, LONG ONID, LONG TSID, LONG SID, ILocator *Locator)
 
virtual ~CTuneRequest ()
 
- Public Member Functions inherited from IDispatch
HRESULT RemoteInvoke ([in] DISPID dispIdMember, [in] REFIID riid, [in] LCID lcid, [in] DWORD dwFlags, [in] DISPPARAMS *pDispParams, [out] VARIANT *pVarResult, [out] EXCEPINFO *pExcepInfo, [out] UINT *pArgErr, [in] UINT cVarRef, [in, size_is(cVarRef)] UINT *rgVarRefIdx, [in, out, size_is(cVarRef)] VARIANTARG *rgVarRef)
 
- 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
 
LONG m_ONID
 
LONG m_TSID
 
LONG m_SID
 
ILocatorm_Locator
 
ITuningSpacem_TuningSpace
 

Additional Inherited Members

- Public Types inherited from IDispatch
typedef IDispatchLPDISPATCH
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 
- Public Attributes inherited from IDispatch
const DISPID DISPID_UNKNOWN = -1
 
const DISPID DISPID_VALUE = 0
 
const DISPID DISPID_PROPERTYPUT = -3
 
const DISPID DISPID_NEWENUM = -4
 
const DISPID DISPID_EVALUATE = -5
 
const DISPID DISPID_CONSTRUCTOR = -6
 
const DISPID DISPID_DESTRUCTOR = -7
 
const DISPID DISPID_COLLECT = -8
 

Detailed Description

Definition at line 11 of file tunerequest.cpp.

Constructor & Destructor Documentation

◆ CTuneRequest() [1/2]

CTuneRequest::CTuneRequest ( ITuningSpace TuningSpace)
inline

Definition at line 61 of file tunerequest.cpp.

61  : m_Ref(0), m_ONID(-1), m_TSID(-1), m_SID(-1), m_Locator(0), m_TuningSpace(TuningSpace)
62  {
64  };
ITuningSpace * m_TuningSpace
Definition: tunerequest.cpp:82
ULONG AddRef()
ILocator * m_Locator
Definition: tunerequest.cpp:81

Referenced by Clone().

◆ CTuneRequest() [2/2]

CTuneRequest::CTuneRequest ( ITuningSpace TuningSpace,
LONG  ONID,
LONG  TSID,
LONG  SID,
ILocator Locator 
)
inline

Definition at line 66 of file tunerequest.cpp.

66  : m_Ref(1), m_ONID(ONID), m_TSID(TSID), m_SID(SID), m_Locator(Locator), m_TuningSpace(TuningSpace)
67  {
68  if (m_Locator)
69  m_Locator->AddRef();
70 
72  };
ITuningSpace * m_TuningSpace
Definition: tunerequest.cpp:82
ULONG AddRef()
ILocator * m_Locator
Definition: tunerequest.cpp:81

◆ ~CTuneRequest()

virtual CTuneRequest::~CTuneRequest ( )
inlinevirtual

Definition at line 74 of file tunerequest.cpp.

74 {};

Member Function Documentation

◆ Clone()

HRESULT STDMETHODCALLTYPE CTuneRequest::Clone ( ITuneRequest **  NewTuneRequest)

Implements ITuneRequest.

Definition at line 185 of file tunerequest.cpp.

186 {
187 #ifdef MSVIDCTL_TRACE
188  WCHAR Buffer[100];
189  swprintf(Buffer, L"CTuneRequest::Clone %p\n", NewTuneRequest);
191 #endif
192 
193  *NewTuneRequest = new CTuneRequest(m_TuningSpace, m_ONID, m_TSID, m_SID, m_Locator);
194 
195  if (!*NewTuneRequest)
196  return E_OUTOFMEMORY;
197 
198  return S_OK;
199 }
ITuningSpace * m_TuningSpace
Definition: tunerequest.cpp:82
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
CTuneRequest(ITuningSpace *TuningSpace)
Definition: tunerequest.cpp:61
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define swprintf(buf, format,...)
Definition: sprintf.c:56
static const WCHAR L[]
Definition: oid.c:1250
ILocator * m_Locator
Definition: tunerequest.cpp:81
#define S_OK
Definition: intsafe.h:59

◆ get_Components()

HRESULT STDMETHODCALLTYPE CTuneRequest::get_Components ( IComponents **  Components)

Implements ITuneRequest.

Definition at line 177 of file tunerequest.cpp.

178 {
179  OutputDebugStringW(L"CTuneRequest::get_Components : NotImplemented\n");
180  return E_NOTIMPL;
181 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ get_Locator()

HRESULT STDMETHODCALLTYPE CTuneRequest::get_Locator ( ILocator **  Locator)

Implements ITuneRequest.

Definition at line 203 of file tunerequest.cpp.

204 {
205  OutputDebugStringW(L"CTuneRequest::get_Locator : NotImplemented\n");
206  return E_NOTIMPL;
207 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ get_ONID()

HRESULT STDMETHODCALLTYPE CTuneRequest::get_ONID ( long ONID)

Implements IDVBTuneRequest.

Definition at line 225 of file tunerequest.cpp.

226 {
227 #ifdef MSVIDCTL_TRACE
228  OutputDebugStringW(L"CTuneRequest::get_ONID\n");
229 #endif
230 
231  *ONID = m_ONID;
232  return S_OK;
233 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250
#define S_OK
Definition: intsafe.h:59

◆ get_SID()

HRESULT STDMETHODCALLTYPE CTuneRequest::get_SID ( long SID)

Implements IDVBTuneRequest.

Definition at line 277 of file tunerequest.cpp.

278 {
279 #ifdef MSVIDCTL_TRACE
280  OutputDebugStringW(L"CTuneRequest::get_SID\n");
281 #endif
282 
283  *SID = m_SID;
284  return S_OK;
285 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250
#define S_OK
Definition: intsafe.h:59

◆ get_TSID()

HRESULT STDMETHODCALLTYPE CTuneRequest::get_TSID ( long TSID)

Implements IDVBTuneRequest.

Definition at line 251 of file tunerequest.cpp.

252 {
253 #ifdef MSVIDCTL_TRACE
254  OutputDebugStringW(L"CTuneRequest::get_TSID\n");
255 #endif
256 
257  *TSID = m_TSID;
258  return S_OK;
259 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250
#define S_OK
Definition: intsafe.h:59

◆ get_TuningSpace()

HRESULT STDMETHODCALLTYPE CTuneRequest::get_TuningSpace ( ITuningSpace **  TuningSpace)

Implements ITuneRequest.

Definition at line 163 of file tunerequest.cpp.

164 {
165 #ifdef MSVIDCTL_TRACE
166  OutputDebugStringW(L"CTuneRequest::get_TuningSpace\n");
167 #endif
168 
169  *TuningSpace = m_TuningSpace;
171 
172  return S_OK;
173 }
ITuningSpace * m_TuningSpace
Definition: tunerequest.cpp:82
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
ULONG AddRef()
static const WCHAR L[]
Definition: oid.c:1250
#define S_OK
Definition: intsafe.h:59

◆ GetIDsOfNames()

HRESULT STDMETHODCALLTYPE CTuneRequest::GetIDsOfNames ( REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)

Implements IDispatch.

Definition at line 144 of file tunerequest.cpp.

145 {
146  OutputDebugStringW(L"CTuneRequest::GetIDsOfNames : NotImplemented\n");
147  return E_NOTIMPL;
148 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ GetTypeInfo()

HRESULT STDMETHODCALLTYPE CTuneRequest::GetTypeInfo ( UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)

Implements IDispatch.

Definition at line 137 of file tunerequest.cpp.

138 {
139  OutputDebugStringW(L"CTuneRequest::GetTypeInfo : NotImplemented\n");
140  return E_NOTIMPL;
141 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ GetTypeInfoCount()

HRESULT STDMETHODCALLTYPE CTuneRequest::GetTypeInfoCount ( UINT pctinfo)

Implements IDispatch.

Definition at line 129 of file tunerequest.cpp.

130 {
131  OutputDebugStringW(L"CTuneRequest::GetTypeInfoCount : NotImplemented\n");
132  return E_NOTIMPL;
133 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Invoke()

HRESULT STDMETHODCALLTYPE CTuneRequest::Invoke ( DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)

Implements IDispatch.

Definition at line 151 of file tunerequest.cpp.

152 {
153  OutputDebugStringW(L"CTuneRequest::Invoke : NotImplemented\n");
154  return E_NOTIMPL;
155 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ put_Locator()

HRESULT STDMETHODCALLTYPE CTuneRequest::put_Locator ( ILocator Locator)

Implements ITuneRequest.

Definition at line 211 of file tunerequest.cpp.

212 {
213  OutputDebugStringW(L"CTuneRequest::put_Locator : stub\n");
214  m_Locator = Locator;
215 
216  return S_OK;
217 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250
ILocator * m_Locator
Definition: tunerequest.cpp:81
#define S_OK
Definition: intsafe.h:59

◆ put_ONID()

HRESULT STDMETHODCALLTYPE CTuneRequest::put_ONID ( long  ONID)

Implements IDVBTuneRequest.

Definition at line 237 of file tunerequest.cpp.

238 {
239 #ifdef MSVIDCTL_TRACE
240  WCHAR Buffer[100];
241  swprintf(Buffer, L"CTuneRequest::put_ONID : %lu\n", ONID);
243 #endif
244 
245  m_ONID = ONID;
246  return S_OK;
247 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define swprintf(buf, format,...)
Definition: sprintf.c:56
static const WCHAR L[]
Definition: oid.c:1250
#define S_OK
Definition: intsafe.h:59

◆ put_SID()

HRESULT STDMETHODCALLTYPE CTuneRequest::put_SID ( long  SID)

Implements IDVBTuneRequest.

Definition at line 289 of file tunerequest.cpp.

290 {
291 #ifdef MSVIDCTL_TRACE
292  WCHAR Buffer[100];
293  swprintf(Buffer, L"CTuneRequest::put_SID : %lu\n", SID);
295 #endif
296 
297  m_SID = SID;
298  return S_OK;
299 }
struct _SID SID
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define swprintf(buf, format,...)
Definition: sprintf.c:56
static const WCHAR L[]
Definition: oid.c:1250
#define S_OK
Definition: intsafe.h:59

◆ put_TSID()

HRESULT STDMETHODCALLTYPE CTuneRequest::put_TSID ( long  TSID)

Implements IDVBTuneRequest.

Definition at line 263 of file tunerequest.cpp.

264 {
265 #ifdef MSVIDCTL_TRACE
266  WCHAR Buffer[100];
267  swprintf(Buffer, L"CTuneRequest::put_TSID : %lu\n", TSID);
269 #endif
270 
271  m_TSID = TSID;
272  return S_OK;
273 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define swprintf(buf, format,...)
Definition: sprintf.c:56
static const WCHAR L[]
Definition: oid.c:1250
#define S_OK
Definition: intsafe.h:59

◆ QueryInterface()

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

Definition at line 88 of file tunerequest.cpp.

91 {
92  if (IsEqualGUID(refiid, IID_IUnknown))
93  {
94  *Output = PVOID(this);
95  reinterpret_cast<IUnknown*>(*Output)->AddRef();
96  return NOERROR;
97  }
98 
99  if (IsEqualGUID(refiid, IID_ITuneRequest))
100  {
101  *Output = (ITuneRequest*)this;
102  reinterpret_cast<ITuneRequest*>(*Output)->AddRef();
103  return NOERROR;
104  }
105 
106  if (IsEqualGUID(refiid, IID_IDVBTuneRequest))
107  {
108  *Output = (IDVBTuneRequest*)this;
109  reinterpret_cast<IDVBTuneRequest*>(*Output)->AddRef();
110  return NOERROR;
111  }
112 
114  LPOLESTR lpstr;
115  StringFromCLSID(refiid, &lpstr);
116  swprintf(Buffer, L"CTuneRequest::QueryInterface: NoInterface for %s", lpstr);
119 
120 
121  return E_NOINTERFACE;
122 }
#define E_NOINTERFACE
Definition: winerror.h:2364
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:442
#define NOERROR
Definition: winerror.h:2354
static LPOLESTR
Definition: stg_prop.c:27
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
Definition: bufpool.h:45
void * PVOID
Definition: retypes.h:9
__wchar_t WCHAR
Definition: xmlstorage.h:180
const GUID IID_IUnknown
#define MAX_PATH
Definition: compat.h:26
#define swprintf(buf, format,...)
Definition: sprintf.c:56
static const WCHAR L[]
Definition: oid.c:1250
Definition: arc.h:85
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112
static LPCSTR lpstr
Definition: font.c:51
HRESULT WINAPI StringFromCLSID(REFCLSID id, LPOLESTR *idstr)
Definition: compobj.c:2412

◆ STDMETHODIMP_() [1/2]

CTuneRequest::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 16 of file tunerequest.cpp.

17  {
19  return m_Ref;
20  }
#define InterlockedIncrement
Definition: armddk.h:53

◆ STDMETHODIMP_() [2/2]

CTuneRequest::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 21 of file tunerequest.cpp.

22  {
24  if (!m_Ref)
25  {
26  OutputDebugStringW(L"CTuneRequest::Release : delete\n");
27 
28  WCHAR Buffer[100];
29  swprintf(Buffer, L"CTuneRequest::Release : m_TuningSpace %p delete\n", m_TuningSpace);
31 
32 
34  //delete this;
35  return 0;
36  }
37  return m_Ref;
38  }
ITuningSpace * m_TuningSpace
Definition: tunerequest.cpp:82
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
ULONG Release()
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define swprintf(buf, format,...)
Definition: sprintf.c:56
static const WCHAR L[]
Definition: oid.c:1250
#define InterlockedDecrement
Definition: armddk.h:52

Member Data Documentation

◆ m_Locator

ILocator* CTuneRequest::m_Locator
protected

Definition at line 81 of file tunerequest.cpp.

Referenced by Clone(), CTuneRequest(), and put_Locator().

◆ m_ONID

LONG CTuneRequest::m_ONID
protected

Definition at line 78 of file tunerequest.cpp.

Referenced by Clone(), get_ONID(), and put_ONID().

◆ m_Ref

LONG CTuneRequest::m_Ref
protected

Definition at line 74 of file tunerequest.cpp.

Referenced by STDMETHODIMP_().

◆ m_SID

LONG CTuneRequest::m_SID
protected

Definition at line 80 of file tunerequest.cpp.

Referenced by Clone(), get_SID(), and put_SID().

◆ m_TSID

LONG CTuneRequest::m_TSID
protected

Definition at line 79 of file tunerequest.cpp.

Referenced by Clone(), get_TSID(), and put_TSID().

◆ m_TuningSpace

ITuningSpace* CTuneRequest::m_TuningSpace
protected

Definition at line 82 of file tunerequest.cpp.

Referenced by Clone(), CTuneRequest(), get_TuningSpace(), and STDMETHODIMP_().


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