| 1 | /* |
| 2 | This file is part of the KDE libraries |
| 3 | SPDX-FileCopyrightText: 2009 Shaun Reich <shaun.reich@kdemail.net> |
| 4 | |
| 5 | SPDX-License-Identifier: LGPL-2.0-or-later |
| 6 | */ |
| 7 | |
| 8 | #ifndef JOBURLCACHE_H |
| 9 | #define JOBURLCACHE_H |
| 10 | |
| 11 | #include <QObject> |
| 12 | #include <QStringList> |
| 13 | |
| 14 | class JobUrlCache : public QObject |
| 15 | { |
| 16 | Q_OBJECT |
| 17 | public: |
| 18 | static JobUrlCache &instance(); |
| 19 | |
| 20 | void requestJobUrlsChanged(); |
| 21 | |
| 22 | Q_SIGNALS: |
| 23 | void jobUrlsChanged(const QStringList &); |
| 24 | |
| 25 | private Q_SLOTS: |
| 26 | /* |
| 27 | * Connected to kuiserver's signal... |
| 28 | * urlList the dest url list |
| 29 | */ |
| 30 | void slotJobUrlsChanged(const QStringList &urlList); |
| 31 | |
| 32 | private: |
| 33 | JobUrlCache(); |
| 34 | ~JobUrlCache() override; |
| 35 | |
| 36 | QStringList m_destUrls; |
| 37 | |
| 38 | friend class JobUrlCacheSingleton; |
| 39 | }; |
| 40 | |
| 41 | #endif // JOBURLCACHE_H |
| 42 | |