VcsExport
Return to Introduction  Previous page  Next page
Allows the exporting of a Project and/or Users and Groups from the current repository.

Available in both TCDirectIntf and TCIntf.

Delphi (TCIntf.pas, TCDirectIntf)

function VcsExport( What: Integer; ProjectID: Cardinal; FileName: String; Progress: TImportExportProgress ): Integer;  

Parameters

Name
Description
What
What describes what to export. Can be a combination of IE_HasUsers and IE_HasArchives.
ProjectID
If a Project is being included in the export, specifies the ID of the Project. If included, What must include HasArchives.
FileName
Specifies the file to hold the exported data.
Progress
The pointer to a Feedback function that allows feedback to be reported to the calling application. Can be nil.


Return Value

Err_OK if successful or an error code indicating the error.

Exported

Since this is a wrapper function, and utilizes server-side threads, it is implemented by calling several functions. For an example of how to user these functions, check the VcsExport function call in TCIntf.pas:

function TCDVcsBeginExport( What: Integer; ProjectID: Cardinal ): Integer; stdcall;  
function TCDVcsGetExportProgress: Integer; stdcall;  
function TCDVcsGetExportResult: Integer; stdcall;  
function TCDVcsGetExportSize: Cardinal; stdcall;  
function TCDVcsGetExportData( Start: Cardinal; Size: Integer; const Stream: TStream ): Cardinal; stdcall;  
function TCDVcsEndExport: Integer; stdcall;  


 


© 1995-2018 MCN Software