You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.1 KiB
C++
56 lines
1.1 KiB
C++
#ifndef DEVPRINTERSTR_H
|
|
#define DEVPRINTERSTR_H
|
|
|
|
#include "DevType.h"
|
|
#include <QList>
|
|
#include "global.h"
|
|
#include "jsonanalystr.h"
|
|
#include "myserialport.h"
|
|
#include "mylptstr.h"
|
|
|
|
class devprinterstr
|
|
{
|
|
public:
|
|
devprinterstr();
|
|
|
|
public:
|
|
int PRN_CreatePrinter(int nPrnVer, char* sPrintPort,
|
|
int nColMax, int nLineMax, int nHeightAdj,
|
|
char* sPortAddr, char* sFormat, char *sCutPaper);
|
|
|
|
HRESULT PRN_Close();
|
|
|
|
HRESULT PRN_CheckPrinter(INT32 &iStatus);
|
|
HRESULT PRN_Print(char *pInfo);
|
|
|
|
private:
|
|
int InitStr();
|
|
int GetPrinterType();
|
|
|
|
int GetStatePort(char* sPortAddr);
|
|
|
|
int CreatePrinterData(QList<myprinterData> & Datalist,QList<myprinterInfo> & Infolist);
|
|
|
|
private:
|
|
char m_printerPort[64];
|
|
|
|
int m_printType;
|
|
int m_nPrnVer;
|
|
int m_MaxCol;
|
|
int m_MaxLine;
|
|
int m_HeigthAdj;
|
|
|
|
unsigned int m_SerBaud;
|
|
|
|
private:
|
|
QList<myprinterPara> m_PrnParalist;
|
|
|
|
JsonAnalyStr m_JsonAnalyStr;
|
|
myCutPaperPara m_CutPaperPara;
|
|
|
|
mySerialPort m_SerialPort;
|
|
mylptstr m_lpt;
|
|
};
|
|
|
|
#endif // DEVPRINTERSTR_H
|