Bool scs_beforeput(), Bool scs_afterget() – Adobe Dreamweaver API Reference CS5 User Manual
Page 109
104
DREAMWEAVER API REFERENCE
The source control integration API
Last updated 8/27/2013
Returns
A Boolean value:
true
if successful;
false
otherwise.
Example
To get a group of files, Dreamweaver makes calls to the DLL in the following order:
SCS_BeforeGet(connectionData);
SCS_Get(connectionData,remotePathList1,localPathList1,successList1);
SCS_Get(connectionData,remotePathList2,localPathList2,successList2);
SCS_Get(connectionData,remotePathList3,localPathList3,successList3);
SCS_AfterGet(connectionData);
bool SCS_BeforePut()
Description
Dreamweaver calls this function before putting or checking in one or more files. This function lets your DLL perform
one operation, such as adding a check-in comment, to a group of files.
Arguments
*connectionData
•
The *connectionData argument is a pointer to the agent’s data that passed into Dreamweaver during the
Connect()
call.
Returns
A Boolean value:
true
if successful;
false
otherwise.
Example
To get a group of files, Dreamweaver makes calls to the DLL in the following order:
SCS_BeforePut(connectionData);
SCS_Put(connectionData,localPathList1,remotePathList1,successList1);
SCS_Put(connectionData,localPathList2,remotePathList2,successList2);
SCS_Put(connectionData,localPathList3,remotePathList3,successList3);
SCS_AfterPut(connectionData);
bool SCS_AfterGet()
Description
Dreamweaver calls this function after getting or checking out one or more files. This function lets your DLL perform
any operation after a batch get or check out, such as creating a summary dialog box.
Arguments
*connectionData
•
The *connectionData argument is a pointer the agent’s data that passed into Dreamweaver during the
Connect()
call.
Returns
A Boolean value:
true
if successful;
false
otherwise.