/* * Copyright 2000 Perforce Software. All rights reserved. * * This file is part of Perforce - the FAST SCM System. */ /* * FstatHelper - Utility to facilitate synchronous access to * the server to get fstat information. * * Public methods: * * FstatHelper::FstatHelper() - constructor takes: a file path, a ClientApi * to perform the commands with * FstatHelper::GetLocalPath() - get the local path in the client workspace * this returns the path to the file on the * local drive. * */ class FstatHelper : public ClientUser { public: FstatHelper( StrPtr & path, ClientApi & ); ~FstatHelper(); StrPtr * GetLocalPath(); FileSys * GetLocalFile(); FileSysType GetFileType(); StrPtr * GetAction(); int IsTextFile(); int FileTypeUnknown(); private: ClientApi * api; StrPtr pathSpec; StrDict * results; virtual void OutputStat( StrDict *varList ); virtual void Finished() {}; virtual void HandleError( Error *e ) {}; StrDict * GetResults(); FileSys * fileSys; } ;
# | 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/fstathelper.h | |||||
#1 | 8914 | Matt Attaway | Initial add of the P4Web source code |