< Day Day Up > |
The Source Control Integration API has required and optional functions. The functions listed in this section are required. bool SCS_GetAgentInfo()Description This function asks the DLL to return its name and description, which appear in the Edit Sites dialog box. The name appears in the Server Access pop-up menu (for example, sourcesafe, webdav, perforce) and the description below the pop-up menu. Arguments char name[32], char version[32], char description[256], const char *dwAppVersion
Returns A Boolean value: TRue if successful; false otherwise. bool SCS_Connect()Description This function connects the user to the source control system. If the DLL does not have log-in information, the DLL must display a dialog box to prompt the user for the information and must store the data for later use. Arguments void **connectionData, const char siteName[64]
Returns A Boolean value: TRue if successful; false otherwise. bool SCS_Disconnect()Description This function disconnects the user from the source control system. Arguments void *connectionData
Returns A Boolean value: TRue if successful; false otherwise. bool SCS_IsConnected()Description This function determines the state of the connection. Arguments void *connectionData
Returns A Boolean value: TRue if successful; false otherwise. int SCS_GetRootFolderLength()Description This function returns the length of the name of the root folder. Arguments void *connectionData
Returns An integer that indicates the length of the name of the root folder. If the function returns < 0, Dreamweaver considers it an error and tries to retrieve the error message from the DLL, if supported. bool SCS_GetRootFolder()Description This function returns the name of the root folder. Arguments void *connectionData, char remotePath[], const int folderLen
Returns A Boolean value: TRue if successful; false otherwise. int SCS_GetFolderListLength()Description This function returns the number of items in the passed-in folder. Arguments void *connectionData, const char *remotePath
Returns An integer that indicates the number of items in the current folder. If the function returns < 0, Dreamweaver considers it an error and tries to retrieve the error message from the DLL, if supported. bool SCS_GetFolderList()Description This function returns a list of files and folders in the passed-in folder, including pertinent information such as modified date, size, and whether the item is a folder or file. Arguments void *connectionData, const char *remotePath, itemInfo itemList[ ], const int numItems
Returns A Boolean value: TRue if successful; false otherwise. bool SCS_Get()Description This function gets a list of files or folders and stores them locally. Arguments void *connectionData, const char *remotePathList[], const char *localPathList[], const int numItems
Returns A Boolean value: true if successful; false otherwise. bool SCS_Put()Description This function puts a list of local files or folders into the source control system. Arguments void *connectionData, const char *localPathList[], const char *remotePathList[], const int numItems
Returns A Boolean value: TRue if successful; false otherwise. bool SCS_NewFolder()Description This function creates a new folder. Arguments void *connectionData, const char *remotePath
Returns A Boolean value: TRue if successful; false otherwise. bool SCS_Delete()Description This function deletes a list of files or folders from the source control system. Arguments void *connectionData, const char *remotePathList[], const int numItems
Returns A Boolean value: true if successful; false otherwise. bool SCS_Rename()Description This function renames or moves a file or folder, depending on the values that are specified for oldRemotePath and newRemotePath. For example, if oldRemotePath equals "$/folder1/file1" and newRemotePath equals "$/folder1/renamefile1", file1 is renamed renamefile1 and is located in folder1. If oldRemotePath equals "$/folder1/file1" and newRemotePath equals "$/folder1/subfolder1/file1", file1 is moved to the subfolder1 folder. To find out if an invocation of this function is a move or a rename, check the parent paths of the two input values; if they are the same, the operation is a rename. Arguments void *connectionData, const char *oldRemotePath, const char *newRemotePath
Returns A Boolean value: TRue if successful; false otherwise. bool SCS_ItemExists()Description This function determines whether a file or folder exists on the server. Arguments void *connectionData, const char *remotePath
Returns A Boolean value: true if successful; false otherwise. |
< Day Day Up > |