ReactOS  0.4.14-dev-998-g623dd26
CTuningSpaceContainer Class Reference
Inheritance diagram for CTuningSpaceContainer:
Collaboration diagram for CTuningSpaceContainer:

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_Count (long *Count)
 
HRESULT STDMETHODCALLTYPE get__NewEnum (IEnumVARIANT **NewEnum)
 
HRESULT STDMETHODCALLTYPE get_Item (VARIANT varIndex, ITuningSpace **TuningSpace)
 
HRESULT STDMETHODCALLTYPE put_Item (VARIANT varIndex, ITuningSpace *TuningSpace)
 
HRESULT STDMETHODCALLTYPE TuningSpacesForCLSID (BSTR SpaceCLSID, ITuningSpaces **NewColl)
 
HRESULT STDMETHODCALLTYPE _TuningSpacesForCLSID (REFCLSID SpaceCLSID, ITuningSpaces **NewColl)
 
HRESULT STDMETHODCALLTYPE TuningSpacesForName (BSTR Name, ITuningSpaces **NewColl)
 
HRESULT STDMETHODCALLTYPE FindID (ITuningSpace *TuningSpace, long *ID)
 
HRESULT STDMETHODCALLTYPE Add (ITuningSpace *TuningSpace, VARIANT *NewIndex)
 
HRESULT STDMETHODCALLTYPE get_EnumTuningSpaces (IEnumTuningSpaces **ppEnum)
 
HRESULT STDMETHODCALLTYPE Remove (VARIANT Index)
 
HRESULT STDMETHODCALLTYPE get_MaxCount (long *MaxCount)
 
HRESULT STDMETHODCALLTYPE put_MaxCount (long MaxCount)
 
 CTuningSpaceContainer ()
 
virtual ~CTuningSpaceContainer ()
 
- 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
 

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 13 of file tuningspace_container.cpp.

Constructor & Destructor Documentation

◆ CTuningSpaceContainer()

CTuningSpaceContainer::CTuningSpaceContainer ( )
inline

Definition at line 57 of file tuningspace_container.cpp.

◆ ~CTuningSpaceContainer()

virtual CTuningSpaceContainer::~CTuningSpaceContainer ( )
inlinevirtual

Definition at line 59 of file tuningspace_container.cpp.

59 {};

Member Function Documentation

◆ _TuningSpacesForCLSID()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::_TuningSpacesForCLSID ( REFCLSID  SpaceCLSID,
ITuningSpaces **  NewColl 
)

Implements ITuningSpaceContainer.

Definition at line 178 of file tuningspace_container.cpp.

179 {
180  OutputDebugStringW(L"CTuningSpaceContainer::_TuningSpacesForCLSID : NotImplemented\n");
181  return E_NOTIMPL;
182 }
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

◆ Add()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::Add ( ITuningSpace TuningSpace,
VARIANT NewIndex 
)

Implements ITuningSpaceContainer.

Definition at line 202 of file tuningspace_container.cpp.

203 {
204  OutputDebugStringW(L"CTuningSpaceContainer::Add : stub\n");
205  TuningSpace->AddRef();
206  NewIndex->vt = VT_BSTR;
208  return TuningSpace->get_FriendlyName(&NewIndex->bstrVal);;
209 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
ULONG AddRef()
static const WCHAR L[]
Definition: oid.c:1250
#define InterlockedIncrement
Definition: armddk.h:53
HRESULT get_FriendlyName([out] BSTR *Name)
VARTYPE vt
Definition: compat.h:2030
BSTR bstrVal
Definition: compat.h:2048

◆ FindID()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::FindID ( ITuningSpace TuningSpace,
long ID 
)

Implements ITuningSpaceContainer.

Definition at line 194 of file tuningspace_container.cpp.

195 {
196  OutputDebugStringW(L"CTuningSpaceContainer::FindID : NotImplemented\n");
197  return E_NOTIMPL;
198 }
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__NewEnum()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::get__NewEnum ( IEnumVARIANT **  NewEnum)

Implements ITuningSpaceContainer.

Definition at line 143 of file tuningspace_container.cpp.

144 {
145  OutputDebugStringW(L"CTuningSpaceContainer::get__NewEnum : NotImplemented\n");
146  return E_NOTIMPL;
147 }
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_Count()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::get_Count ( long Count)

Implements ITuningSpaceContainer.

Definition at line 136 of file tuningspace_container.cpp.

137 {
138  OutputDebugStringW(L"CTuningSpaceContainer::get_Count : NotImplemented\n");
139  return E_NOTIMPL;
140 }
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_EnumTuningSpaces()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::get_EnumTuningSpaces ( IEnumTuningSpaces **  ppEnum)

Implements ITuningSpaceContainer.

Definition at line 212 of file tuningspace_container.cpp.

213 {
214  OutputDebugStringW(L"CTuningSpaceContainer::get_EnumTuningSpaces : stub\n");
215  return CEnumTuningSpaces_fnConstructor(NULL, IID_IEnumTuningSpaces, (void**)ppEnum);
216 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
smooth NULL
Definition: ftsmooth.c:416
HRESULT WINAPI CEnumTuningSpaces_fnConstructor(IUnknown *pUnknown, REFIID riid, LPVOID *ppv)
static const WCHAR L[]
Definition: oid.c:1250

◆ get_Item()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::get_Item ( VARIANT  varIndex,
ITuningSpace **  TuningSpace 
)

Implements ITuningSpaceContainer.

Definition at line 151 of file tuningspace_container.cpp.

152 {
153 #ifdef MSVIDCTL_TRACE
154  WCHAR Buffer[100];
155  swprintf(Buffer, L"CTuningSpaceContainer::get_Item : type %x value %s stub\n", varIndex.vt, varIndex.bstrVal);
157 #endif
158 
159  return CTuningSpace_fnConstructor(NULL, IID_ITuningSpace, (void**)TuningSpace);
160 }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
smooth NULL
Definition: ftsmooth.c:416
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
VARTYPE vt
Definition: compat.h:2030
BSTR bstrVal
Definition: compat.h:2048
HRESULT WINAPI CTuningSpace_fnConstructor(IUnknown *pUnknown, REFIID riid, LPVOID *ppv)

◆ get_MaxCount()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::get_MaxCount ( long MaxCount)

Implements ITuningSpaceContainer.

Definition at line 228 of file tuningspace_container.cpp.

229 {
230  OutputDebugStringW(L"CTuningSpaceContainer::get_MaxCount : NotImplemented\n");
231  return E_NOTIMPL;
232 }
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

◆ GetIDsOfNames()

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

Implements IDispatch.

Definition at line 117 of file tuningspace_container.cpp.

118 {
119  OutputDebugStringW(L"CTuningSpaceContainer::GetIDsOfNames : NotImplemented\n");
120  return E_NOTIMPL;
121 }
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 CTuningSpaceContainer::GetTypeInfo ( UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)

Implements IDispatch.

Definition at line 110 of file tuningspace_container.cpp.

111 {
112  OutputDebugStringW(L"CTuningSpaceContainer::GetTypeInfo : NotImplemented\n");
113  return E_NOTIMPL;
114 }
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 CTuningSpaceContainer::GetTypeInfoCount ( UINT pctinfo)

Implements IDispatch.

Definition at line 102 of file tuningspace_container.cpp.

103 {
104  OutputDebugStringW(L"CTuningSpaceContainer::GetTypeInfoCount : NotImplemented\n");
105  return E_NOTIMPL;
106 }
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 CTuningSpaceContainer::Invoke ( DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)

Implements IDispatch.

Definition at line 124 of file tuningspace_container.cpp.

125 {
126  OutputDebugStringW(L"CTuningSpaceContainer::Invoke : NotImplemented\n");
127  return E_NOTIMPL;
128 }
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_Item()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::put_Item ( VARIANT  varIndex,
ITuningSpace TuningSpace 
)

Implements ITuningSpaceContainer.

Definition at line 163 of file tuningspace_container.cpp.

164 {
165  OutputDebugStringW(L"CTuningSpaceContainer::put_Item : NotImplemented\n");
166  return E_NOTIMPL;
167 }
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_MaxCount()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::put_MaxCount ( long  MaxCount)

Implements ITuningSpaceContainer.

Definition at line 236 of file tuningspace_container.cpp.

237 {
238  OutputDebugStringW(L"CTuningSpaceContainer::put_MaxCount : NotImplemented\n");
239  return E_NOTIMPL;
240 }
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

◆ QueryInterface()

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

Definition at line 68 of file tuningspace_container.cpp.

71 {
72  if (IsEqualGUID(refiid, IID_IUnknown))
73  {
74  *Output = PVOID(this);
75  reinterpret_cast<IUnknown*>(*Output)->AddRef();
76  return NOERROR;
77  }
78 
79  if (IsEqualGUID(refiid, IID_ITuningSpaceContainer))
80  {
81  *Output = (ITuningSpaceContainer*)this;
82  reinterpret_cast<ITuningSpaceContainer*>(*Output)->AddRef();
83  return NOERROR;
84  }
85 
88  StringFromCLSID(refiid, &lpstr);
89  swprintf(Buffer, L"CTuningSpaceContainer::QueryInterface: NoInterface for %s", lpstr);
92 
93 
94  return E_NOINTERFACE;
95 }
#define E_NOINTERFACE
Definition: winerror.h:2364
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:420
#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

Referenced by CTuningSpaceContainer_fnConstructor().

◆ Remove()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::Remove ( VARIANT  Index)

Implements ITuningSpaceContainer.

Definition at line 220 of file tuningspace_container.cpp.

221 {
222  OutputDebugStringW(L"CTuningSpaceContainer::Remove: NotImplemented\n");
223  return E_NOTIMPL;
224 }
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

◆ STDMETHODIMP_() [1/2]

CTuningSpaceContainer::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 19 of file tuningspace_container.cpp.

20  {
22  return m_Ref;
23  }
#define InterlockedIncrement
Definition: armddk.h:53

◆ STDMETHODIMP_() [2/2]

CTuningSpaceContainer::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 24 of file tuningspace_container.cpp.

25  {
27  if (!m_Ref)
28  {
29  OutputDebugStringW(L"CTuningSpaceContainer::Release : delete\n");
30  //delete this;
31  return 0;
32  }
33  return m_Ref;
34  }
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
static const WCHAR L[]
Definition: oid.c:1250
#define InterlockedDecrement
Definition: armddk.h:52

◆ TuningSpacesForCLSID()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::TuningSpacesForCLSID ( BSTR  SpaceCLSID,
ITuningSpaces **  NewColl 
)

Implements ITuningSpaceContainer.

Definition at line 171 of file tuningspace_container.cpp.

172 {
173  OutputDebugStringW(L"CTuningSpaceContainer::TuningSpacesForCLSID : NotImplemented\n");
174  return E_NOTIMPL;
175 }
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

◆ TuningSpacesForName()

HRESULT STDMETHODCALLTYPE CTuningSpaceContainer::TuningSpacesForName ( BSTR  Name,
ITuningSpaces **  NewColl 
)

Implements ITuningSpaceContainer.

Definition at line 186 of file tuningspace_container.cpp.

187 {
188  OutputDebugStringW(L"CTuningSpaceContainer::TuningSpacesForName : NotImplemented\n");
189  return E_NOTIMPL;
190 }
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

Member Data Documentation

◆ m_Ref

LONG CTuningSpaceContainer::m_Ref
protected

Definition at line 59 of file tuningspace_container.cpp.

Referenced by Add(), and STDMETHODIMP_().


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