Simplified driver interface and moved application logic to a seperate application class
This commit is contained in:
22
src/PtouchPrint.hpp
Normal file
22
src/PtouchPrint.hpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include "interface/IPrinterDriver.hpp"
|
||||
#include "libusbwrap/UsbDeviceFactory.hpp"
|
||||
|
||||
class PtouchPrint {
|
||||
public:
|
||||
PtouchPrint();
|
||||
~PtouchPrint();
|
||||
|
||||
void init();
|
||||
void run();
|
||||
|
||||
private:
|
||||
// methods
|
||||
unsigned int getCompatiblePrinters();
|
||||
|
||||
// member variables
|
||||
libusbwrap::UsbDeviceFactory mUsbDeviceFactory;
|
||||
std::vector<std::shared_ptr<ptprnt::IPrinterDriver>> mCompatiblePrinters;
|
||||
std::vector<std::shared_ptr<ptprnt::IPrinterDriver>> mDetectedPrinters;
|
||||
};
|
Reference in New Issue
Block a user