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

Public Member Functions

 AddFile (ArchiveReader &ar)
 
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 Attributes

std::unique_ptr< NS_tchar[]> mFile
 
std::unique_ptr< NS_tchar[]> mRelPath
 
bool mAdded
 
ArchiveReadermArchiveReader
 

Additional Inherited Members

- Public Attributes inherited from Action
int mProgressCost
 

Detailed Description

Definition at line 1366 of file updater.cxx.

Constructor & Destructor Documentation

◆ AddFile()

AddFile::AddFile ( ArchiveReader ar)
inline

Definition at line 1369 of file updater.cxx.

Member Function Documentation

◆ Execute()

int AddFile::Execute ( )
virtual

◆ Finish()

void AddFile::Finish ( int  status)
virtual

Implements Action.

Reimplemented in AddIfFile, and AddIfNotFile.

Definition at line 1455 of file updater.cxx.

References backup_finish(), LOG, LOG_S, mAdded, mFile, mRelPath, and NS_tremove.

Referenced by AddIfFile::Finish(), and AddIfNotFile::Finish().

◆ Parse()

int AddFile::Parse ( NS_tchar line)
virtual

Implements Action.

Reimplemented in AddIfFile, and AddIfNotFile.

Definition at line 1384 of file updater.cxx.

References get_valid_path(), line, MAXPATHLEN, mFile, mRelPath, new_absolute_path(), NS_tstrcpy, OK, and PARSE_ERROR.

Referenced by AddIfFile::Parse(), and AddIfNotFile::Parse().

◆ Prepare()

int AddFile::Prepare ( )
virtual

Implements Action.

Reimplemented in AddIfFile, and AddIfNotFile.

Definition at line 1405 of file updater.cxx.

References LOG, LOG_S, mRelPath, and OK.

Referenced by AddIfFile::Prepare(), and AddIfNotFile::Prepare().

Member Data Documentation

◆ mAdded

bool AddFile::mAdded
private

Definition at line 1379 of file updater.cxx.

Referenced by Execute(), and Finish().

◆ mArchiveReader

ArchiveReader& AddFile::mArchiveReader
private

Definition at line 1380 of file updater.cxx.

Referenced by Execute().

◆ mFile

std::unique_ptr<NS_tchar[]> AddFile::mFile
private

Definition at line 1377 of file updater.cxx.

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

◆ mRelPath

std::unique_ptr<NS_tchar[]> AddFile::mRelPath
private

Definition at line 1378 of file updater.cxx.

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


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