beautypg.com

Bool scs_candelete(), Bool scs_canrename(), Bool scs_beforeget() – Adobe Dreamweaver API Reference CS5 User Manual

Page 108

background image

103

DREAMWEAVER API REFERENCE

The source control integration API

Last updated 8/27/2013

The remotePath argument is a list of remote filenames or folder paths that the user selected to indicate where the
new folder will be created.

Returns
A Boolean value:

true

if successful;

false

otherwise.

bool SCS_canDelete()

Description
This function returns whether the Delete menu item should be enabled.

Arguments
void *connectionData, const char *remotePathList[], const int numItems

The connectionData argument is a pointer to the agent’s data that passed into Dreamweaver during the

Connect()

call.

The remotePathList argument is a list of remote filenames or folder paths to delete.

The numItems argument is the number of items in each list.

Returns
A Boolean value:

true

if successful;

false

otherwise.

bool SCS_canRename()

Description
This function returns whether the Rename menu item should be enabled.

Arguments
void *connectionData, const char *remotePath

The connectionData argument is a pointer to the agent’s data that passed into Dreamweaver during the

Connect()

call.

The remotePathList argument is the remote filenames or folder paths that can be renamed.

Returns
A Boolean value:

true

if successful;

false

otherwise.

bool SCS_BeforeGet()

Description
Dreamweaver calls this function before getting or checking out one or more files. This function lets your DLL perform
one operation, such as adding a check-out 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.