#ifndef FS_FILEWRITER_SYNC_H #define FS_FILEWRITER_SYNC_H #include "filewriter.h" class FileWriterSync : public FileWriter { public: static FileWriterSync* GetFileWriter(const std::string& inName, long long inFileSize); static void Finalize(); virtual bool Open(bool inWriteable, int inModTime); virtual bool Close(); virtual void GetWriteBuffer(unsigned char*& outBuf, int& outLength); virtual bool ReleaseWriteBuffer(int inRemainingLength); virtual bool IsFinished() { return mHandle == INVALID_HANDLE_VALUE; } virtual void HandleAbort(); virtual bool ChModTime(int inModTime); private : FileWriterSync(const std::string& inName, long long inFileSize); bool Flush(); HANDLE mHandle; int mLength; static unsigned char* mBuffer; }; #endif
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 6420 | Frank Compagner |
A number of improvements: - p4fs now supports the global -s (scripted output) option. - p4fs and P4fsV now support the modtime client option. - P4CHARSET is now correctly handled (though no full Unicode support yet). - Increased the maximum command line length for p4fs to the Windows maximum 32768. - Improved error handling. - Fixed a crash when cancelling a sync using the async or multithreaded writers. - P4fsV progressbar now behaves well when passing more than one filespec - P4fsV will now offer the option to overwrite any locally changed (but not checked out) files when it finds these during a sync (cannot clobber ...). - Made the P4fsV error dialog resizeable. - P4fsV Windows layout fixed so it works properly with all Windows style setings. - Ooh, and prettier icons too. |
||
#2 | 6280 | Frank Compagner | Added support for +w filetype | ||
#1 | 6187 | Frank Compagner | Added p4fs project |