To be deleted later. Use files from main-appilcation.

This commit is contained in:
Gerhard Hoffmann 2023-11-10 13:11:57 +01:00
parent 26c1f0143e
commit ad4bae4bfb
4 changed files with 0 additions and 131 deletions

View File

@ -213,8 +213,6 @@ void ATBHMIconfig::initDefered() {
this->HelpButtonUsed = settings->value("showHelpButton", "0").toBool(); this->HelpButtonUsed = settings->value("showHelpButton", "0").toBool();
this->InfoButtonUsed = settings->value("showInfoButton", "0").toBool(); this->InfoButtonUsed = settings->value("showInfoButton", "0").toBool();
this->ScreenChangeTimeoutTime = settings->value("screenChangeTimeoutTime", "10").toUInt();
settings->endGroup(); settings->endGroup();
// [PAYMENT] // [PAYMENT]
@ -357,8 +355,6 @@ QString ATBHMIconfig::getSuspendTime() { return this->SuspendTime;
*/ */
QString ATBHMIconfig::getSellTimeoutTime() { return this->SellTimeoutTime; } QString ATBHMIconfig::getSellTimeoutTime() { return this->SellTimeoutTime; }
quint32 ATBHMIconfig::getHMIScreenChangeTimeoutTime() { return this->ScreenChangeTimeoutTime; }
QString ATBHMIconfig::getQmPath() { return this->qmPath; } QString ATBHMIconfig::getQmPath() { return this->qmPath; }
bool ATBHMIconfig::hasFeatureTF() { return ((this->features & this->featureMaskTF) != 0); } bool ATBHMIconfig::hasFeatureTF() { return ((this->features & this->featureMaskTF) != 0); }

View File

@ -107,22 +107,6 @@ class ATBHMIconfig : public QObject
QString currencySymbol; QString currencySymbol;
#ifdef USE_BARCODESCANNER
bool useBarcode;
QString barcodeScannerInputDeviceName;
#endif
#ifdef USE_RFIDREADER
bool useRFID;
QString rfidReaderInputDeviceName;
#endif
#ifdef USE_EXTERNAL_TICKETMANAGER
// for ticket management
QString endOfSellingTime;
int blockingTimeMin;
#endif
quint8 defaultLanguage; quint8 defaultLanguage;
@ -141,18 +125,6 @@ class ATBHMIconfig : public QObject
QByteArray characterSet; QByteArray characterSet;
#ifdef USE_ISMAS
QString ismasHost;
quint16 ismasPort;
QString ismasID;
bool ismasDebug;
bool ismasCheckEntries;
quint16 ismasConnectionTimeout;
bool usePINgenerator;
#endif
quint32 ScreenChangeTimeoutTime;
PAYMENT_VARIANTS::CASH_VARIANT cashVariant; PAYMENT_VARIANTS::CASH_VARIANT cashVariant;
// ErrorCode-mapping // ErrorCode-mapping
@ -219,31 +191,6 @@ public:
const QString & getPaymentCurrencySymbol(); const QString & getPaymentCurrencySymbol();
#ifdef USE_BARCODESCANNER
bool getUseBarcodeScanner();
QString & getBarcodeScannerInputDevice();
#endif
#ifdef USE_RFIDREADER
bool getUseRFIDReader();
QString & getRFIDReaderInputDevice();
#endif
#ifdef USE_EXTERNAL_TICKETMANAGER
QString getEndOfSellingTime();
int getBlockingTime();
#endif
#ifdef USE_ISMAS
QString getISMASHost();
quint16 getISMASPort();
QString getISMASId();
bool isIsmasDebug();
bool IsmasCheckEntries();
bool UsePINgenerator();
quint16 getIsmasConnectionTimeout();
#endif
void setFeatureTF(); void setFeatureTF();
void unsetFeatureTF(); void unsetFeatureTF();

View File

@ -125,77 +125,6 @@ void ATB_system::BeepStop() {
} }
int ATB_system::init_touch_feedback() {
#if defined (ARCH_PTU2)
QString GPIODirName("/sys/class/gpio/");
QString directionFileName;
QString valueFileName;
// # echo 129 > /sys/class/gpio/export
QFile file("/sys/class/gpio/export");
file.open(QIODevice::WriteOnly | QIODevice::Text);
QTextStream out(&file);
out << config->getTouchFeedbackGPIO();
file.close();
// check, if gpio-dir was created
GPIODirName.append("gpio");
GPIODirName.append(config->getTouchFeedbackGPIO());
QFileInfo fileinfo1(GPIODirName);
if (! fileinfo1.isDir() ) {
qDebug() << "ATB_system::init_touch_feedback(): \"" << GPIODirName << "\" is not a directory";
config->unsetFeatureTF();
return -1;
}
directionFileName = GPIODirName + "/direction";
QFileInfo fileinfo2(directionFileName);
if (! fileinfo2.isWritable() ) {
qDebug() << "ATB_system::init_touch_feedback(): \"" << directionFileName << "\" is not writable";
config->unsetFeatureTF();
return -1;
}
// # echo out > /sys/class/gpio/gpio129/direction
QFile directionfile(directionFileName);
directionfile.open(QIODevice::ReadWrite | QIODevice::Text);
QTextStream out2(&directionfile);
out2 << "out";
out2.flush();
// re-read 'direction' for confirmation
// -> the following is disabled because this sometimes failed
//QTextStream in(&directionfile);
//QString line = in.readLine();
//if (line != "out") {
// qDebug() << "ATB_system::init_touch_feedback(): re-read directionfile failed";
// config->unsetFeatureTF();
// return -1;
//}
directionfile.close();
// open gpio file
valueFileName = GPIODirName + "/value";
this->tf_gpio = new QFile(valueFileName);
this->tf_gpio->open(QIODevice::WriteOnly);
this->tf_gpio_outstream = new QTextStream(this->tf_gpio);
qDebug() << "ATB_system::init_touch_feedback(): GPIODirName = \"" << GPIODirName << "\"";
qDebug() << "ATB_system::init_touch_feedback(): valueFileName = \"" << valueFileName << "\"";
#elif defined (ARCH_PTU4)
QString sysfs_buzzer("/sys/class/leds/Buzzer/brightness");
this->tf_gpio = new QFile(sysfs_buzzer);
tf_gpio->open(QIODevice::WriteOnly);
this->tf_gpio_outstream = new QTextStream(this->tf_gpio);
#endif
return 1;
}
/******************************************************************************** /********************************************************************************
* set date/time * set date/time
* *

View File

@ -31,9 +31,6 @@ class ATB_system : public QObject {
Q_OBJECT Q_OBJECT
private: private:
int init_touch_feedback();
int init_sc_dbus();
ATBHMIconfig *config; ATBHMIconfig *config;
QFile *tf_gpio; QFile *tf_gpio;
QTextStream *tf_gpio_outstream; QTextStream *tf_gpio_outstream;