Update of /cvsroot/pywin32/pywin32/com/TestSources/PyCOMTest
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29099/TestSources/PyCOMTest
Modified Files:
PyCOMImpl.cpp PyCOMImpl.h PyCOMTest.idl
Log Message:
add a property that takes a param to the test suite.
Index: PyCOMTest.idl
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/TestSources/PyCOMTest/PyCOMTest.idl,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** PyCOMTest.idl 7 Feb 2007 23:12:30 -0000 1.14
--- PyCOMTest.idl 11 Feb 2007 12:39:05 -0000 1.15
***************
*** 248,251 ****
--- 248,254 ----
[propget] HRESULT CurrencyProp([out, retval] CY* retval);
[propput] HRESULT CurrencyProp([in] CY val);
+ [propget] HRESULT ParamProp([in] int which, [out, retval] int *retval);
+ [propput] HRESULT ParamProp([in] int which, [in]int val);
+ // reserved words etc
HRESULT None();
HRESULT def();
***************
*** 276,280 ****
// Test enum in and byref params.
HRESULT TestDerived([in] QsAttribute inval, [out, retval] QsAttribute* retval);
-
};
// The event interface.
--- 279,282 ----
Index: PyCOMImpl.h
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/TestSources/PyCOMTest/PyCOMImpl.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** PyCOMImpl.h 7 Feb 2007 23:12:30 -0000 1.13
--- PyCOMImpl.h 11 Feb 2007 12:39:05 -0000 1.14
***************
*** 102,105 ****
--- 102,107 ----
STDMETHOD(get_CurrencyProp)(CY *ret);
STDMETHOD(put_CurrencyProp)(CY val);
+ STDMETHOD(get_ParamProp)(int which, int *ret2);
+ STDMETHOD(put_ParamProp)(int which, int val);
STDMETHOD(None)();
***************
*** 124,127 ****
--- 126,130 ----
unsigned long m_ulong;
CY m_cy;
+ int m_paramprop1, m_paramprop2;
};
Index: PyCOMImpl.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/TestSources/PyCOMTest/PyCOMImpl.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** PyCOMImpl.cpp 7 Feb 2007 23:12:30 -0000 1.14
--- PyCOMImpl.cpp 11 Feb 2007 12:39:05 -0000 1.15
***************
*** 682,685 ****
--- 682,702 ----
}
+ HRESULT CPyCOMTest::get_ParamProp(int which, int *ret)
+ {
+ if (!ret)
+ return E_POINTER;
+ *ret = which==0 ? m_paramprop1 : m_paramprop2;
+ return S_OK;
+ }
+
+ HRESULT CPyCOMTest::put_ParamProp(int which, int val)
+ {
+ if (which==0)
+ m_paramprop1 = val;
+ else
+ m_paramprop2 = val;
+ return S_OK;
+ }
+
HRESULT CPyCOMTest::None()
{
|