Update of /cvsroot/pywin32/pywin32/com/win32comext/bits/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27538
Modified Files:
Tag: sidnei-bits
PyIBackgroundCopyError.cpp
Log Message:
fix line endings.
Index: PyIBackgroundCopyError.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/bits/src/Attic/PyIBackgroundCopyError.cpp,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** PyIBackgroundCopyError.cpp 6 Feb 2008 09:10:25 -0000 1.1.2.2
--- PyIBackgroundCopyError.cpp 7 Feb 2008 08:50:26 -0000 1.1.2.3
***************
*** 1,162 ****
! // This file implements the IBackgroundCopyError Interface for Python.
! // Generated by makegw.py
!
! #include "bits_pch.h"
! #include "PyIBackgroundCopyError.h"
!
! // @doc - This file contains autoduck documentation
! // ---------------------------------------------------
! //
! // Interface Implementation
!
! PyIBackgroundCopyError::PyIBackgroundCopyError(IUnknown *pdisp):
! PyIUnknown(pdisp)
! {
! ob_type = &type;
! }
!
! PyIBackgroundCopyError::~PyIBackgroundCopyError()
! {
! }
!
! /* static */ IBackgroundCopyError *PyIBackgroundCopyError::GetI(PyObject *self)
! {
! return (IBackgroundCopyError *)PyIUnknown::GetI(self);
! }
!
! // @pymethod |PyIBackgroundCopyError|GetError|Description of GetError.
! PyObject *PyIBackgroundCopyError::GetError(PyObject *self, PyObject *args)
! {
! IBackgroundCopyError *pIBCE = GetI(self);
! if ( pIBCE == NULL )
! return NULL;
! BG_ERROR_CONTEXT *pContext;
! PyObject *obpContext;
! HRESULT *pCode;
! PyObject *obpCode;
! if ( !PyArg_ParseTuple(args, ":GetError") )
! return NULL;
! HRESULT hr;
! PY_INTERFACE_PRECALL;
! hr = pIBCE->GetError( pContext, pCode );
!
! PY_INTERFACE_POSTCALL;
!
! if ( FAILED(hr) )
! return PyCom_BuildPyException(hr, pIBCE, IID_IBackgroundCopyError );
!
! Py_INCREF(Py_None);
! return Py_None;
!
! }
!
! // @pymethod |PyIBackgroundCopyError|GetFile|Description of GetFile.
! PyObject *PyIBackgroundCopyError::GetFile(PyObject *self, PyObject *args)
! {
! IBackgroundCopyError *pIBCE = GetI(self);
! if ( pIBCE == NULL )
! return NULL;
! IBackgroundCopyFile *pVal;
! if ( !PyArg_ParseTuple(args, ":GetFile") )
! return NULL;
! HRESULT hr;
! PY_INTERFACE_PRECALL;
! hr = pIBCE->GetFile( &pVal );
!
! PY_INTERFACE_POSTCALL;
!
! if ( FAILED(hr) )
! return PyCom_BuildPyException(hr, pIBCE, IID_IBackgroundCopyError);
! PyObject *obpVal;
!
! obpVal = PyCom_PyObjectFromIUnknown(pVal, IID_IBackgroundCopyFile, FALSE);
! PyObject *pyretval = Py_BuildValue("O", obpVal);
! Py_XDECREF(obpVal);
! return pyretval;
! }
!
! // @pymethod |PyIBackgroundCopyError|GetErrorDescription|Description of GetErrorDescription.
! PyObject *PyIBackgroundCopyError::GetErrorDescription(PyObject *self, PyObject *args)
! {
! IBackgroundCopyError *pIBCE = GetI(self);
! if ( pIBCE == NULL )
! return NULL;
! // @pyparm int|LanguageId||Description for LanguageId
! WCHAR *pErrorDescription;
! DWORD LanguageId;
! if ( !PyArg_ParseTuple(args, "l:GetErrorDescription", &LanguageId) )
! return NULL;
! HRESULT hr;
!
! PY_INTERFACE_PRECALL;
! hr = pIBCE->GetErrorDescription( LanguageId, &pErrorDescription );
! PY_INTERFACE_POSTCALL;
!
! if ( FAILED(hr) )
! return PyCom_BuildPyException(hr, pIBCE, IID_IBackgroundCopyError );
!
! PyObject *ret = PyString_FromUnicode(pErrorDescription);
! return ret;
! }
!
! // @pymethod |PyIBackgroundCopyError|GetErrorContextDescription|Description of GetErrorContextDescription.
! PyObject *PyIBackgroundCopyError::GetErrorContextDescription(PyObject *self, PyObject *args)
! {
! IBackgroundCopyError *pIBCE = GetI(self);
! if ( pIBCE == NULL )
! return NULL;
! // @pyparm int|LanguageId||Description for LanguageId
! WCHAR *pContextDescription;
! DWORD LanguageId;
! if ( !PyArg_ParseTuple(args, "l:GetErrorContextDescription", &LanguageId) )
! return NULL;
! HRESULT hr;
! PY_INTERFACE_PRECALL;
! hr = pIBCE->GetErrorContextDescription( LanguageId, &pContextDescription );
! PY_INTERFACE_POSTCALL;
!
! if ( FAILED(hr) )
! return PyCom_BuildPyException(hr, pIBCE, IID_IBackgroundCopyError );
!
! PyObject *ret = PyString_FromUnicode(pContextDescription);
! return ret;
! }
!
! // @pymethod |PyIBackgroundCopyError|GetProtocol|Description of GetProtocol.
! PyObject *PyIBackgroundCopyError::GetProtocol(PyObject *self, PyObject *args)
! {
! IBackgroundCopyError *pIBCE = GetI(self);
! if ( pIBCE == NULL )
! return NULL;
! WCHAR *pProtocol;
! if ( !PyArg_ParseTuple(args, ":GetProtocol") )
! return NULL;
! HRESULT hr;
! PY_INTERFACE_PRECALL;
! hr = pIBCE->GetProtocol( &pProtocol );
!
! PY_INTERFACE_POSTCALL;
!
! if ( FAILED(hr) )
! return PyCom_BuildPyException(hr, pIBCE, IID_IBackgroundCopyError );
!
! PyObject *ret = PyString_FromUnicode(pProtocol);
! return ret;
! }
!
! // @object PyIBackgroundCopyError|Description of the interface
! static struct PyMethodDef PyIBackgroundCopyError_methods[] =
! {
! { "GetError", PyIBackgroundCopyError::GetError, 1 }, // @pymeth GetError|Description of GetError
! { "GetFile", PyIBackgroundCopyError::GetFile, 1 }, // @pymeth GetFile|Description of GetFile
! { "GetErrorDescription", PyIBackgroundCopyError::GetErrorDescription, 1 }, // @pymeth GetErrorDescription|Description of GetErrorDescription
! { "GetErrorContextDescription", PyIBackgroundCopyError::GetErrorContextDescription, 1 }, // @pymeth GetErrorContextDescription|Description of GetErrorContextDescription
! { "GetProtocol", PyIBackgroundCopyError::GetProtocol, 1 }, // @pymeth GetProtocol|Description of GetProtocol
! { NULL }
! };
!
! PyComTypeObject PyIBackgroundCopyError::type("PyIBackgroundCopyError",
! &PyIUnknown::type,
! sizeof(PyIBackgroundCopyError),
! PyIBackgroundCopyError_methods,
! GET_PYCOM_CTOR(PyIBackgroundCopyError));
--- 1,162 ----
! // This file implements the IBackgroundCopyError Interface for Python.
! // Generated by makegw.py
!
! #include "bits_pch.h"
! #include "PyIBackgroundCopyError.h"
!
! // @doc - This file contains autoduck documentation
! // ---------------------------------------------------
! //
! // Interface Implementation
!
! PyIBackgroundCopyError::PyIBackgroundCopyError(IUnknown *pdisp):
! PyIUnknown(pdisp)
! {
! ob_type = &type;
! }
!
! PyIBackgroundCopyError::~PyIBackgroundCopyError()
! {
! }
!
! /* static */ IBackgroundCopyError *PyIBackgroundCopyError::GetI(PyObject *self)
! {
! return (IBackgroundCopyError *)PyIUnknown::GetI(self);
! }
!
! // @pymethod |PyIBackgroundCopyError|GetError|Description of GetError.
! PyObject *PyIBackgroundCopyError::GetError(PyObject *self, PyObject *args)
! {
! IBackgroundCopyError *pIBCE = GetI(self);
! if ( pIBCE == NULL )
! return NULL;
! BG_ERROR_CONTEXT *pContext;
! PyObject *obpContext;
! HRESULT *pCode;
! PyObject *obpCode;
! if ( !PyArg_ParseTuple(args, ":GetError") )
! return NULL;
! HRESULT hr;
! PY_INTERFACE_PRECALL;
! hr = pIBCE->GetError( pContext, pCode );
!
! PY_INTERFACE_POSTCALL;
!
! if ( FAILED(hr) )
! return PyCom_BuildPyException(hr, pIBCE, IID_IBackgroundCopyError );
!
! Py_INCREF(Py_None);
! return Py_None;
!
! }
!
! // @pymethod |PyIBackgroundCopyError|GetFile|Description of GetFile.
! PyObject *PyIBackgroundCopyError::GetFile(PyObject *self, PyObject *args)
! {
! IBackgroundCopyError *pIBCE = GetI(self);
! if ( pIBCE == NULL )
! return NULL;
! IBackgroundCopyFile *pVal;
! if ( !PyArg_ParseTuple(args, ":GetFile") )
! return NULL;
! HRESULT hr;
! PY_INTERFACE_PRECALL;
! hr = pIBCE->GetFile( &pVal );
!
! PY_INTERFACE_POSTCALL;
!
! if ( FAILED(hr) )
! return PyCom_BuildPyException(hr, pIBCE, IID_IBackgroundCopyError);
! PyObject *obpVal;
!
! obpVal = PyCom_PyObjectFromIUnknown(pVal, IID_IBackgroundCopyFile, FALSE);
! PyObject *pyretval = Py_BuildValue("O", obpVal);
! Py_XDECREF(obpVal);
! return pyretval;
! }
!
! // @pymethod |PyIBackgroundCopyError|GetErrorDescription|Description of GetErrorDescription.
! PyObject *PyIBackgroundCopyError::GetErrorDescription(PyObject *self, PyObject *args)
! {
! IBackgroundCopyError *pIBCE = GetI(self);
! if ( pIBCE == NULL )
! return NULL;
! // @pyparm int|LanguageId||Description for LanguageId
! WCHAR *pErrorDescription;
! DWORD LanguageId;
! if ( !PyArg_ParseTuple(args, "l:GetErrorDescription", &LanguageId) )
! return NULL;
! HRESULT hr;
!
! PY_INTERFACE_PRECALL;
! hr = pIBCE->GetErrorDescription( LanguageId, &pErrorDescription );
! PY_INTERFACE_POSTCALL;
!
! if ( FAILED(hr) )
! return PyCom_BuildPyException(hr, pIBCE, IID_IBackgroundCopyError );
!
! PyObject *ret = PyString_FromUnicode(pErrorDescription);
! return ret;
! }
!
! // @pymethod |PyIBackgroundCopyError|GetErrorContextDescription|Description of GetErrorContextDescription.
! PyObject *PyIBackgroundCopyError::GetErrorContextDescription(PyObject *self, PyObject *args)
! {
! IBackgroundCopyError *pIBCE = GetI(self);
! if ( pIBCE == NULL )
! return NULL;
! // @pyparm int|LanguageId||Description for LanguageId
! WCHAR *pContextDescription;
! DWORD LanguageId;
! if ( !PyArg_ParseTuple(args, "l:GetErrorContextDescription", &LanguageId) )
! return NULL;
! HRESULT hr;
! PY_INTERFACE_PRECALL;
! hr = pIBCE->GetErrorContextDescription( LanguageId, &pContextDescription );
! PY_INTERFACE_POSTCALL;
!
! if ( FAILED(hr) )
! return PyCom_BuildPyException(hr, pIBCE, IID_IBackgroundCopyError );
!
! PyObject *ret = PyString_FromUnicode(pContextDescription);
! return ret;
! }
!
! // @pymethod |PyIBackgroundCopyError|GetProtocol|Description of GetProtocol.
! PyObject *PyIBackgroundCopyError::GetProtocol(PyObject *self, PyObject *args)
! {
! IBackgroundCopyError *pIBCE = GetI(self);
! if ( pIBCE == NULL )
! return NULL;
! WCHAR *pProtocol;
! if ( !PyArg_ParseTuple(args, ":GetProtocol") )
! return NULL;
! HRESULT hr;
! PY_INTERFACE_PRECALL;
! hr = pIBCE->GetProtocol( &pProtocol );
!
! PY_INTERFACE_POSTCALL;
!
! if ( FAILED(hr) )
! return PyCom_BuildPyException(hr, pIBCE, IID_IBackgroundCopyError );
!
! PyObject *ret = PyString_FromUnicode(pProtocol);
! return ret;
! }
!
! // @object PyIBackgroundCopyError|Description of the interface
! static struct PyMethodDef PyIBackgroundCopyError_methods[] =
! {
! { "GetError", PyIBackgroundCopyError::GetError, 1 }, // @pymeth GetError|Description of GetError
! { "GetFile", PyIBackgroundCopyError::GetFile, 1 }, // @pymeth GetFile|Description of GetFile
! { "GetErrorDescription", PyIBackgroundCopyError::GetErrorDescription, 1 }, // @pymeth GetErrorDescription|Description of GetErrorDescription
! { "GetErrorContextDescription", PyIBackgroundCopyError::GetErrorContextDescription, 1 }, // @pymeth GetErrorContextDescription|Description of GetErrorContextDescription
! { "GetProtocol", PyIBackgroundCopyError::GetProtocol, 1 }, // @pymeth GetProtocol|Description of GetProtocol
! { NULL }
! };
!
! PyComTypeObject PyIBackgroundCopyError::type("PyIBackgroundCopyError",
! &PyIUnknown::type,
! sizeof(PyIBackgroundCopyError),
! PyIBackgroundCopyError_methods,
! GET_PYCOM_CTOR(PyIBackgroundCopyError));
|