Removed signals.
This commit is contained in:
parent
1d8eb2a808
commit
46ab0ec80f
@ -27,7 +27,9 @@ public:
|
|||||||
explicit VMCInterface(QObject *parent = nullptr) : QObject(parent) {}
|
explicit VMCInterface(QObject *parent = nullptr) : QObject(parent) {}
|
||||||
virtual ~VMCInterface() = default;
|
virtual ~VMCInterface() = default;
|
||||||
|
|
||||||
virtual QStringList getPluginInfo() = 0;
|
virtual QStringList getPluginInfoList() = 0;
|
||||||
|
virtual const QString &getPluginInfo() = 0;
|
||||||
|
virtual QString const &getString(RESULT_STATE resultState) = 0;
|
||||||
|
|
||||||
virtual PLUGIN_STATE initPlugin(QObject *eventReceiver, QObject *atbSystem,
|
virtual PLUGIN_STATE initPlugin(QObject *eventReceiver, QObject *atbSystem,
|
||||||
QObject *hmiConfig, QSettings const &settings) override {
|
QObject *hmiConfig, QSettings const &settings) override {
|
||||||
@ -43,86 +45,6 @@ public:
|
|||||||
virtual PLUGIN_STATE initVMCPlugin(QObject *eventReceiver,
|
virtual PLUGIN_STATE initVMCPlugin(QObject *eventReceiver,
|
||||||
QObject *atbSystem, QObject *hmiConfig,
|
QObject *atbSystem, QObject *hmiConfig,
|
||||||
const QSettings & settings) = 0;
|
const QSettings & settings) = 0;
|
||||||
|
|
||||||
#if 0
|
|
||||||
|
|
||||||
virtual QString getString(RESULT_STATE resultState) = 0;
|
|
||||||
|
|
||||||
public slots:
|
|
||||||
virtual void onChangedProgramModeToSELL() = 0;
|
|
||||||
virtual void onChangedProgramModeToSERVICE() = 0;
|
|
||||||
virtual void onChangedProgramModeToIDLE() = 0;
|
|
||||||
virtual void onChangedProgramModeToOOO() = 0;
|
|
||||||
|
|
||||||
virtual void startPhysicalLayer() = 0;
|
|
||||||
virtual void stopPhysicalLayer() = 0;
|
|
||||||
virtual void reboot() = 0;
|
|
||||||
virtual void reset() = 0;
|
|
||||||
|
|
||||||
signals:
|
|
||||||
void printTicketFinished(RESULT_STATE resultState,
|
|
||||||
const QString & errorCode,
|
|
||||||
const QString & errorDescription);
|
|
||||||
void printReceiptFinished(RESULT_STATE resultState,
|
|
||||||
const QString & errorCode,
|
|
||||||
const QString & errorDescription);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* emitted on e.g. a coin input
|
|
||||||
*/
|
|
||||||
void cashInputEvent(RESULT_STATE resultState,
|
|
||||||
CASH_STATE cashState,
|
|
||||||
const QString & newCashValue,
|
|
||||||
/* additional variables? */
|
|
||||||
const QString & errorCode,
|
|
||||||
const QString & errorDescription);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* emitted if cashInput has been stopped, e.g. in result to task requestStopCashInput():
|
|
||||||
* -> shutter is blocked
|
|
||||||
* -> no cash input is possible
|
|
||||||
* -> coins are in cache
|
|
||||||
*/
|
|
||||||
void cashInputFinished(RESULT_STATE resultState,
|
|
||||||
const QString & newCashValue,
|
|
||||||
/* additional variables? */
|
|
||||||
const QString & errorCode,
|
|
||||||
const QString & errorDescription);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* emitted e.g. if service door is opened
|
|
||||||
*/
|
|
||||||
void requestModeSERVICE();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* emitted e.g. if doors are closed
|
|
||||||
*/
|
|
||||||
void requestModeIDLE();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* emitted e.g. on severe errors
|
|
||||||
*/
|
|
||||||
void requestModeOOO();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* emitted e.g. if service door is opened
|
|
||||||
*/
|
|
||||||
void requestAccountResponse(const QHash<QString, QVariant> & accountData);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* emitted on error
|
|
||||||
* depending on errorCode:
|
|
||||||
* -> interrupt selling process
|
|
||||||
* -> machine can go to state OOO
|
|
||||||
* -> send error event to ISMAS
|
|
||||||
* -> ...
|
|
||||||
*/
|
|
||||||
void Error(
|
|
||||||
/* additional variables? */
|
|
||||||
const QString & errorCode,
|
|
||||||
const QString & errorDescription);
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Q_DECLARE_INTERFACE(VMCInterface,
|
Q_DECLARE_INTERFACE(VMCInterface,
|
||||||
|
Loading…
Reference in New Issue
Block a user