Implement open() and close() for Usb class, added a lot of TODO's

This commit is contained in:
2022-11-13 21:28:28 +01:00
parent f09e4ab5c8
commit 38906dafef
11 changed files with 103 additions and 30 deletions

View File

@@ -10,7 +10,7 @@ namespace ptprnt::printer {
class P700Printer : public IPrinter {
public:
P700Printer(std::unique_ptr<driver::P700Driver> driver);
P700Printer(std::shared_ptr<driver::P700Driver> driver);
~P700Printer() override;
printer::info getInfo() override;
@@ -19,7 +19,7 @@ class P700Printer : public IPrinter {
private:
static info mPrinterInfo;
std::unique_ptr<driver::P700Driver> mDriver;
std::shared_ptr<driver::P700Driver> mDriver;
};
} // namespace ptprnt::printer