beautypg.com

Bool scs_getdesignnotes(), Bool scs_setdesignnotes() – Adobe Dreamweaver API Reference CS5 User Manual

Page 104

background image

99

DREAMWEAVER API REFERENCE

The source control integration API

Last updated 8/27/2013

bool SCS_GetDesignNotes()

Description
This function retrieves key-value pairs from the meta information for the specified file or folder. If it is unsupported
by the source control system, Dreamweaver retrieves the information from the companion MNO file.

Arguments
void *connectionData, const char *remotePath, char keyList[][64], char *valueList[], bool showColumnList[], const int
noteCount, const int noteLength

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

Connect()

call.

The remotePath argument is the remote file or folder path that the DLL checks for the number of items.

The keyList argument is a list of Design Note keys, such as

"Status"

.

The valueList argument is a list of Design Note values that correspond to the Design Note keys, such as

"Awaiting

Signoff"

.

The showColumnList argument is a list of Boolean values that correspond to the Design Note keys, which indicate
whether Dreamweaver can display the key as a column in the Site panel.

The noteCount argument is the number of Design Notes that are attached to a file or folder; the

GetNoteCount()

call returns this value.

The noteLength argument is the maximum length of a Design Note; this is the value that the

GetMaxNoteLength()

call returns.

Returns
A Boolean value:

true

if successful;

false

otherwise.

bool SCS_SetDesignNotes()

Description
This function stores the key-value pairs in the meta information for the specified file or folder. This replaces the set of
meta information for the file. If it is unsupported by the source control system, Dreamweaver stores Design Notes in
MNO files.

Arguments
void *connectionData, const char *remotePath, const char keyList[][64], const char *valueList[], bool showColumnList[],
const int noteCount, const int noteLength

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

Connect()

call.

The remotePath argument is the remote file or folder path that the DLL checks for the number of items.

The keyList argument is a list of Design Note keys, such as

"Status"

.

The valueList argument is a list of Design Note values that corresponds to the Design Note keys, such as

"Awaiting

Signoff"

.

The showColumnList argument is a list of Boolean values that correspond to the Design Note keys, which indicate
whether Dreamweaver can display the key as a column in the Site panel.

The noteCount argument is the number of Design Notes that are attached to a file or folder; this number lets the
DLL know the size of the specified lists. If noteCount is

0

, all the Design Notes are removed from the file.