|
|
|
#include "shopsettings.h"
|
|
|
|
|
|
|
|
ShopSettings::ShopSettings(QObject *parent) : QObject(parent)
|
|
|
|
{
|
|
|
|
m_codepage = ASCII;
|
|
|
|
m_lettersPerLine = 48;
|
|
|
|
|
|
|
|
m_eetActive = false;
|
|
|
|
m_eetMode = 1;
|
|
|
|
m_eetTest = 0;
|
|
|
|
m_eetPlayground = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString ShopSettings::output() const
|
|
|
|
{
|
|
|
|
return m_output;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShopSettings::setOutput(const QString &output)
|
|
|
|
{
|
|
|
|
m_output = output;
|
|
|
|
}
|
|
|
|
|
|
|
|
ShopSettings::CODEPAGE ShopSettings::codepage() const
|
|
|
|
{
|
|
|
|
return m_codepage;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShopSettings::setCodepage(const CODEPAGE &codepage)
|
|
|
|
{
|
|
|
|
m_codepage = codepage;
|
|
|
|
}
|
|
|
|
|
|
|
|
int ShopSettings::lettersPerLine() const
|
|
|
|
{
|
|
|
|
return m_lettersPerLine;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShopSettings::setLettersPerLine(int lettersPerLine)
|
|
|
|
{
|
|
|
|
m_lettersPerLine = lettersPerLine;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString ShopSettings::byMessage() const
|
|
|
|
{
|
|
|
|
return m_byMessage;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShopSettings::setByMessage(const QString &byMessage)
|
|
|
|
{
|
|
|
|
m_byMessage = byMessage;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ShopSettings::eetActive() const
|
|
|
|
{
|
|
|
|
return m_eetActive;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShopSettings::setEetActive(bool eetActive)
|
|
|
|
{
|
|
|
|
m_eetActive = eetActive;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString ShopSettings::eetShopId() const
|
|
|
|
{
|
|
|
|
return m_eetShopId;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShopSettings::setEetShopId(const QString &eetShopId)
|
|
|
|
{
|
|
|
|
m_eetShopId = eetShopId;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString ShopSettings::eetRegisterId() const
|
|
|
|
{
|
|
|
|
return m_eetRegisterId;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShopSettings::setEetRegisterId(const QString &eetRegisterId)
|
|
|
|
{
|
|
|
|
m_eetRegisterId = eetRegisterId;
|
|
|
|
}
|
|
|
|
|
|
|
|
int ShopSettings::eetMode() const
|
|
|
|
{
|
|
|
|
return m_eetMode;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShopSettings::setEetMode(int eetMode)
|
|
|
|
{
|
|
|
|
m_eetMode = eetMode;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString ShopSettings::eetCertificate() const
|
|
|
|
{
|
|
|
|
return m_eetCertificate;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShopSettings::setEetCertificate(const QString &eetCertificate)
|
|
|
|
{
|
|
|
|
m_eetCertificate = eetCertificate;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString ShopSettings::eetKeyPassword() const
|
|
|
|
{
|
|
|
|
return m_eetKeyPassword;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShopSettings::setEetKeyPassword(const QString &eetKeyPassword)
|
|
|
|
{
|
|
|
|
m_eetKeyPassword = eetKeyPassword;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ShopSettings::eetTest() const
|
|
|
|
{
|
|
|
|
return m_eetTest;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShopSettings::setEetTest(bool eetTest)
|
|
|
|
{
|
|
|
|
m_eetTest = eetTest;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ShopSettings::eetPlayground() const
|
|
|
|
{
|
|
|
|
return m_eetPlayground;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShopSettings::setEetPlayground(bool eetPlayground)
|
|
|
|
{
|
|
|
|
m_eetPlayground = eetPlayground;
|
|
|
|
}
|