Simplified driver interface and moved application logic to a seperate application class
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user