LibreOffice Module onlineupdate (master) 1
|
Public Member Functions | |
PatchFile (ArchiveReader &ar) | |
virtual | ~PatchFile () |
virtual int | Parse (NS_tchar *line) |
virtual int | Prepare () |
virtual int | Execute () |
virtual void | Finish (int status) |
Public Member Functions inherited from Action | |
Action () | |
virtual | ~Action () |
virtual int | Parse (NS_tchar *line)=0 |
virtual int | Prepare ()=0 |
virtual int | Execute ()=0 |
virtual void | Finish (int status)=0 |
Private Member Functions | |
int | LoadSourceFile (FILE *ofile) |
Private Attributes | |
const NS_tchar * | mPatchFile |
std::unique_ptr< NS_tchar > | mFile |
std::unique_ptr< NS_tchar > | mFileRelPath |
int | mPatchIndex |
MBSPatchHeader | header |
unsigned char * | buf |
NS_tchar | spath [MAXPATHLEN] |
AutoFile | mPatchStream |
ArchiveReader & | mArchiveReader |
Static Private Attributes | |
static int | sPatchIndex = 0 |
Additional Inherited Members | |
Public Attributes inherited from Action | |
int | mProgressCost |
Definition at line 1465 of file updater.cxx.
|
inline |
Definition at line 1468 of file updater.cxx.
|
virtual |
Definition at line 1495 of file updater.cxx.
References buf, mPatchStream, NS_tremove, and spath.
|
virtual |
Implements Action.
Reimplemented in PatchIfFile.
Definition at line 1644 of file updater.cxx.
References backup_create(), buf, MBSPatchHeader_::dlen, ensure_open(), FILE, header, LoadSourceFile(), LOG, LOG_S, MBS_ApplyPatch(), MBS_ReadHeader(), mFile, mFileRelPath, mPatchStream, NS_T, NS_tfopen, NS_tremove, NS_tstat, NS_tstat_t, NS_tstrcmp, READ_ERROR, spath, and WRITE_ERROR_OPEN_PATCH_FILE.
Referenced by PatchIfFile::Execute().
|
virtual |
Implements Action.
Reimplemented in PatchIfFile.
Definition at line 1787 of file updater.cxx.
References backup_finish(), LOG, LOG_S, mFile, and mFileRelPath.
Referenced by PatchIfFile::Finish().
Definition at line 1517 of file updater.cxx.
References buf, count, crc32(), CRC_ERROR, FILE, header, LOADSOURCE_ERROR_WRONG_SIZE, LOG, LOG_S, mFileRelPath, OK, READ_ERROR, MBSPatchHeader_::scrc32, MBSPatchHeader_::slen, SSIZE_MAX, and UPDATER_MEM_ERROR.
Referenced by Execute().
Implements Action.
Reimplemented in PatchIfFile.
Definition at line 1571 of file updater.cxx.
References get_valid_path(), kQuote, line, MAXPATHLEN, mFile, mFileRelPath, mPatchFile, mstrtok(), new_absolute_path(), NS_tstrcpy, OK, and PARSE_ERROR.
Referenced by PatchIfFile::Parse().
|
virtual |
Implements Action.
Reimplemented in PatchIfFile.
Definition at line 1601 of file updater.cxx.
References ArchiveReader::ExtractFileToStream(), gWorkingDirPath, LOG, LOG_S, mArchiveReader, MAXPATHLEN, mFileRelPath, mPatchFile, mPatchIndex, mPatchStream, NS_T, NS_tfopen, NS_tremove, NS_tsnprintf, sPatchIndex, spath, STRING_CONVERSION_ERROR, and WRITE_ERROR.
Referenced by PatchIfFile::Prepare().
|
private |
Definition at line 1487 of file updater.cxx.
Referenced by Execute(), LoadSourceFile(), and ~PatchFile().
|
private |
Definition at line 1486 of file updater.cxx.
Referenced by Execute(), and LoadSourceFile().
|
private |
Definition at line 1490 of file updater.cxx.
Referenced by Prepare().
|
private |
Definition at line 1483 of file updater.cxx.
|
private |
Definition at line 1484 of file updater.cxx.
Referenced by Execute(), Finish(), LoadSourceFile(), Parse(), and Prepare().
|
private |
Definition at line 1482 of file updater.cxx.
|
private |
Definition at line 1485 of file updater.cxx.
Referenced by Prepare().
|
private |
Definition at line 1489 of file updater.cxx.
Referenced by Execute(), Prepare(), and ~PatchFile().
|
staticprivate |
Definition at line 1480 of file updater.cxx.
Referenced by Prepare().
|
private |
Definition at line 1488 of file updater.cxx.
Referenced by Execute(), Prepare(), and ~PatchFile().