Commit 48e5297a authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

applets/comic/engine: Make methods private where possible

parent 013048fe
......@@ -29,13 +29,11 @@ Q_SIGNALS:
*/
void lastStrip(int index, const QString &identifier, const QString &suffix);
public Q_SLOTS:
void dataUpdated(const QString &name, const ComicMetaData &data);
private Q_SLOTS:
void start();
private:
void dataUpdated(const QString &name, const ComicMetaData &data);
int mMinutes;
int mIndex;
ComicEngine *mEngine;
......
......@@ -116,9 +116,6 @@ Q_SIGNALS:
void providerUpdateIntervalChanged();
void maxComicLimitChanged();
public Q_SLOTS:
void dataUpdated(const QString &name, const ComicMetaData &data);
private Q_SLOTS:
void slotTabChanged(const QString &newIdentifier);
void slotNextDay();
......@@ -167,6 +164,7 @@ private:
void refreshComicData();
void setTabHighlighted(const QString &id, bool highlight);
bool isTabHighlighted(const QString &id) const;
void dataUpdated(const QString &name, const ComicMetaData &data);
private:
static const int CACHE_LIMIT;
......
......@@ -65,15 +65,13 @@ public:
void start() override;
public Q_SLOTS:
void dataUpdated(const QString &source, const ComicMetaData &data);
protected:
bool doKill() override;
bool doSuspend() override;
bool doResume() override;
private:
void dataUpdated(const QString &source, const ComicMetaData &data);
/**
* Sets the total number of comics to download.
* @param currentSuffix if empty the from and to identifier suffix will be used.
......
......@@ -45,9 +45,6 @@ public:
using ComicRequestCallback = const std::function<void(const ComicMetaData &data)> &;
bool requestSource(const QString &identifier, ComicRequestCallback callback);
Q_SIGNALS:
void sourceUpdated(const QString &identifier);
protected:
void init();
......@@ -56,10 +53,10 @@ private:
void error(ComicProvider *, ComicRequestCallback callback);
void onOnlineStateChanged(bool);
void setComicData(ComicProvider *provider, ComicRequestCallback callback);
QString lastCachedIdentifier(const QString &identifier) const;
private:
bool mEmptySuffix;
QString lastCachedIdentifier(const QString &identifier) const;
QString mIdentifierError;
QHash<QString, ComicProvider *> m_jobs;
QT_WARNING_PUSH
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment