Update of /cvsroot/pywin32/pywin32/com/win32comext/bits/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv472/com/win32comext/bits/src
Added Files:
Tag: sidnei-bits
PyAsyncIBackgroundCopyCallback.cpp
PyAsyncIBackgroundCopyCallback.h PyIBackgroundCopyCallback.cpp
PyIBackgroundCopyCallback.h PyIBackgroundCopyError.cpp
PyIBackgroundCopyError.h PyIBackgroundCopyFile.cpp
PyIBackgroundCopyFile.h PyIBackgroundCopyJob.cpp
PyIBackgroundCopyJob.h PyIBackgroundCopyManager.cpp
PyIBackgroundCopyManager.h PyIEnumBackgroundCopyFiles.cpp
PyIEnumBackgroundCopyFiles.h PyIEnumBackgroundCopyJobs.cpp
PyIEnumBackgroundCopyJobs.h bits.cpp bits_pch.h
Log Message:
- First step at wrapping BITS
--- NEW FILE: PyAsyncIBackgroundCopyCallback.h ---
// This file declares the AsyncIBackgroundCopyCallback Interface for Python.
// Generated by makegw.py
// ---------------------------------------------------
//
// Interface Declaration
class PyAsyncIBackgroundCopyCallback : public PyIUnknown
{
public:
MAKE_PYCOM_CTOR(PyAsyncIBackgroundCopyCallback);
static AsyncIBackgroundCopyCallback *GetI(PyObject *self);
static PyComTypeObject type;
// The Python methods
static PyObject *Begin_JobTransferred(PyObject *self, PyObject *args);
static PyObject *Finish_JobTransferred(PyObject *self, PyObject *args);
static PyObject *Begin_JobError(PyObject *self, PyObject *args);
static PyObject *Finish_JobError(PyObject *self, PyObject *args);
static PyObject *Begin_JobModification(PyObject *self, PyObject *args);
static PyObject *Finish_JobModification(PyObject *self, PyObject *args);
protected:
PyAsyncIBackgroundCopyCallback(IUnknown *pdisp);
~PyAsyncIBackgroundCopyCallback();
};
--- NEW FILE: PyAsyncIBackgroundCopyCallback.cpp ---
// This file implements the AsyncIBackgroundCopyCallback Interface for Python.
// Generated by makegw.py
#include "shell_pch.h"
#include "PyAsyncIBackgroundCopyCallback.h"
// @doc - This file contains autoduck documentation
// ---------------------------------------------------
//
// Interface Implementation
PyAsyncIBackgroundCopyCallback::PyAsyncIBackgroundCopyCallback(IUnknown *pdisp):
PyIUnknown(pdisp)
{
ob_type = &type;
}
PyAsyncIBackgroundCopyCallback::~PyAsyncIBackgroundCopyCallback()
{
}
/* static */ AsyncIBackgroundCopyCallback *PyAsyncIBackgroundCopyCallback::GetI(PyObject *self)
{
return (AsyncIBackgroundCopyCallback *)PyIUnknown::GetI(self);
}
// @pymethod |PyAsyncIBackgroundCopyCallback|Begin_JobTransferred|Description of Begin_JobTransferred.
PyObject *PyAsyncIBackgroundCopyCallback::Begin_JobTransferred(PyObject *self, PyObject *args)
{
AsyncIBackgroundCopyCallback *pAIBCC = GetI(self);
if ( pAIBCC == NULL )
return NULL;
// @pyparm <o PyIBackgroundCopyJob *>|pJob||Description for pJob
PyObject *obpJob;
IBackgroundCopyJob * * pJob;
if ( !PyArg_ParseTuple(args, "O:Begin_JobTransferred", &obpJob) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyCom_InterfaceFromPyInstanceOrObject(obpJob, IID_IBackgroundCopyJob *, (void **)&pJob, TRUE /* bNoneOK */))
bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pAIBCC->Begin_JobTransferred( *pJob );
if (pJob) pJob->Release();
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pAIBCC, IID_AsyncIBackgroundCopyCallback );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyAsyncIBackgroundCopyCallback|Finish_JobTransferred|Description of Finish_JobTransferred.
PyObject *PyAsyncIBackgroundCopyCallback::Finish_JobTransferred(PyObject *self, PyObject *args)
{
AsyncIBackgroundCopyCallback *pAIBCC = GetI(self);
if ( pAIBCC == NULL )
return NULL;
if ( !PyArg_ParseTuple(args, ":Finish_JobTransferred") )
return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pAIBCC->Finish_JobTransferred( );
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pAIBCC, IID_AsyncIBackgroundCopyCallback );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyAsyncIBackgroundCopyCallback|Begin_JobError|Description of Begin_JobError.
PyObject *PyAsyncIBackgroundCopyCallback::Begin_JobError(PyObject *self, PyObject *args)
{
AsyncIBackgroundCopyCallback *pAIBCC = GetI(self);
if ( pAIBCC == NULL )
return NULL;
// @pyparm <o PyIBackgroundCopyJob *>|pJob||Description for pJob
// @pyparm <o PyIBackgroundCopyError *>|pError||Description for pError
PyObject *obpJob;
PyObject *obpError;
IBackgroundCopyJob * * pJob;
IBackgroundCopyError * * pError;
if ( !PyArg_ParseTuple(args, "OO:Begin_JobError", &obpJob, &obpError) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyCom_InterfaceFromPyInstanceOrObject(obpJob, IID_IBackgroundCopyJob *, (void **)&pJob, TRUE /* bNoneOK */))
bPythonIsHappy = FALSE;
if (bPythonIsHappy && !PyCom_InterfaceFromPyInstanceOrObject(obpError, IID_IBackgroundCopyError *, (void **)&pError, TRUE /* bNoneOK */))
bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pAIBCC->Begin_JobError( *pJob, *pError );
if (pJob) pJob->Release();
if (pError) pError->Release();
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pAIBCC, IID_AsyncIBackgroundCopyCallback );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyAsyncIBackgroundCopyCallback|Finish_JobError|Description of Finish_JobError.
PyObject *PyAsyncIBackgroundCopyCallback::Finish_JobError(PyObject *self, PyObject *args)
{
AsyncIBackgroundCopyCallback *pAIBCC = GetI(self);
if ( pAIBCC == NULL )
return NULL;
if ( !PyArg_ParseTuple(args, ":Finish_JobError") )
return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pAIBCC->Finish_JobError( );
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pAIBCC, IID_AsyncIBackgroundCopyCallback );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyAsyncIBackgroundCopyCallback|Begin_JobModification|Description of Begin_JobModification.
PyObject *PyAsyncIBackgroundCopyCallback::Begin_JobModification(PyObject *self, PyObject *args)
{
AsyncIBackgroundCopyCallback *pAIBCC = GetI(self);
if ( pAIBCC == NULL )
return NULL;
// @pyparm <o PyIBackgroundCopyJob *>|pJob||Description for pJob
// @pyparm int|dwReserved||Description for dwReserved
PyObject *obpJob;
IBackgroundCopyJob * * pJob;
DWORD dwReserved;
if ( !PyArg_ParseTuple(args, "Ol:Begin_JobModification", &obpJob, &dwReserved) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyCom_InterfaceFromPyInstanceOrObject(obpJob, IID_IBackgroundCopyJob *, (void **)&pJob, TRUE /* bNoneOK */))
bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pAIBCC->Begin_JobModification( *pJob, dwReserved );
if (pJob) pJob->Release();
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pAIBCC, IID_AsyncIBackgroundCopyCallback );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyAsyncIBackgroundCopyCallback|Finish_JobModification|Description of Finish_JobModification.
PyObject *PyAsyncIBackgroundCopyCallback::Finish_JobModification(PyObject *self, PyObject *args)
{
AsyncIBackgroundCopyCallback *pAIBCC = GetI(self);
if ( pAIBCC == NULL )
return NULL;
if ( !PyArg_ParseTuple(args, ":Finish_JobModification") )
return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pAIBCC->Finish_JobModification( );
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pAIBCC, IID_AsyncIBackgroundCopyCallback );
Py_INCREF(Py_None);
return Py_None;
}
// @object PyAsyncIBackgroundCopyCallback|Description of the interface
static struct PyMethodDef PyAsyncIBackgroundCopyCallback_methods[] =
{
{ "Begin_JobTransferred", PyAsyncIBackgroundCopyCallback::Begin_JobTransferred, 1 }, // @pymeth Begin_JobTransferred|Description of Begin_JobTransferred
{ "Finish_JobTransferred", PyAsyncIBackgroundCopyCallback::Finish_JobTransferred, 1 }, // @pymeth Finish_JobTransferred|Description of Finish_JobTransferred
{ "Begin_JobError", PyAsyncIBackgroundCopyCallback::Begin_JobError, 1 }, // @pymeth Begin_JobError|Description of Begin_JobError
{ "Finish_JobError", PyAsyncIBackgroundCopyCallback::Finish_JobError, 1 }, // @pymeth Finish_JobError|Description of Finish_JobError
{ "Begin_JobModification", PyAsyncIBackgroundCopyCallback::Begin_JobModification, 1 }, // @pymeth Begin_JobModification|Description of Begin_JobModification
{ "Finish_JobModification", PyAsyncIBackgroundCopyCallback::Finish_JobModification, 1 }, // @pymeth Finish_JobModification|Description of Finish_JobModification
{ NULL }
};
PyComTypeObject PyAsyncIBackgroundCopyCallback::type("PyAsyncIBackgroundCopyCallback",
&PyIUnknown::type,
sizeof(PyAsyncIBackgroundCopyCallback),
PyAsyncIBackgroundCopyCallback_methods,
GET_PYCOM_CTOR(PyAsyncIBackgroundCopyCallback));
--- NEW FILE: PyIEnumBackgroundCopyJobs.cpp ---
// This file implements the IEnumBackgroundCopyJobs Interface for Python.
// Generated by makegw.py
#include "PyIEnumBackgroundCopyJobs.h"
// @doc - This file contains autoduck documentation
// ---------------------------------------------------
//
// Interface Implementation
PyIEnumBackgroundCopyJobs::PyIEnumBackgroundCopyJobs(IUnknown *pdisp):
PyIUnknown(pdisp)
{
ob_type = &type;
}
PyIEnumBackgroundCopyJobs::~PyIEnumBackgroundCopyJobs()
{
}
/* static */ IEnumBackgroundCopyJobs *PyIEnumBackgroundCopyJobs::GetI(PyObject *self)
{
return (IEnumBackgroundCopyJobs *)PyIUnknown::GetI(self);
}
// @pymethod object|PyIEnumBackgroundCopyJobs|Next|Retrieves a specified number of items in the enumeration sequence.
PyObject *PyIEnumBackgroundCopyJobs::Next(PyObject *self, PyObject *args)
{
long celt = 1;
// @pyparm int|num|1|Number of items to retrieve.
if ( !PyArg_ParseTuple(args, "|l:Next", &celt) )
return NULL;
IEnumBackgroundCopyJobs *pIEnumBackgroundCopyJobs = GetI(self);
if ( pIEnumBackgroundCopyJobs == NULL )
return NULL;
IBackgroundCopyJob **rgVar = new IBackgroundCopyJob *[celt];
if ( rgVar == NULL ) {
PyErr_SetString(PyExc_MemoryError, "allocating result BackgroundCopyJobss");
return NULL;
}
int i;
/* for ( i = celt; i--; )
// *** possibly init each structure element???
*/
ULONG celtFetched = 0;
PY_INTERFACE_PRECALL;
HRESULT hr = pIEnumBackgroundCopyJobs->Next(celt, rgVar, &celtFetched);
PY_INTERFACE_POSTCALL;
if ( HRESULT_CODE(hr) != ERROR_NO_MORE_ITEMS && FAILED(hr) )
{
delete [] rgVar;
return PyCom_BuildPyException(hr, pIEnumBackgroundCopyJobs, IID_IEnumBackgroundCopyJobs);
}
PyObject *result = PyTuple_New(celtFetched);
if ( result != NULL )
{
for ( i = celtFetched; i--; )
{
PyObject *ob = PyCom_PyObjectFromIUnknown(rgVar[i], IID_IBackgroundCopyJob, FALSE);
if ( ob == NULL )
{
Py_DECREF(result);
result = NULL;
break;
}
PyTuple_SET_ITEM(result, i, ob);
}
}
/* for ( i = celtFetched; i--; )
// *** possibly cleanup each structure element???
*/
delete [] rgVar;
return result;
}
// @pymethod |PyIEnumBackgroundCopyJobs|Skip|Skips over the next specified elementes.
PyObject *PyIEnumBackgroundCopyJobs::Skip(PyObject *self, PyObject *args)
{
long celt;
if ( !PyArg_ParseTuple(args, "l:Skip", &celt) )
return NULL;
IEnumBackgroundCopyJobs *pIEnumBackgroundCopyJobs = GetI(self);
if ( pIEnumBackgroundCopyJobs == NULL )
return NULL;
PY_INTERFACE_PRECALL;
HRESULT hr = pIEnumBackgroundCopyJobs->Skip(celt);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIEnumBackgroundCopyJobs, IID_IEnumBackgroundCopyJobs);
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIEnumBackgroundCopyJobs|Reset|Resets the enumeration sequence to the beginning.
PyObject *PyIEnumBackgroundCopyJobs::Reset(PyObject *self, PyObject *args)
{
if ( !PyArg_ParseTuple(args, ":Reset") )
return NULL;
IEnumBackgroundCopyJobs *pIEnumBackgroundCopyJobs = GetI(self);
if ( pIEnumBackgroundCopyJobs == NULL )
return NULL;
PY_INTERFACE_PRECALL;
HRESULT hr = pIEnumBackgroundCopyJobs->Reset();
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIEnumBackgroundCopyJobs, IID_IEnumBackgroundCopyJobs);
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod <o PyIEnumBackgroundCopyJobs>|PyIEnumBackgroundCopyJobs|Clone|Creates another enumerator that contains the same enumeration state as the current one
PyObject *PyIEnumBackgroundCopyJobs::Clone(PyObject *self, PyObject *args)
{
if ( !PyArg_ParseTuple(args, ":Clone") )
return NULL;
IEnumBackgroundCopyJobs *pIEnumBackgroundCopyJobs = GetI(self);
if ( pIEnumBackgroundCopyJobs == NULL )
return NULL;
IEnumBackgroundCopyJobs *pClone;
PY_INTERFACE_PRECALL;
HRESULT hr = pIEnumBackgroundCopyJobs->Clone(&pClone);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIEnumBackgroundCopyJobs, IID_IEnumBackgroundCopyJobs);
return PyCom_PyObjectFromIUnknown(pClone, IID_IEnumBackgroundCopyJobs, FALSE);
}
// @object PyIEnumBackgroundCopyJobs|A Python interface to IEnumBackgroundCopyJobs
static struct PyMethodDef PyIEnumBackgroundCopyJobs_methods[] =
{
{ "Next", PyIEnumBackgroundCopyJobs::Next, 1 }, // @pymeth Next|Retrieves a specified number of items in the enumeration sequence.
{ "Skip", PyIEnumBackgroundCopyJobs::Skip, 1 }, // @pymeth Skip|Skips over the next specified elementes.
{ "Reset", PyIEnumBackgroundCopyJobs::Reset, 1 }, // @pymeth Reset|Resets the enumeration sequence to the beginning.
{ "Clone", PyIEnumBackgroundCopyJobs::Clone, 1 }, // @pymeth Clone|Creates another enumerator that contains the same enumeration state as the current one.
{ NULL }
};
PyComTypeObject PyIEnumBackgroundCopyJobs::type("PyIEnumBackgroundCopyJobs",
&PyIUnknown::type,
sizeof(PyIEnumBackgroundCopyJobs),
PyIEnumBackgroundCopyJobs_methods,
GET_PYCOM_CTOR(PyIEnumBackgroundCopyJobs));
--- NEW FILE: PyIBackgroundCopyManager.cpp ---
// This file implements the IBackgroundCopyManager Interface for Python.
// Generated by makegw.py
#include "bits_pch.h"
#include "PyIBackgroundCopyManager.h"
// @doc - This file contains autoduck documentation
// ---------------------------------------------------
//
// Interface Implementation
PyIBackgroundCopyManager::PyIBackgroundCopyManager(IUnknown *pdisp):
PyIUnknown(pdisp)
{
ob_type = &type;
}
PyIBackgroundCopyManager::~PyIBackgroundCopyManager()
{
}
/* static */ IBackgroundCopyManager *PyIBackgroundCopyManager::GetI(PyObject *self)
{
return (IBackgroundCopyManager *)PyIUnknown::GetI(self);
}
// @pymethod |PyIBackgroundCopyManager|CreateJob|Description of CreateJob.
PyObject *PyIBackgroundCopyManager::CreateJob(PyObject *self, PyObject *args)
{
IBackgroundCopyManager *pIBCM = GetI(self);
if ( pIBCM == NULL )
return NULL;
// @pyparm <o unicode>|DisplayName||Description for DisplayName
BG_JOB_TYPE Type;
// PyObject *obType;
// @pyparm int|Type||Job Type (See BG_JOB_TYPE_*)
GUID pJobId;
PyObject *obDisplayName;
LPWSTR DisplayName;
IBackgroundCopyJob * ppJob;
if ( !PyArg_ParseTuple(args, "Ol:CreateJob", &obDisplayName, &Type) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyWinObject_AsBstr(obDisplayName, &DisplayName)) bPythonIsHappy = FALSE;
//if (bPythonIsHappy && !PyObject_AsBG_JOB_TYPE( obType, Type )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCM->CreateJob( DisplayName, Type, &pJobId, &ppJob );
SysFreeString(DisplayName);
// PyObject_FreeBG_JOB_TYPE(Type);
// PyObject_FreeGUID *(pJobId);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCM, IID_IBackgroundCopyManager );
PyObject *obppJob;
obppJob = PyCom_PyObjectFromIUnknown(ppJob, IID_IBackgroundCopyJob, FALSE);
PyObject *pyretval = Py_BuildValue("O", obppJob);
Py_XDECREF(obppJob);
return pyretval;
}
// @pymethod |PyIBackgroundCopyManager|GetJob|Description of GetJob.
PyObject *PyIBackgroundCopyManager::GetJob(PyObject *self, PyObject *args)
{
IBackgroundCopyManager *pIBCM = GetI(self);
if ( pIBCM == NULL )
return NULL;
// @pyparm <o PyIID>|jobID||Description for jobID
PyObject *objobID;
IID jobID;
IBackgroundCopyJob * ppJob;
if ( !PyArg_ParseTuple(args, "O:GetJob", &objobID) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (!PyWinObject_AsIID(objobID, &jobID)) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCM->GetJob( jobID, &ppJob );
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCM, IID_IBackgroundCopyManager );
PyObject *obppJob;
obppJob = PyCom_PyObjectFromIUnknown(ppJob, IID_IBackgroundCopyJob, FALSE);
PyObject *pyretval = Py_BuildValue("O", obppJob);
Py_XDECREF(obppJob);
return pyretval;
}
// @pymethod |PyIBackgroundCopyManager|EnumJobs|Description of EnumJobs.
PyObject *PyIBackgroundCopyManager::EnumJobs(PyObject *self, PyObject *args)
{
IBackgroundCopyManager *pIBCM = GetI(self);
if ( pIBCM == NULL )
return NULL;
// @pyparm int|dwFlags||Description for dwFlags
DWORD dwFlags;
IEnumBackgroundCopyJobs * ppEnum;
if ( !PyArg_ParseTuple(args, "l:EnumJobs", &dwFlags) )
return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCM->EnumJobs( dwFlags, &ppEnum );
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCM, IID_IBackgroundCopyManager );
PyObject *obppEnum;
obppEnum = PyCom_PyObjectFromIUnknown(ppEnum, IID_IEnumBackgroundCopyJobs, FALSE);
PyObject *pyretval = Py_BuildValue("O", obppEnum);
Py_XDECREF(obppEnum);
return pyretval;
}
// @pymethod |PyIBackgroundCopyManager|GetErrorDescription|Description of GetErrorDescription.
PyObject *PyIBackgroundCopyManager::GetErrorDescription(PyObject *self, PyObject *args)
{
IBackgroundCopyManager *pIBCM = GetI(self);
if ( pIBCM == NULL )
return NULL;
// @pyparm int|hResult||Description for hResult
// @pyparm int|LanguageId||Description for LanguageId
WCHAR* pszErrorDescription;
PyObject *obpErrorDescription;
HRESULT hResult;
DWORD LanguageId;
if ( !PyArg_ParseTuple(args, "ll:GetErrorDescription", &hResult, &LanguageId) )
return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCM->GetErrorDescription( hResult, LanguageId, &pszErrorDescription );
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCM, IID_IBackgroundCopyManager );
obpErrorDescription = PyWinObject_FromWCHAR(pszErrorDescription);
return obpErrorDescription;
}
// @object PyIBackgroundCopyManager|Description of the interface
static struct PyMethodDef PyIBackgroundCopyManager_methods[] =
{
{ "CreateJob", PyIBackgroundCopyManager::CreateJob, 1 }, // @pymeth CreateJob|Description of CreateJob
{ "GetJob", PyIBackgroundCopyManager::GetJob, 1 }, // @pymeth GetJob|Description of GetJob
{ "EnumJobs", PyIBackgroundCopyManager::EnumJobs, 1 }, // @pymeth EnumJobs|Description of EnumJobs
{ "GetErrorDescription", PyIBackgroundCopyManager::GetErrorDescription, 1 }, // @pymeth GetErrorDescription|Description of GetErrorDescription
{ NULL }
};
PyComTypeObject PyIBackgroundCopyManager::type("PyIBackgroundCopyManager",
&PyIUnknown::type,
sizeof(PyIBackgroundCopyManager),
PyIBackgroundCopyManager_methods,
GET_PYCOM_CTOR(PyIBackgroundCopyManager));
--- NEW FILE: PyIBackgroundCopyError.cpp ---
// This file implements the IBackgroundCopyError Interface for Python.
// Generated by makegw.py
#include "shell_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;
// *** The input argument pContext of type "BG_ERROR_CONTEXT *" was not processed ***
// Please check the conversion function is appropriate and exists!
BG_ERROR_CONTEXT * pContext;
PyObject *obpContext;
// @pyparm <o PyBG_ERROR_CONTEXT *>|pContext||Description for pContext
// *** The input argument pCode of type "HRESULT *" was not processed ***
// Please check the conversion function is appropriate and exists!
HRESULT * pCode;
PyObject *obpCode;
// @pyparm <o PyHRESULT *>|pCode||Description for pCode
if ( !PyArg_ParseTuple(args, "OO:GetError", &obpContext, &obpCode) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyObject_AsBG_ERROR_CONTEXT *( obpContext, &pContext )) bPythonIsHappy = FALSE;
if (bPythonIsHappy && !PyObject_AsHRESULT *( obpCode, &pCode )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCE->GetError( pContext, pCode );
PyObject_FreeBG_ERROR_CONTEXT *(pContext);
PyObject_FreeHRESULT *(pCode);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCE, IID_IBackgroundCopyError );
// *** The output argument pContext of type "BG_ERROR_CONTEXT *" was not processed ***
// The type 'BG_ERROR_CONTEXT *' (pContext) is unknown.
// *** The output argument pCode of type "HRESULT *" was not processed ***
// The type 'HRESULT *' (pCode) is unknown.
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
// *** The input argument pErrorDescription of type "LPWSTR *" was not processed ***
// Please check the conversion function is appropriate and exists!
LPWSTR * pErrorDescription;
PyObject *obpErrorDescription;
// @pyparm <o PyLPWSTR *>|pErrorDescription||Description for pErrorDescription
DWORD LanguageId;
if ( !PyArg_ParseTuple(args, "lO:GetErrorDescription", &LanguageId, &obpErrorDescription) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyObject_AsLPWSTR *( obpErrorDescription, &pErrorDescription )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCE->GetErrorDescription( LanguageId, pErrorDescription );
PyObject_FreeLPWSTR *(pErrorDescription);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCE, IID_IBackgroundCopyError );
// *** The output argument pErrorDescription of type "LPWSTR *" was not processed ***
// The type 'LPWSTR *' (pErrorDescription) is unknown.
Py_INCREF(Py_None);
return Py_None;
}
// @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
// *** The input argument pContextDescription of type "LPWSTR *" was not processed ***
// Please check the conversion function is appropriate and exists!
LPWSTR * pContextDescription;
PyObject *obpContextDescription;
// @pyparm <o PyLPWSTR *>|pContextDescription||Description for pContextDescription
DWORD LanguageId;
if ( !PyArg_ParseTuple(args, "lO:GetErrorContextDescription", &LanguageId, &obpContextDescription) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyObject_AsLPWSTR *( obpContextDescription, &pContextDescription )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCE->GetErrorContextDescription( LanguageId, pContextDescription );
PyObject_FreeLPWSTR *(pContextDescription);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCE, IID_IBackgroundCopyError );
// *** The output argument pContextDescription of type "LPWSTR *" was not processed ***
// The type 'LPWSTR *' (pContextDescription) is unknown.
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyError|GetProtocol|Description of GetProtocol.
PyObject *PyIBackgroundCopyError::GetProtocol(PyObject *self, PyObject *args)
{
IBackgroundCopyError *pIBCE = GetI(self);
if ( pIBCE == NULL )
return NULL;
// *** The input argument pProtocol of type "LPWSTR *" was not processed ***
// Please check the conversion function is appropriate and exists!
LPWSTR * pProtocol;
PyObject *obpProtocol;
// @pyparm <o PyLPWSTR *>|pProtocol||Description for pProtocol
if ( !PyArg_ParseTuple(args, "O:GetProtocol", &obpProtocol) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyObject_AsLPWSTR *( obpProtocol, &pProtocol )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCE->GetProtocol( pProtocol );
PyObject_FreeLPWSTR *(pProtocol);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCE, IID_IBackgroundCopyError );
// *** The output argument pProtocol of type "LPWSTR *" was not processed ***
// The type 'LPWSTR *' (pProtocol) is unknown.
Py_INCREF(Py_None);
return Py_None;
}
// @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));
--- NEW FILE: PyIEnumBackgroundCopyFiles.h ---
// This file declares the IEnumBackgroundCopyFiles Interface for Python.
// Generated by makegw.py
// ---------------------------------------------------
//
// Interface Declaration
#include "Bits.h"
#include "PythonCOM.h"
class PyIEnumBackgroundCopyFiles : public PyIUnknown
{
public:
MAKE_PYCOM_CTOR(PyIEnumBackgroundCopyFiles);
static IEnumBackgroundCopyFiles *GetI(PyObject *self);
static PyComTypeObject type;
// The Python methods
static PyObject *Next(PyObject *self, PyObject *args);
static PyObject *Skip(PyObject *self, PyObject *args);
static PyObject *Reset(PyObject *self, PyObject *args);
static PyObject *Clone(PyObject *self, PyObject *args);
static PyObject *GetCount(PyObject *self, PyObject *args);
protected:
PyIEnumBackgroundCopyFiles(IUnknown *pdisp);
~PyIEnumBackgroundCopyFiles();
};
--- NEW FILE: PyIBackgroundCopyFile.h ---
// This file declares the IBackgroundCopyFile Interface for Python.
// Generated by makegw.py
// ---------------------------------------------------
//
// Interface Declaration
#include "Bits.h"
#include "PythonCOM.h"
class PyIBackgroundCopyFile : public PyIUnknown
{
public:
MAKE_PYCOM_CTOR(PyIBackgroundCopyFile);
static IBackgroundCopyFile *GetI(PyObject *self);
static PyComTypeObject type;
// The Python methods
static PyObject *GetRemoteName(PyObject *self, PyObject *args);
static PyObject *GetLocalName(PyObject *self, PyObject *args);
static PyObject *GetProgress(PyObject *self, PyObject *args);
protected:
PyIBackgroundCopyFile(IUnknown *pdisp);
~PyIBackgroundCopyFile();
};
--- NEW FILE: bits_pch.h ---
// bits_pch.h : header file for PCH generation for the BITS COM extension
#include <Bits.h>
#include <Python.h>
#include <PythonCOM.h>
BOOL PyObject_AsULONG(PyObject *ob, ULONG *ul);
void PyObject_FreeULONG(ULONG *ul);
BOOL PyObject_AsULONG_LIST(PyObject *ob, ULONG **ul);
void PyObject_FreeULONG_LIST(ULONG *ul);
BOOL PyObject_AsWCHAR_LIST(PyObject *ob, WCHAR **wch);
void PyObject_FreeWCHAR_LIST(WCHAR *wch);
BOOL PyObject_AsconstWCHAR_LIST(PyObject *ob, const WCHAR **wch);
void PyObject_FreeconstWCHAR_LIST(const WCHAR *wch);
BOOL PyObject_AsGUID(PyObject *ob, GUID *guid);
void PyObject_FreeGUID(GUID *guid);
BOOL PyObject_AsLPWSTR(PyObject *ob, LPWSTR *lpw);
void PyObject_FreeLPWSTR(LPWSTR *lpw);
BOOL PyObject_AsLPWSTR_LIST(PyObject *ob, LPWSTR **lpw);
void PyObject_FreeLPWSTR_LIST(LPWSTR *lpw);
BOOL PyObject_AsBG_FILE_INFO(PyObject *ob, BG_FILE_INFO *fi);
void PyObject_FreeBG_FILE_INFO(BG_FILE_INFO *fi);
BOOL PyObject_AsBG_FILE_INFO_LIST(PyObject *ob, BG_FILE_INFO **fi);
void PyObject_FreeBG_FILE_INFO_LIST(BG_FILE_INFO *fi);
BOOL PyObject_AsBG_FILE_PROGRESS(PyObject *ob, BG_FILE_PROGRESS *fi);
void PyObject_FreeBG_FILE_PROGRESS(BG_FILE_PROGRESS *fi);
BOOL PyObject_AsBG_FILE_PROGRESS_LIST(PyObject *ob, BG_FILE_PROGRESS **fi);
void PyObject_FreeBG_FILE_PROGRESS_LIST(BG_FILE_PROGRESS *fi);
BOOL PyObject_AsBG_JOB_STATE(PyObject *ob, BG_JOB_STATE *js);
void PyObject_FreeBG_JOB_STATE(BG_JOB_STATE *js);
BOOL PyObject_AsBG_JOB_STATE_LIST(PyObject *ob, BG_JOB_STATE **js);
void PyObject_FreeBG_JOB_STATE_LIST(BG_JOB_STATE *js);
BOOL PyObject_AsBG_JOB_PROGRESS(PyObject *ob, BG_JOB_PROGRESS *jp);
void PyObject_FreeBG_JOB_PROGRESS(BG_JOB_PROGRESS *jp);
BOOL PyObject_AsBG_JOB_PROGRESS_LIST(PyObject *ob, BG_JOB_PROGRESS **jp);
void PyObject_FreeBG_JOB_PROGRESS_LIST(BG_JOB_PROGRESS *jp);
BOOL PyObject_AsBG_JOB_TYPE(PyObject *ob, BG_JOB_TYPE *jt);
void PyObject_FreeBG_JOB_TYPE(BG_JOB_TYPE *jt);
BOOL PyObject_AsBG_JOB_TYPE_LIST(PyObject *ob, BG_JOB_TYPE **jt);
void PyObject_FreeBG_JOB_TYPE_LIST(BG_JOB_TYPE *jt);
BOOL PyObject_AsBG_JOB_TIMES(PyObject *ob, BG_JOB_TIMES *jt);
void PyObject_FreeBG_JOB_TIMES(BG_JOB_TIMES *jt);
BOOL PyObject_AsBG_JOB_TIMES_LIST(PyObject *ob, BG_JOB_TIMES **jt);
void PyObject_FreeBG_JOB_TIMES_LIST(BG_JOB_TIMES *jt);
BOOL PyObject_AsBG_JOB_PRIORITY(PyObject *ob, BG_JOB_PRIORITY *jp);
void PyObject_FreeBG_JOB_PRIORITY(BG_JOB_PRIORITY jp);
BOOL PyObject_AsBG_JOB_PRIORITY_LIST(PyObject *ob, BG_JOB_PRIORITY **jp);
void PyObject_FreeBG_JOB_PRIORITY_LIST(BG_JOB_PRIORITY *jp);
BOOL PyObject_AsBG_JOB_PROXY_USAGE(PyObject *ob, BG_JOB_PROXY_USAGE *jp);
void PyObject_FreeBG_JOB_PROXY_USAGE(BG_JOB_PROXY_USAGE jp);
BOOL PyObject_AsBG_JOB_PROXY_USAGE_LIST(PyObject *ob, BG_JOB_PROXY_USAGE **jp);
void PyObject_FreeBG_JOB_PROXY_USAGE_LIST(BG_JOB_PROXY_USAGE *jp);
--- NEW FILE: PyIBackgroundCopyJob.h ---
// This file declares the IBackgroundCopyJob Interface for Python.
// Generated by makegw.py
// ---------------------------------------------------
//
// Interface Declaration
#include "Bits.h"
#include "PythonCOM.h"
class PyIBackgroundCopyJob : public PyIUnknown
{
public:
MAKE_PYCOM_CTOR(PyIBackgroundCopyJob);
static IBackgroundCopyJob *GetI(PyObject *self);
static PyComTypeObject type;
// The Python methods
static PyObject *AddFileSet(PyObject *self, PyObject *args);
static PyObject *AddFile(PyObject *self, PyObject *args);
static PyObject *EnumFiles(PyObject *self, PyObject *args);
static PyObject *Suspend(PyObject *self, PyObject *args);
static PyObject *Resume(PyObject *self, PyObject *args);
static PyObject *Cancel(PyObject *self, PyObject *args);
static PyObject *Complete(PyObject *self, PyObject *args);
static PyObject *GetId(PyObject *self, PyObject *args);
static PyObject *GetType(PyObject *self, PyObject *args);
static PyObject *GetProgress(PyObject *self, PyObject *args);
static PyObject *GetTimes(PyObject *self, PyObject *args);
static PyObject *GetState(PyObject *self, PyObject *args);
static PyObject *GetError(PyObject *self, PyObject *args);
static PyObject *GetOwner(PyObject *self, PyObject *args);
static PyObject *SetDisplayName(PyObject *self, PyObject *args);
static PyObject *GetDisplayName(PyObject *self, PyObject *args);
static PyObject *SetDescription(PyObject *self, PyObject *args);
static PyObject *GetDescription(PyObject *self, PyObject *args);
static PyObject *SetPriority(PyObject *self, PyObject *args);
static PyObject *GetPriority(PyObject *self, PyObject *args);
static PyObject *SetNotifyFlags(PyObject *self, PyObject *args);
static PyObject *GetNotifyFlags(PyObject *self, PyObject *args);
static PyObject *SetNotifyInterface(PyObject *self, PyObject *args);
static PyObject *GetNotifyInterface(PyObject *self, PyObject *args);
static PyObject *SetMinimumRetryDelay(PyObject *self, PyObject *args);
static PyObject *GetMinimumRetryDelay(PyObject *self, PyObject *args);
static PyObject *SetNoProgressTimeout(PyObject *self, PyObject *args);
static PyObject *GetNoProgressTimeout(PyObject *self, PyObject *args);
static PyObject *GetErrorCount(PyObject *self, PyObject *args);
static PyObject *SetProxySettings(PyObject *self, PyObject *args);
static PyObject *GetProxySettings(PyObject *self, PyObject *args);
static PyObject *TakeOwnership(PyObject *self, PyObject *args);
protected:
PyIBackgroundCopyJob(IUnknown *pdisp);
~PyIBackgroundCopyJob();
};
--- NEW FILE: PyIBackgroundCopyJob.cpp ---
// This file implements the IBackgroundCopyJob Interface for Python.
// Generated by makegw.py
#include "bits_pch.h"
#include "PyIBackgroundCopyJob.h"
// @doc - This file contains autoduck documentation
// ---------------------------------------------------
//
// Interface Implementation
PyIBackgroundCopyJob::PyIBackgroundCopyJob(IUnknown *pdisp):
PyIUnknown(pdisp)
{
ob_type = &type;
}
PyIBackgroundCopyJob::~PyIBackgroundCopyJob()
{
}
/* static */ IBackgroundCopyJob *PyIBackgroundCopyJob::GetI(PyObject *self)
{
return (IBackgroundCopyJob *)PyIUnknown::GetI(self);
}
// @pymethod |PyIBackgroundCopyJob|AddFileSet|Description of AddFileSet.
PyObject *PyIBackgroundCopyJob::AddFileSet(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// @pyparm int|cFileCount||Description for cFileCount
// *** The input argument pFileSet of type "BG_FILE_INFO *" was not processed ***
// Please check the conversion function is appropriate and exists!
BG_FILE_INFO *pFileSet;
PyObject *obpFileSet;
// @pyparm <o PyBG_FILE_INFO *>|pFileSet||Description for pFileSet
ULONG cFileCount;
if ( !PyArg_ParseTuple(args, "lO:AddFileSet", &cFileCount, &obpFileSet) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyObject_AsBG_FILE_INFO_LIST( obpFileSet, &pFileSet )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->AddFileSet( cFileCount, pFileSet );
PyObject_FreeBG_FILE_INFO_LIST(pFileSet);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|AddFile|Description of AddFile.
PyObject *PyIBackgroundCopyJob::AddFile(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// @pyparm <o unicode>|RemoteUrl||Description for RemoteUrl
// @pyparm <o unicode>|LocalName||Description for LocalName
PyObject *obRemoteUrl;
PyObject *obLocalName;
LPWSTR RemoteUrl;
LPWSTR LocalName;
if ( !PyArg_ParseTuple(args, "OO:AddFile", &obRemoteUrl, &obLocalName) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyWinObject_AsBstr(obRemoteUrl, &RemoteUrl)) bPythonIsHappy = FALSE;
if (bPythonIsHappy && !PyWinObject_AsBstr(obLocalName, &LocalName)) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->AddFile( RemoteUrl, LocalName );
SysFreeString(RemoteUrl);
SysFreeString(LocalName);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|EnumFiles|Description of EnumFiles.
PyObject *PyIBackgroundCopyJob::EnumFiles(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
IEnumBackgroundCopyFiles *pEnum;
if ( !PyArg_ParseTuple(args, ":EnumFiles") )
return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->EnumFiles( &pEnum );
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
PyObject *obpEnum;
obpEnum = PyCom_PyObjectFromIUnknown(pEnum, IID_IEnumBackgroundCopyFiles, FALSE);
PyObject *pyretval = Py_BuildValue("O", obpEnum);
Py_XDECREF(obpEnum);
return pyretval;
}
// @pymethod |PyIBackgroundCopyJob|Suspend|Description of Suspend.
PyObject *PyIBackgroundCopyJob::Suspend(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
if ( !PyArg_ParseTuple(args, ":Suspend") )
return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->Suspend( );
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|Resume|Description of Resume.
PyObject *PyIBackgroundCopyJob::Resume(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
if ( !PyArg_ParseTuple(args, ":Resume") )
return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->Resume( );
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|Cancel|Description of Cancel.
PyObject *PyIBackgroundCopyJob::Cancel(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
if ( !PyArg_ParseTuple(args, ":Cancel") )
return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->Cancel( );
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|Complete|Description of Complete.
PyObject *PyIBackgroundCopyJob::Complete(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
if ( !PyArg_ParseTuple(args, ":Complete") )
return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->Complete( );
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|GetId|Description of GetId.
PyObject *PyIBackgroundCopyJob::GetId(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
GUID pVal;
PyObject *obpVal;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->GetId( &pVal );
// PyObject_FreeGUID(pVal);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
obpVal = PyWinObject_FromIID(pVal);
return obpVal;
}
// @pymethod |PyIBackgroundCopyJob|GetType|Description of GetType.
PyObject *PyIBackgroundCopyJob::GetType(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// *** The input argument pVal of type "BG_JOB_TYPE *" was not processed ***
// Please check the conversion function is appropriate and exists!
BG_JOB_TYPE * pVal;
PyObject *obpVal;
// @pyparm <o PyBG_JOB_TYPE *>|pVal||Description for pVal
if ( !PyArg_ParseTuple(args, "O:GetType", &obpVal) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyObject_AsBG_JOB_TYPE_LIST( obpVal, &pVal )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->GetType( pVal );
PyObject_FreeBG_JOB_TYPE_LIST(pVal);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
// *** The output argument pVal of type "BG_JOB_TYPE *" was not processed ***
// The type 'BG_JOB_TYPE *' (pVal) is unknown.
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|GetProgress|Description of GetProgress.
PyObject *PyIBackgroundCopyJob::GetProgress(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// *** The input argument pVal of type "BG_JOB_PROGRESS *" was not processed ***
// Please check the conversion function is appropriate and exists!
BG_JOB_PROGRESS * pVal;
PyObject *obpVal;
// @pyparm <o PyBG_JOB_PROGRESS *>|pVal||Description for pVal
if ( !PyArg_ParseTuple(args, "O:GetProgress", &obpVal) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyObject_AsBG_JOB_PROGRESS_LIST( obpVal, &pVal )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->GetProgress( pVal );
PyObject_FreeBG_JOB_PROGRESS_LIST(pVal);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
// *** The output argument pVal of type "BG_JOB_PROGRESS *" was not processed ***
// The type 'BG_JOB_PROGRESS *' (pVal) is unknown.
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|GetTimes|Description of GetTimes.
PyObject *PyIBackgroundCopyJob::GetTimes(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// *** The input argument pVal of type "BG_JOB_TIMES *" was not processed ***
// Please check the conversion function is appropriate and exists!
BG_JOB_TIMES * pVal;
PyObject *obpVal;
// @pyparm <o PyBG_JOB_TIMES *>|pVal||Description for pVal
if ( !PyArg_ParseTuple(args, "O:GetTimes", &obpVal) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyObject_AsBG_JOB_TIMES_LIST( obpVal, &pVal )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->GetTimes( pVal );
PyObject_FreeBG_JOB_TIMES_LIST(pVal);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
// *** The output argument pVal of type "BG_JOB_TIMES *" was not processed ***
// The type 'BG_JOB_TIMES *' (pVal) is unknown.
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|GetState|Description of GetState.
PyObject *PyIBackgroundCopyJob::GetState(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
if ( !PyArg_ParseTuple(args, ":GetState") )
return NULL;
BG_JOB_STATE pVal;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->GetState( &pVal );
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
return PyLong_FromLong((long)pVal);
}
// @pymethod |PyIBackgroundCopyJob|GetError|Description of GetError.
PyObject *PyIBackgroundCopyJob::GetError(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
IBackgroundCopyError * ppError;
if ( !PyArg_ParseTuple(args, ":GetError") )
return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->GetError( &ppError );
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
PyObject *obppError;
obppError = PyCom_PyObjectFromIUnknown(ppError, IID_IBackgroundCopyError, FALSE);
PyObject *pyretval = Py_BuildValue("O", obppError);
Py_XDECREF(obppError);
return pyretval;
}
// @pymethod |PyIBackgroundCopyJob|GetOwner|Description of GetOwner.
PyObject *PyIBackgroundCopyJob::GetOwner(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// *** The input argument pVal of type "LPWSTR *" was not processed ***
// Please check the conversion function is appropriate and exists!
LPWSTR * pVal;
PyObject *obpVal;
// @pyparm <o PyLPWSTR *>|pVal||Description for pVal
if ( !PyArg_ParseTuple(args, "O:GetOwner", &obpVal) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyObject_AsLPWSTR_LIST( obpVal, &pVal )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->GetOwner( pVal );
PyObject_FreeLPWSTR_LIST(pVal);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
// *** The output argument pVal of type "LPWSTR *" was not processed ***
// The type 'LPWSTR *' (pVal) is unknown.
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|SetDisplayName|Description of SetDisplayName.
PyObject *PyIBackgroundCopyJob::SetDisplayName(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// @pyparm <o unicode>|Val||Description for Val
PyObject *obVal;
LPWSTR Val;
if ( !PyArg_ParseTuple(args, "O:SetDisplayName", &obVal) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyWinObject_AsBstr(obVal, &Val)) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->SetDisplayName( Val );
SysFreeString(Val);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|GetDisplayName|Description of GetDisplayName.
PyObject *PyIBackgroundCopyJob::GetDisplayName(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// *** The input argument pVal of type "LPWSTR *" was not processed ***
// Please check the conversion function is appropriate and exists!
LPWSTR * pVal;
PyObject *obpVal;
// @pyparm <o PyLPWSTR *>|pVal||Description for pVal
if ( !PyArg_ParseTuple(args, "O:GetDisplayName", &obpVal) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyObject_AsLPWSTR_LIST( obpVal, &pVal )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->GetDisplayName( pVal );
PyObject_FreeLPWSTR_LIST(pVal);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
// *** The output argument pVal of type "LPWSTR *" was not processed ***
// The type 'LPWSTR *' (pVal) is unknown.
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|SetDescription|Description of SetDescription.
PyObject *PyIBackgroundCopyJob::SetDescription(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// @pyparm <o unicode>|Val||Description for Val
PyObject *obVal;
LPWSTR Val;
if ( !PyArg_ParseTuple(args, "O:SetDescription", &obVal) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyWinObject_AsBstr(obVal, &Val)) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->SetDescription( Val );
SysFreeString(Val);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|GetDescription|Description of GetDescription.
PyObject *PyIBackgroundCopyJob::GetDescription(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// *** The input argument pVal of type "LPWSTR *" was not processed ***
// Please check the conversion function is appropriate and exists!
LPWSTR * pVal;
PyObject *obpVal;
// @pyparm <o PyLPWSTR *>|pVal||Description for pVal
if ( !PyArg_ParseTuple(args, "O:GetDescription", &obpVal) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyObject_AsLPWSTR_LIST( obpVal, &pVal )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->GetDescription( pVal );
PyObject_FreeLPWSTR_LIST(pVal);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
// *** The output argument pVal of type "LPWSTR *" was not processed ***
// The type 'LPWSTR *' (pVal) is unknown.
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|SetPriority|Description of SetPriority.
PyObject *PyIBackgroundCopyJob::SetPriority(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// *** The input argument Val of type "BG_JOB_PRIORITY" was not processed ***
// Please check the conversion function is appropriate and exists!
BG_JOB_PRIORITY Val;
PyObject *obVal;
// @pyparm <o PyBG_JOB_PRIORITY>|Val||Description for Val
if ( !PyArg_ParseTuple(args, "O:SetPriority", &obVal) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyObject_AsBG_JOB_PRIORITY( obVal, &Val )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->SetPriority( Val );
PyObject_FreeBG_JOB_PRIORITY(Val);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|GetPriority|Description of GetPriority.
PyObject *PyIBackgroundCopyJob::GetPriority(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// *** The input argument pVal of type "BG_JOB_PRIORITY *" was not processed ***
// Please check the conversion function is appropriate and exists!
BG_JOB_PRIORITY * pVal;
PyObject *obpVal;
// @pyparm <o PyBG_JOB_PRIORITY *>|pVal||Description for pVal
if ( !PyArg_ParseTuple(args, "O:GetPriority", &obpVal) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyObject_AsBG_JOB_PRIORITY_LIST( obpVal, &pVal )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->GetPriority( pVal );
PyObject_FreeBG_JOB_PRIORITY_LIST(pVal);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
// *** The output argument pVal of type "BG_JOB_PRIORITY *" was not processed ***
// The type 'BG_JOB_PRIORITY *' (pVal) is unknown.
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|SetNotifyFlags|Description of SetNotifyFlags.
PyObject *PyIBackgroundCopyJob::SetNotifyFlags(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// @pyparm int|Val||Description for Val
ULONG Val;
if ( !PyArg_ParseTuple(args, "l:SetNotifyFlags", &Val) )
return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->SetNotifyFlags( Val );
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|GetNotifyFlags|Description of GetNotifyFlags.
PyObject *PyIBackgroundCopyJob::GetNotifyFlags(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// *** The input argument pVal of type "ULONG *" was not processed ***
// Please check the conversion function is appropriate and exists!
ULONG * pVal;
PyObject *obpVal;
// @pyparm <o PyULONG *>|pVal||Description for pVal
if ( !PyArg_ParseTuple(args, "O:GetNotifyFlags", &obpVal) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyObject_AsULONG_LIST( obpVal, &pVal )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->GetNotifyFlags( pVal );
PyObject_FreeULONG_LIST(pVal);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
// *** The output argument pVal of type "ULONG *" was not processed ***
// The type 'ULONG *' (pVal) is unknown.
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|SetNotifyInterface|Description of SetNotifyInterface.
PyObject *PyIBackgroundCopyJob::SetNotifyInterface(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// @pyparm <o PyIUnknown *>|Val||Description for Val
PyObject *obVal;
IUnknown *Val;
if ( !PyArg_ParseTuple(args, "O:SetNotifyInterface", &obVal) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyCom_InterfaceFromPyInstanceOrObject(obVal, IID_IUnknown, (void **)&Val, TRUE /* bNoneOK */))
bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->SetNotifyInterface( Val );
if (Val) Val->Release();
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|GetNotifyInterface|Description of GetNotifyInterface.
PyObject *PyIBackgroundCopyJob::GetNotifyInterface(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
IUnknown * pVal;
if ( !PyArg_ParseTuple(args, ":GetNotifyInterface") )
return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->GetNotifyInterface( &pVal );
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
PyObject *obpVal;
obpVal = PyCom_PyObjectFromIUnknown(pVal, IID_IUnknown, FALSE);
PyObject *pyretval = Py_BuildValue("O", obpVal);
Py_XDECREF(obpVal);
return pyretval;
}
// @pymethod |PyIBackgroundCopyJob|SetMinimumRetryDelay|Description of SetMinimumRetryDelay.
PyObject *PyIBackgroundCopyJob::SetMinimumRetryDelay(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// @pyparm int|Seconds||Description for Seconds
ULONG Seconds;
if ( !PyArg_ParseTuple(args, "l:SetMinimumRetryDelay", &Seconds) )
return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->SetMinimumRetryDelay( Seconds );
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|GetMinimumRetryDelay|Description of GetMinimumRetryDelay.
PyObject *PyIBackgroundCopyJob::GetMinimumRetryDelay(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// *** The input argument Seconds of type "ULONG *" was not processed ***
// Please check the conversion function is appropriate and exists!
ULONG * Seconds;
PyObject *obSeconds;
// @pyparm <o PyULONG *>|Seconds||Description for Seconds
if ( !PyArg_ParseTuple(args, "O:GetMinimumRetryDelay", &obSeconds) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyObject_AsULONG_LIST( obSeconds, &Seconds )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->GetMinimumRetryDelay( Seconds );
PyObject_FreeULONG_LIST(Seconds);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
// *** The output argument Seconds of type "ULONG *" was not processed ***
// The type 'ULONG *' (Seconds) is unknown.
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|SetNoProgressTimeout|Description of SetNoProgressTimeout.
PyObject *PyIBackgroundCopyJob::SetNoProgressTimeout(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// @pyparm int|Seconds||Description for Seconds
ULONG Seconds;
if ( !PyArg_ParseTuple(args, "l:SetNoProgressTimeout", &Seconds) )
return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->SetNoProgressTimeout( Seconds );
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|GetNoProgressTimeout|Description of GetNoProgressTimeout.
PyObject *PyIBackgroundCopyJob::GetNoProgressTimeout(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// *** The input argument Seconds of type "ULONG *" was not processed ***
// Please check the conversion function is appropriate and exists!
ULONG * Seconds;
PyObject *obSeconds;
// @pyparm <o PyULONG *>|Seconds||Description for Seconds
if ( !PyArg_ParseTuple(args, "O:GetNoProgressTimeout", &obSeconds) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyObject_AsULONG_LIST( obSeconds, &Seconds )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->GetNoProgressTimeout( Seconds );
PyObject_FreeULONG_LIST(Seconds);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
// *** The output argument Seconds of type "ULONG *" was not processed ***
// The type 'ULONG *' (Seconds) is unknown.
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|GetErrorCount|Description of GetErrorCount.
PyObject *PyIBackgroundCopyJob::GetErrorCount(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// *** The input argument Errors of type "ULONG *" was not processed ***
// Please check the conversion function is appropriate and exists!
ULONG * Errors;
PyObject *obErrors;
// @pyparm <o PyULONG *>|Errors||Description for Errors
if ( !PyArg_ParseTuple(args, "O:GetErrorCount", &obErrors) )
return NULL;
BOOL bPythonIsHappy = TRUE;
if (bPythonIsHappy && !PyObject_AsULONG_LIST( obErrors, &Errors )) bPythonIsHappy = FALSE;
if (!bPythonIsHappy) return NULL;
HRESULT hr;
PY_INTERFACE_PRECALL;
hr = pIBCJ->GetErrorCount( Errors );
PyObject_FreeULONG_LIST(Errors);
PY_INTERFACE_POSTCALL;
if ( FAILED(hr) )
return PyCom_BuildPyException(hr, pIBCJ, IID_IBackgroundCopyJob );
// *** The output argument Errors of type "ULONG *" was not processed ***
// The type 'ULONG *' (Errors) is unknown.
Py_INCREF(Py_None);
return Py_None;
}
// @pymethod |PyIBackgroundCopyJob|SetProxySettings|Description of SetProxySettings.
PyObject *PyIBackgroundCopyJob::SetProxySettings(PyObject *self, PyObject *args)
{
IBackgroundCopyJob *pIBCJ = GetI(self);
if ( pIBCJ == NULL )
return NULL;
// *** The input argument ProxyUsage of type "BG_JOB_PROXY_USAGE" was not processed ***
// Please check the conversion function is appropriate and exists!
BG_JOB_PROXY_USAGE ProxyUsage;
PyObject *obProxyUsage;
// @pyparm <o PyBG_JOB_PROXY_USAGE>|ProxyUsage||Description for ProxyUsage
// *** The input argument ProxyList of type "const WCHAR *" was not processed ***
// Please check the conversion function is appropriate and exists!
const WCHAR * ProxyList;
PyObject *obProxyList;
// @pyparm <o Pyconst WCHAR *>|ProxyList||Description for ProxyList
// *** The input argument ProxyBypassList of type "const WCHAR *" was not processed ***
// Please check the conversion function is appropriate and exists!
const WCHAR * ProxyBypassList;
PyObject *obProxyBypassList;
// @pyparm <o Pyconst WCHAR *>|ProxyBypassList||Description for Pr...
[truncated message content] |