IPrinter Class Referenceabstract
Abstract class which implements all the minimum necessary logic which all printer must have.
#include <iPrinter.h>
Public Member Functions | |
const std::string & | getPrinterid () const |
virtual boost::system::error_code | printImage (const std::string &uri, std::list< PrintConfig > configs, boost::shared_ptr< IJob > &job)=0 |
virtual boost::system::error_code | printHtml (const std::string &uri, std::list< PrintConfig > configs, boost::shared_ptr< IJob > &job)=0 |
virtual boost::system::error_code | getJobList (std::list< boost::shared_ptr< IJob >> &jobList)=0 |
virtual boost::system::error_code | getDefaultconfiguration (std::list< PrintConfig > &configs)=0 |
virtual boost::system::error_code | setDefaultconfiguration (const PrintConfig &printConfig)=0 |
virtual boost::system::error_code | printTestTicket ()=0 |
virtual boost::system::error_code | deleteJob (boost::shared_ptr< IJob > job)=0 |
virtual boost::system::error_code | getPrinterInformation (dpyPrinter::PrinterInfo &printConfig)=0 |
boost::system::error_code | subscribe (PrinterObserver *observer) |
boost::system::error_code | unsubscribe (PrinterObserver *observer) |
Protected Attributes | |
std::string | m_printerid |
std::vector< PrinterObserver * > | mObserversList |
Member Function Documentation
const std::string& getPrinterid | ( | ) | const |
Gets printer id
- Returns
- printer id