MiKTeX 26.5-next
A scalable TeX distribution
Loading...
Searching...
No Matches
MiKTeX::Setup::SetupServiceCallback Class Referenceabstract

Callback interface. More...

#include <C:/build-miktex/next/source/Libraries/MiKTeX/Setup/include/miktex/Setup/SetupService.h>

Public Member Functions

virtual void ReportLine (const std::string &str)=0
virtual bool OnRetryableError (const std::string &message)=0
virtual bool OnProgress (Notification nf)=0
virtual bool OnProcessOutput (const void *output, size_t n)=0

Detailed Description

Callback interface.

Member Function Documentation

◆ OnProcessOutput()

virtual bool MiKTeX::Setup::SetupServiceCallback::OnProcessOutput ( const void * output,
size_t n )
pure virtual

Output function. Called by the Process object if new output text is available.

Parameters
outputOutput text bytes.
nNumber of output text bytes.
Returns
Returns true, of the Process object shall continue.

◆ OnProgress()

virtual bool MiKTeX::Setup::SetupServiceCallback::OnProgress ( Notification nf)
pure virtual

Progress. This method is called by the installer if new progress information is available. Also gives the opportunity to abort all activities.

Parameters
nfNotification code.
Returns
Returns true, if the installer shall continue.

◆ OnRetryableError()

virtual bool MiKTeX::Setup::SetupServiceCallback::OnRetryableError ( const std::string & message)
pure virtual

Error handling. This method is called by the installer if a problem was detected which can be remedied by the user.

Parameters
lpszMessageMessage to be presented to the user.
Returns
Returns true, if the user has fixed the problem.

◆ ReportLine()

virtual void MiKTeX::Setup::SetupServiceCallback::ReportLine ( const std::string & str)
pure virtual

Reporting. This method is called by the installer if a new message is available.

Parameters
lpszLineOne-line message.

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