Simplified driver interface and moved application logic to a seperate application class

This commit is contained in:
2023-08-26 13:45:26 +02:00
parent 779911e97e
commit 5644c84c83
9 changed files with 97 additions and 78 deletions

View File

@@ -4,23 +4,27 @@
namespace ptprnt::printer {
const std::string_view P700Printer::getDriverName() {
return info.driverName;
return mInfo.driverName;
}
const std::string_view P700Printer::getName() {
return info.name;
return mInfo.name;
}
const std::string_view P700Printer::getVersion() {
return info.version;
return mInfo.version;
}
const PrinterInfo P700Printer::getPrinterInfo() {
return mInfo;
}
const uint16_t P700Printer::getVid() {
return info.vid;
return mInfo.vid;
}
const uint16_t P700Printer::getPid() {
return info.pid;
return mInfo.pid;
}
bool P700Printer::attachUsbDevice(std::shared_ptr<libusbwrap::IUsbDevice> usbHndl) {