/* * SPDX-FileCopyrightText: 2011 Matthias Fuchs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef CHECK_NEW_STRIPS_H #define CHECK_NEW_STRIPS_H #include /** * This class searches for the newest comic strips of predefined comics in a defined interval. * Once found it emits lastStrip */ class CheckNewStrips : public QObject { Q_OBJECT public: CheckNewStrips(const QStringList &identifiers, Plasma::DataEngine *engine, int minutes, QObject *parent = nullptr); Q_SIGNALS: /** * @param index of the identifier in identifiers * @param identifier of the comic * @param suffix of the last comic strip * @see CheckNewStrips */ void lastStrip(int index, const QString &identifier, const QString &suffix); public Q_SLOTS: void dataUpdated(const QString &name, const Plasma::DataEngine::Data &data); private Q_SLOTS: void start(); private: int mMinutes; int mIndex; Plasma::DataEngine *mEngine; const QStringList mIdentifiers; }; #endif