LibPkg
Public Member Functions | List of all members
pkg::trigger_run Class Referenceabstract

Interface to execute a trigger. More...

#include <trigger.h>

Public Member Functions

virtual ~trigger_run ()
 
virtual void run (const std::string &file_name, pkg::trigger *trigger)=0
 Run the given trigger during install/remove/upgrade. More...
 

Detailed Description

Interface to execute a trigger.

Must be provided by the front end to run the trigger scripts

Constructor & Destructor Documentation

◆ ~trigger_run()

virtual pkg::trigger_run::~trigger_run ( )
inlinevirtual

References pkg::trigger::run().

Member Function Documentation

◆ run()

virtual void pkg::trigger_run::run ( const std::string &  file_name,
pkg::trigger trigger 
)
pure virtual

Run the given trigger during install/remove/upgrade.

For a wimp program the front end should use a TaskWindow with 128K memory or equivalent.

Should callback on the trigger trigger_start_failed if the file could not be run/started trigger_log to log any output from the trigged trigger_finished when the file has finished executing

Parameters
file_namename of file to run
triggertrigger to inform of state of run

Referenced by pkg::trigger::run().


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

Reference Manual LibPkg Version 0.6.1 (28 Jan 2015)