File indexing completed on 2024-12-01 09:53:35
0001 /* 0002 This file is part of the KDE libraries 0003 SPDX-FileCopyrightText: 2009 Shaun Reich <shaun.reich@kdemail.net> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #ifndef JOBURLCACHE_H 0009 #define JOBURLCACHE_H 0010 0011 #include <QObject> 0012 #include <QStringList> 0013 0014 class JobUrlCache : public QObject 0015 { 0016 Q_OBJECT 0017 public: 0018 static JobUrlCache &instance(); 0019 0020 void requestJobUrlsChanged(); 0021 0022 Q_SIGNALS: 0023 void jobUrlsChanged(const QStringList &); 0024 0025 private Q_SLOTS: 0026 /** 0027 * Connected to kuiserver's signal... 0028 * @p urlList the dest url list 0029 */ 0030 void slotJobUrlsChanged(const QStringList &urlList); 0031 0032 private: 0033 JobUrlCache(); 0034 ~JobUrlCache() override; 0035 0036 QStringList m_destUrls; 0037 0038 friend class JobUrlCacheSingleton; 0039 }; 0040 0041 #endif // JOBURLCACHE_H