/* * Copyright 2000 Perforce Software. All rights reserved. * * This file is part of Perforce - the FAST SCM System. */ /* * ChangesHelper - Utility to facilitate synchronous access to * the server to get changelist information. * * Public methods: * * ChangesHelper::ChangesHelper() - constructor takes: a file path, a ClientApi * to perform the commands with * ChangesHelper::LatestChangeNumber() - returns the latest changenumber for the * path specified. * */ class ChangesHelper : public ClientUser { public: // If maxResults = 0, it will find all the changes // ChangesHelper( ClientApi & api, const StrPtr & path, unsigned int maxResults = 0, const StrPtr * user = NULL, const StrPtr * client = NULL ); virtual ~ChangesHelper(); int HighestChangeNumber(); int LowestChangeNumber(); int Contains( unsigned int changeNumber ); // // Do not modify the result! StrDict * GetResult( unsigned int index ); unsigned int TotalResults(); int ChangeNumber( unsigned int index ); private: ClientApi * api; unsigned int maxResults; StrBuf pathSpec; StrBuf client; StrBuf user; unsigned int latestChangeNumber; StrBufDict ** results; unsigned int totalResults; virtual void OutputStat( StrDict *varList ); virtual void HandleError( Error *e ) {}; virtual void Finished() {}; StrDict ** GetResults(); } ;
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 12234 | Matt Attaway |
Rejigger P4Web project in preparation for official sunsetting The bin directory contains the last official builds of P4Web from the Perforce download site. P4Web is soon to be completely sunsetted; these builds are here for folks who don't want to build their own. To better handle the archived builds the source code has been moved into a separate src directory. |
||
//guest/perforce_software/p4web/util/changeshelper.h | |||||
#1 | 8914 | Matt Attaway | Initial add of the P4Web source code |