File indexing completed on 2024-05-05 05:48:31

0001 /*
0002     CT Hour Header
0003     --------------------------------------------------------------------
0004     SPDX-FileCopyrightText: 1999 Gary Meyer <gary@meyer.net>
0005     --------------------------------------------------------------------
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #pragma once
0010 
0011 #include "ctunit.h"
0012 
0013 /**
0014  * Scheduled task hours.
0015  */
0016 class CTHour : public CTUnit
0017 {
0018 public:
0019     /**
0020      * Constructs from a tokenized string.
0021      */
0022     explicit CTHour(const QString &tokStr = QLatin1String(""));
0023 
0024     int findPeriod() const;
0025 
0026     QString exportUnit() const override;
0027 };
0028