LibreOffice Module onlineupdate (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
PatchFile Class Reference
Inheritance diagram for PatchFile:
[legend]
Collaboration diagram for PatchFile:
[legend]

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_tcharmPatchFile
 
std::unique_ptr< NS_tcharmFile
 
std::unique_ptr< NS_tcharmFileRelPath
 
int mPatchIndex
 
MBSPatchHeader header
 
unsigned char * buf
 
NS_tchar spath [MAXPATHLEN]
 
AutoFile mPatchStream
 
ArchiveReadermArchiveReader
 

Static Private Attributes

static int sPatchIndex = 0
 

Additional Inherited Members

- Public Attributes inherited from Action
int mProgressCost
 

Detailed Description

Definition at line 1465 of file updater.cxx.

Constructor & Destructor Documentation

◆ PatchFile()

PatchFile::PatchFile ( ArchiveReader ar)
inline

Definition at line 1468 of file updater.cxx.

◆ ~PatchFile()

PatchFile::~PatchFile ( )
virtual

Definition at line 1495 of file updater.cxx.

References buf, mPatchStream, NS_tremove, and spath.

Member Function Documentation

◆ Execute()

int PatchFile::Execute ( )
virtual

◆ Finish()

void PatchFile::Finish ( int  status)
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().

◆ LoadSourceFile()

int PatchFile::LoadSourceFile ( FILE ofile)
private

◆ Parse()

int PatchFile::Parse ( NS_tchar line)
virtual

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().

◆ Prepare()

int PatchFile::Prepare ( )
virtual

Member Data Documentation

◆ buf

unsigned char* PatchFile::buf
private

Definition at line 1487 of file updater.cxx.

Referenced by Execute(), LoadSourceFile(), and ~PatchFile().

◆ header

MBSPatchHeader PatchFile::header
private

Definition at line 1486 of file updater.cxx.

Referenced by Execute(), and LoadSourceFile().

◆ mArchiveReader

ArchiveReader& PatchFile::mArchiveReader
private

Definition at line 1490 of file updater.cxx.

Referenced by Prepare().

◆ mFile

std::unique_ptr<NS_tchar> PatchFile::mFile
private

Definition at line 1483 of file updater.cxx.

Referenced by Execute(), Finish(), and Parse().

◆ mFileRelPath

std::unique_ptr<NS_tchar> PatchFile::mFileRelPath
private

Definition at line 1484 of file updater.cxx.

Referenced by Execute(), Finish(), LoadSourceFile(), Parse(), and Prepare().

◆ mPatchFile

const NS_tchar* PatchFile::mPatchFile
private

Definition at line 1482 of file updater.cxx.

Referenced by Parse(), and Prepare().

◆ mPatchIndex

int PatchFile::mPatchIndex
private

Definition at line 1485 of file updater.cxx.

Referenced by Prepare().

◆ mPatchStream

AutoFile PatchFile::mPatchStream
private

Definition at line 1489 of file updater.cxx.

Referenced by Execute(), Prepare(), and ~PatchFile().

◆ sPatchIndex

int PatchFile::sPatchIndex = 0
staticprivate

Definition at line 1480 of file updater.cxx.

Referenced by Prepare().

◆ spath

NS_tchar PatchFile::spath[MAXPATHLEN]
private

Definition at line 1488 of file updater.cxx.

Referenced by Execute(), Prepare(), and ~PatchFile().


The documentation for this class was generated from the following file: