Naughter Software Logo

BITSWrappers v1.04 A set of C++ classes to provide a complete encapsulation of the BITS (Background Intelligent Transfer Service) API for Windows

The classes provided are: BITS::CManager, BITS::CJob, BITS::CJob2, BITS::CJob3, BITS::CJob4, BITS::CJob5, BITS::CFile, BITS::CFile2, BITS::CFile3, BITS::CFile4, BITS::CJobHttpOptions, BITS::CTokenOptions, BITS::CCallback, BITS::CError, BITS::String, BITS::FilesArray, BITS::JobsArray, BITS::FileRangeArray & BITS::ByteArray.

CManager is the class wrapper for IBackgroundCopyManager.

CJob is the class wrapper for IBackgroundCopyJob.

CJob2 is the class wrapper for IBackgroundCopyJob2.

CJob3 is the class wrapper for IBackgroundCopyJob3.

CJob4 is the class wrapper for IBackgroundCopyJob4.

CJob5 is the class wrapper for IBackgroundCopyJob5.

CFile is the class wrapper for IBackgroundCopyFile.

CFile2 is the class wrapper for IBackgroundCopyFile2.

CFile3 is the class wrapper for IBackgroundCopyFile3.

CFile4 is the class wrapper for IBackgroundCopyFile4.

CJobHttpOptions is the class wrapper for IBackgroundCopyJobOptions.

CTokenOptions is the class wrapper for IBitsTokenOptions.

CCallback is the class wrapper for using IBackgroundCopyCallback. To use this class just call CJob::SetNotifyInterface. For an example see the code in test.cpp

CError is the class wrapper for IBackgroundCopyError.

String derives from either CStringW if the classes are using MFC or std::wstring if using STL.

FilesArray derives from either CArray<CFile..> if the classes are using MFC or std::vector<CFile> if using STL. This collection class is used in the CJob::EnumFiles method.

JobsArray derives from either CArray<CJob..> if the classes are using MFC or std::vector<CJob> if using STL. This collection class is used in the CManager::EnumJobs method.

FileRangeArray derives from either CArray<BG_FILE_RANGE..> if the classes are using MFC or std::vector<BG_FILE_RANGE> if using STL. This collection class is used in the CFile2::GetFileRanges method.

ByteArray derives from either CByteArray if the classes are using MFC or std::vector<BYTE> if using STL. This collection class is used in the CJob2::GetReplyData and CJobHttpOptions::GetClientCertificate methods.

 

 

Features

 

The enclosed zip file contains the BITSWrappers source code and a VC 2008 console based application which demonstrates most of the classes functionality.

 

Copyright

 

Updates

V1.04 (29 April 2017)

V1.03 (15 January 2016)

V1.02 (10 August 2013)

V1.0 (6 August 2013)

V1.01 (6 August 2013)