Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/backgroundlistmodel.h
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Line(s) | |||||
126 | 126 | | |||
127 | public: | 127 | public: | ||
128 | BackgroundFinder(Image *wallpaper, const QStringList &p); | 128 | BackgroundFinder(Image *wallpaper, const QStringList &p); | ||
129 | ~BackgroundFinder() override; | 129 | ~BackgroundFinder() override; | ||
130 | 130 | | |||
131 | QString token() const; | 131 | QString token() const; | ||
132 | 132 | | |||
133 | static const QStringList &suffixes(); | 133 | static const QStringList &suffixes(); | ||
134 | static bool isAcceptableSuffix(const QString &suffix); | ||||
134 | 135 | | |||
135 | Q_SIGNALS: | 136 | Q_SIGNALS: | ||
136 | void backgroundsFound(const QStringList &paths, const QString &token); | 137 | void backgroundsFound(const QStringList &paths, const QString &token); | ||
137 | 138 | | |||
138 | protected: | 139 | protected: | ||
139 | void run() override; | 140 | void run() override; | ||
140 | 141 | | |||
141 | private: | 142 | private: | ||
142 | QStringList m_paths; | 143 | QStringList m_paths; | ||
143 | QString m_token; | 144 | QString m_token; | ||
144 | 145 | | |||
145 | static QStringList m_suffixes; | 146 | static QStringList m_suffixes; | ||
146 | }; | 147 | }; | ||
147 | 148 | | |||
148 | #endif // BACKGROUNDLISTMODEL_H | 149 | #endif // BACKGROUNDLISTMODEL_H |