< Day Day Up > |
The Source Control Integration API has required and optional functions. The functions in this section are optional. bool SCS_GetConnectionInfo()Description This function displays a dialog box to let the user change or set the connection information for this site. It does not make the connection. This function is called when the user clicks the Settings button in the Remote Info section of the Edit Sites dialog box. Arguments void **connectionData, const char siteName[64]
Returns A Boolean value: true if successful; false otherwise. bool SCS_SiteDeleted()Description This function notifies the DLL that the site has been deleted or that the site is no longer tied to this source control system. It indicates that the source control system can delete its persistent information for this site. Arguments const char siteName[64]
Returns A Boolean value: true if successful; false otherwise. bool SCS_SiteRenamed()Description This function notifies the DLL when the user has renamed the site so that it can update its persistent information about the site. Arguments const char oldSiteName[64], const char newSiteName[64]
Returns A Boolean value: TRue if successful; false otherwise. int SCS_GetNumNewFeatures()Description This function returns the number of new features to add to Dreamweaver (for example, File History, Differences, and so on). Arguments None. Returns An integer that indicates the number of new features to add to Dreamweaver. If the function returns < 0, Dreamweaver considers it an error and tries to retrieve the error message from the DLL, if supported. bool SCS_GetNewFeatures()Description This function returns a list of menu items to add to the Dreamweaver main and context menus. For example, the Sourcesafe DLL can add History and File Differences to the main menu. Arguments char menuItemList[][32], scFunction functionList[], scFunction enablerList[], const int numNewFeatures
The following function signature defines the functions and enablers that passed to the SCS_GetNewFeatures() call in the functionlist and enablerList arguments. bool (*scFunction)(void *connectionData, const char *remotePathList[], const char *localPathList[], const int numItems) Returns A Boolean value: true if successful; false otherwise. bool SCS_GetCheckoutName()Description This function returns the check-out name of the current user. If it is unsupported by the source control system and this feature is enabled by the user, this function uses the Dreamweaver internal Check In/Check Out functionality, which transports LCK files to and from the source control system. Arguments void *connectionData, char checkOutName[64], char emailAddress[64]
Returns A Boolean value: TRue if successful; false otherwise. bool SCS_Checkin()Description This function checks a list of local files or folders into the source control system. The DLL is responsible for making the file read-only. If it is unsupported by the source control system and this feature is enabled by the user, this function uses the Dreamweaver internal Check In/Check Out functionality, which transports LCK files to and from the source control system. Arguments void *connectionData, const char *localPathList[], const char *remotePathList[], bool successList[], const int numItems
Returns A Boolean value: true if successful; false otherwise. bool SCS_Checkout()Description This function checks out a list of local files or folders from the source control system. The DLL is responsible for granting the privileges that let the file be writable. If it is unsupported by the source control system and this feature is enabled by the user, this function uses the Dreamweaver internal Check In/Check Out functionality, which transports LCK files to and from the source control system. Arguments void *connectionData, const char *remotePathList[], const char *localPathList[], bool successList[], const int numItems
Returns A Boolean value: TRue if successful; false otherwise. bool SCS_UndoCheckout()Description This function undoes the check-out status of a list of files or folders. The DLL is responsible for making the file read-only. If it is unsupported by the source control system and this feature is enabled by the user, this function uses the Dreamweaver internal Check In/Check Out functionality, which transports LCK files to and from the source control system. Arguments void *connectionData, const char *remotePathList[], const char *localPathList[], bool successList[], const int numItems
Returns A Boolean value: true if successful; false otherwise. int SCS_GetNumCheckedOut()Description This function returns the number of users who have a file checked out. Arguments void *connectionData, const char *remotePath
Returns An integer that indicates the number of people who have the file checked out. If the function returns < 0, Dreamweaver considers it an error and tries to retrieve the error message from the DLL, if supported. bool SCS_GetFileCheckoutList()Description This function returns a list of users who have a file checked out. If the list is empty, no one has the file checked out. Arguments void *connectionData, const char *remotePath, char checkOutList[][64], char emailAddressList[][64], const int numCheckedOut
Returns A Boolean value: true if successful; false otherwise. int SCS_GetErrorMessageLength()Description This function returns the length of the DLL's current internal error message. This allocates the buffer that passes into the GetErrorMessage() function. This function should be called only if an API function returns false or <0, which indicates a failure of that API function. Arguments void *connectionData
Returns An integer that represents the length of the error message. bool SCS_GetErrorMessage()Description This function returns the last error message. If you implement getErrorMessage(), Dreamweaver calls it each time one of your API functions returns the value false. If a routine returns -1 or false, it indicates an error message should be available. Arguments void *connectionData, char errorMsg[], const int *msgLength 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. int SCS_GetNoteCount()Description This function returns the number of Design Note keys for the specified remote file or folder path. If unsupported by the source control system, Dreamweaver gets this information from the companion MNO file. Arguments void *connectionData, const char *remotePath
Returns An integer that indicates the number of Design Notes that are associated with this file. If the function returns < 0, Dreamweaver considers it an error and tries to retrieve the error message from the DLL, if supported. int SCS_GetMaxNoteLength()Description This function returns the length of the largest Design Note for the specified file or folder. If it is unsupported by the source control system, Dreamweaver gets this information from the companionMNO file. Arguments void *connectionData, const char *remotePath
Returns An integer that indicates the size of the longest Design Note that is associated with this file. If the function returns < 0, Dreamweaver considers it an error and tries to retrieve the error message from the DLL, if supported. 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 companionMNO file. Arguments void *connectionData, const char *remotePath, char keyList[][64], char *valueList[], bool showColumnList[], const int noteCount, const int noteLength
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
Returns A Boolean value: TRue if successful; false otherwise. bool SCS_IsRemoteNewer()Description This function checks each specified remote path to see if the remote copy is newer. If it is unsupported by the source control system, Dreamweaver uses its internal isRemoteNewer algorithm. Arguments void *connectionData, const char *remotePathList[], const char *localPathList[], int remoteIsNewerList[], const int numItems
Returns A Boolean value: true if successful; false otherwise. |
< Day Day Up > |