Home | History | Annotate | Download | only in Common
      1 // WorkDir.h
      2 
      3 #ifndef __WORK_DIR_H
      4 #define __WORK_DIR_H
      5 
      6 #include "../../../Windows/FileDir.h"
      7 
      8 #include "../../Common/FileStreams.h"
      9 
     10 #include "ZipRegistry.h"
     11 
     12 FString GetWorkDir(const NWorkDir::CInfo &workDirInfo, const FString &path, FString &fileName);
     13 
     14 class CWorkDirTempFile
     15 {
     16   FString _originalPath;
     17   NWindows::NFile::NDir::CTempFile _tempFile;
     18   COutFileStream *_outStreamSpec;
     19 public:
     20   CMyComPtr<IOutStream> OutStream;
     21 
     22   HRESULT CreateTempFile(const FString &originalPath);
     23   HRESULT MoveToOriginal(bool deleteOriginal);
     24 };
     25 
     26 #endif
     27