File indexing completed on 2024-12-29 05:00:27

0001 /*
0002  *   SPDX-FileCopyrightText: 2021 Alexey Andreyev <aa13q@ya.ru>
0003  *
0004  *   SPDX-License-Identifier: LicenseRef-KDE-Accepted-GPL
0005  */
0006 
0007 #ifndef UNSPLASHPROVIDER_H
0008 #define UNSPLASHPROVIDER_H
0009 
0010 #include "potdprovider.h"
0011 
0012 class KJob;
0013 
0014 /**
0015  * This class provides random wallpapers from Simon Stalenhag website
0016  * http://simonstalenhag.se/
0017  * see also: https://github.com/a-andreyev/simonstalenhag-se-metadata
0018  */
0019 class SimonStalenhagProvider : public PotdProvider
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     explicit SimonStalenhagProvider(QObject *parent, const KPluginMetaData &data, const QVariantList &args);
0025 
0026 private:
0027     void entrypointRequestFinished(KJob *job);
0028     void metaDataRequestFinished(KJob *job);
0029     void imageRequestFinished(KJob *job);
0030 };
0031 
0032 #endif