Index: sources/view/settings/VDateTime.h =================================================================== diff -u -re2dc7bd9995a3bb410aa472a1f95c1cc9ba3136d -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/view/settings/VDateTime.h (.../VDateTime.h) (revision e2dc7bd9995a3bb410aa472a1f95c1cc9ba3136d) +++ sources/view/settings/VDateTime.h (.../VDateTime.h) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) @@ -1,14 +1,14 @@ /*! * - * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. + * Copyright (c) 2021-2024 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 VDateTime.h - * \author (last) Peter Lucia - * \date (last) 16-Apr-2021 - * \author (original) Peter Lucia + * \author (last) Vy + * \date (last) 16-Aug-2023 + * \author (original) Behrouz NematiPour * \date (original) 16-Apr-2021 * */ @@ -17,12 +17,14 @@ // Qt #include #include +#include // Project #include "main.h" // Doxygen : do not remove #include "VAdjustmentResponseBase.h" #include "MAdjustHDDateTimeResponse.h" #include "MAdjustDGDateTimeResponse.h" +#include "MHDRTCEpochData.h" // forward declarations @@ -51,7 +53,7 @@ Q_ENUM(DateTimeSetStatus) enum GreetingRanges { - eMorningMin = 0500, // 05:00 AM + eMorningMin = 500, // 5:00 AM eMorningMax = 1200, // 12:00 PM eAfternoonMin = 1200, // 12:00 PM @@ -62,6 +64,7 @@ void timerEvent(QTimerEvent *event) override; private: + QDateTime _currentDateTime ; int _timerInterval = 1000; // ms QProcess _process ; @@ -90,9 +93,12 @@ PROPERTY(QString, current , "" ) PROPERTY(QString, greeting , "" ) + PROPERTY(QString, timezone , "" ) + VIEW_DEC_CLASS(VDateTime) VIEW_DEC_SLOT (AdjustHDDateTimeResponseData) VIEW_DEC_SLOT (AdjustDGDateTimeResponseData) + VIEW_DEC_SLOT (HDRTCEpochData) void greeting(quint16 vMilitaryTime); @@ -107,6 +113,7 @@ const QString &vHour , const QString &vMinute); + void onSetDateUIErrored(QProcess::ProcessError error); signals: void didAdjustment(const AdjustHDDateTimeRequestData); void didAdjustment(const AdjustDGDateTimeRequestData);