PrinterObserver Class Referenceabstract

Printer Observer class.

#include <iPrinter.h>

Public Member Functions

virtual void PrinterStatusChange (std::string printerid, const dpyPrinter::PrinterStatus &status)=0
 
virtual void PrinterNewEvent (std::string printerid, const dpyPrinter::PrinterEvent &event, bool active)=0
 
virtual void PaperNewEvent (boost::system::error_code ec, const std::string &printerid, const dpyPrinter::PaperLevel &event)=0
 
virtual ~PrinterObserver ()
 Destructor.
 

Member Function Documentation

virtual void PaperNewEvent ( boost::system::error_code  ec,
const std::string &  printerid,
const dpyPrinter::PaperLevel event 
)
pure virtual

This function will be called on status changes

Parameters
printeridprinter id
eventprinter event
ecerror code
virtual void PrinterNewEvent ( std::string  printerid,
const dpyPrinter::PrinterEvent event,
bool  active 
)
pure virtual

This function will be called on status changes

Parameters
printeridprinter id
eventprinter event
activeindicates if the event has been activated or deactivated
virtual void PrinterStatusChange ( std::string  printerid,
const dpyPrinter::PrinterStatus status 
)
pure virtual

This function will be called on status changes

Parameters
printeridprinter id
statusprinter status