pos printer introduced
This commit is contained in:
parent
c973b02013
commit
76d6c7c069
5 changed files with 184 additions and 0 deletions
22
src/printer/posprinter.h
Normal file
22
src/printer/posprinter.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#ifndef POS_PRINTER_H
|
||||
#define POS_PRINTER_H
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <libusb-1.0/libusb.h>
|
||||
|
||||
class PosPrinter
|
||||
{
|
||||
public:
|
||||
static void initialize(std::pair<int, int> vendorModelIds);
|
||||
static PosPrinter* getInstance();
|
||||
private:
|
||||
PosPrinter();
|
||||
PosPrinter(std::pair<int, int> vendorModelId);
|
||||
~PosPrinter();
|
||||
static PosPrinter* instance_;
|
||||
libusb_context* contextPtr_{};
|
||||
libusb_device_handle* devicePtr_{};
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue