fncron.h 399 B

12345678910111213141516171819
  1. #ifndef FNCRON_H
  2. #define FNCRON_H
  3. #include <QObject>
  4. #include <QDateTime>
  5. class FnCron : public QObject
  6. {
  7. Q_OBJECT
  8. public:
  9. explicit FnCron(QObject* parent = nullptr);
  10. bool match(QString cronText, QDateTime datetime);
  11. bool matchValue(QString s, int v, int minValue, int MaxValue);
  12. void getTwoValue(QString s, int& a, int& b, QString sp = "-");
  13. signals:
  14. };
  15. #endif // FNCRON_H