@esslassi/electron-printer 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,31 +1,31 @@
1
- #ifndef LINUX_PRINTER_H
2
- #define LINUX_PRINTER_H
3
-
4
- #include "printer_interface.h"
5
-
6
- class LinuxPrinter : public PrinterInterface
7
- {
8
- public:
9
- std::vector<PrinterDetailsNative> GetPrinters() override;
10
- PrinterDetailsNative GetPrinter(const std::string &printerName) override;
11
- std::string GetDefaultPrinterName() override;
12
-
13
- DriverOptions GetPrinterDriverOptions(const std::string &printerName) override;
14
- std::string GetSelectedPaperSize(const std::string &printerName) override;
15
-
16
- int PrintDirect(const std::string &printerName,
17
- const std::vector<uint8_t> &data,
18
- const std::string &type,
19
- const StringMap &options) override;
20
-
21
- int PrintFile(const std::string &printerName,
22
- const std::string &filename) override;
23
-
24
- std::vector<std::string> GetSupportedPrintFormats() override;
25
-
26
- JobDetailsNative GetJob(const std::string &printerName, int jobId) override;
27
- void SetJob(const std::string &printerName, int jobId, const std::string &command) override;
28
- std::vector<std::string> GetSupportedJobCommands() override;
29
- };
30
-
1
+ #ifndef LINUX_PRINTER_H
2
+ #define LINUX_PRINTER_H
3
+
4
+ #include "printer_interface.h"
5
+
6
+ class LinuxPrinter : public PrinterInterface
7
+ {
8
+ public:
9
+ std::vector<PrinterDetailsNative> GetPrinters() override;
10
+ PrinterDetailsNative GetPrinter(const std::string &printerName) override;
11
+ std::string GetDefaultPrinterName() override;
12
+
13
+ DriverOptions GetPrinterDriverOptions(const std::string &printerName) override;
14
+ std::string GetSelectedPaperSize(const std::string &printerName) override;
15
+
16
+ int PrintDirect(const std::string &printerName,
17
+ const std::vector<uint8_t> &data,
18
+ const std::string &type,
19
+ const StringMap &options) override;
20
+
21
+ int PrintFile(const std::string &printerName,
22
+ const std::string &filename) override;
23
+
24
+ std::vector<std::string> GetSupportedPrintFormats() override;
25
+
26
+ JobDetailsNative GetJob(const std::string &printerName, int jobId) override;
27
+ void SetJob(const std::string &printerName, int jobId, const std::string &command) override;
28
+ std::vector<std::string> GetSupportedJobCommands() override;
29
+ };
30
+
31
31
  #endif