first steps in printing via libusb

This commit is contained in:
Martin Brodbeck 2018-08-06 12:52:45 +02:00
parent 77040e9f27
commit a34fd9aefd
3 changed files with 59 additions and 0 deletions

View file

@ -18,6 +18,19 @@ class PosPrinter
public:
PosPrinter();
~PosPrinter();
void write(const std::string& text);
void printHeader();
void printTest();
struct Command {
static const std::string RESET;
static const std::string ENCODING;
static const std::string CENTERING;
static const std::string FONT_SIZE_BIG;
static const std::string FONT_SIZE_NORMAL;
static const std::string LEFT_ALIGN;
static const std::string FEED;
};
private:
libusb_context* contextPtr_{};