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.
33 lines
680 B
C
33 lines
680 B
C
|
1 year ago
|
#ifndef JSONANALYSTR_H
|
||
|
|
#define JSONANALYSTR_H
|
||
|
|
|
||
|
|
#include "global.h"
|
||
|
|
#include <QJsonObject>
|
||
|
|
|
||
|
|
#define PRINTERNANE "NAME"
|
||
|
|
#define PRINTERCOL "COL"
|
||
|
|
#define PRINTERLINE "ROW"
|
||
|
|
|
||
|
|
#define PRINTERVALUE "VALUE"
|
||
|
|
|
||
|
|
#define CUTPAPERPARA "CUTPAPER"
|
||
|
|
#define CMDLFPARA "CMDLF"
|
||
|
|
#define CUTCMDPARA "CUTCMD"
|
||
|
|
|
||
|
|
class JsonAnalyStr
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
JsonAnalyStr();
|
||
|
|
|
||
|
|
public:
|
||
|
|
int GetPrinterPara(QList<myprinterPara> &list,char * buf,int iMaxLine);
|
||
|
|
int GetCutPaperPara(myCutPaperPara * pPara, char * buf);
|
||
|
|
int GetPrinterInfo(QList<myprinterInfo> & paralist,char * buf);
|
||
|
|
|
||
|
|
int InitStr();
|
||
|
|
private:
|
||
|
|
int GetPara(myprinterPara * pPara,QJsonObject & jobj);
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // JSONANALYSTR_H
|