MiKTeX 23.10-next
A scalable TeX distribution
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MiKTeX::Core::IFindFileCallback Class Referenceabstract

Find file callback interface. More...

#include <miktex/Core/Session.h>

Inheritance diagram for MiKTeX::Core::IFindFileCallback:
Inheritance graph
[legend]

Public Member Functions

virtual bool InstallPackage (const std::string &packageId, const MiKTeX::Util::PathName &trigger, MiKTeX::Util::PathName &installRoot)=0
 
virtual bool TryCreateFile (const MiKTeX::Util::PathName &fileName, FileType fileType)=0
 

Detailed Description

Find file callback interface.

Member Function Documentation

◆ InstallPackage()

virtual bool MiKTeX::Core::IFindFileCallback::InstallPackage ( const std::string &  packageId,
const MiKTeX::Util::PathName trigger,
MiKTeX::Util::PathName installRoot 
)
pure virtual

Installs a package.

Parameters
packageIdIdentifies the package.
triggerFile name that triggered the auto-installer.
[out]installRootInstallation root directory.
Returns
Returns true, if the package has been installed.

Implemented in MiKTeX::App::Application.

◆ TryCreateFile()

virtual bool MiKTeX::Core::IFindFileCallback::TryCreateFile ( const MiKTeX::Util::PathName fileName,
FileType  fileType 
)
pure virtual

Tries to create a file.

Parameters
fileNameName of the file to create.
fileTypeType of the file.
Returns
Returns true, if the file has been created.

Implemented in MiKTeX::App::Application.


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