/*! * * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file VPriming.h * \author (last) Peter Lucia * \date (last) 11-Sept-2020 * \author (original) Peter Lucia * \date (original) 11-Sept-2020 * */ #pragma once // Qt #include // Project #include "MPrimingData.h" namespace View { class VPriming : public QObject { Q_OBJECT public: VPriming(QObject *parent = NULL); private: PROPERTY(quint32 , currentState , 0) PROPERTY(quint32 , secondsRemaining , 0) PROPERTY(quint32 , secondsTotal , 0) PROPERTY(bool , continueEnabled , true) // TODO: Set to False when FW supports priming QString continueBtnText = "Continue to Treatment"; Q_PROPERTY(QString continueBtnText READ getContinueBtnText NOTIFY continueBtnTextChanged) enum PrimingStates { CHECKING_INSTALLATION = 0, CREATING_DIALYSATE, PRIMING_LINES, PRIMING_COMPLETE }; signals: void continueBtnTextChanged(); private slots: void onActionReceive(const PrimingData &data); public slots: QString getContinueBtnText() { return continueBtnText; } }; }