14#include "urlfiledownload.h"
20class RemoveTimer :
public QTimer
30 void setKey(
const pixCacheKey_t &key);
32 pixCacheKey_t m_key { 0, 0, 0 };
35 void remove(pixCacheKey_t &key);
45class HIPSManager :
public QObject
50 static HIPSManager *Instance();
52 typedef enum { HIPS_EQUATORIAL_FRAME, HIPS_GALACTIC_FRAME, HIPS_OTHER_FRAME } HIPSFrame;
54 QImage *getPix(
bool allsky,
int level,
int pix,
bool &freeImage);
59 void clearDiscCache();
64 return m_currentSource;
70 int getUsableLevel(
int level)
const;
71 int getUsableOfflineLevel(
int level)
const;
73 qint64 getDiscCacheSize()
const;
74 const QString &getCurrentFormat()
const
76 return m_currentFormat;
78 HIPSFrame getCurrentFrame()
const
80 return m_currentFrame;
82 const uint8_t &getCurrentOrder()
const
84 return m_currentOrder;
86 const uint16_t &getCurrentTileWidth()
const
88 return m_currentTileWidth;
90 const QUrl &getCurrentURL()
const
101 bool setCurrentSource(
const QString &title);
110 void removeTimer(pixCacheKey_t &key);
115 static HIPSManager * _HIPSManager;
119 QSet <pixCacheKey_t> m_downloadMap;
121 void addToMemoryCache(pixCacheKey_t &key, pixCacheItem_t *item);
122 pixCacheItem_t *getCacheItem(pixCacheKey_t &key);
130 std::unique_ptr<OpsHIPS> sourceSettings;
131 std::unique_ptr<OpsHIPSCache> cacheSettings;
132 std::unique_ptr<OpsHIPSDisplay> displaySettings;
137 HIPSFrame m_currentFrame { HIPS_OTHER_FRAME };
138 uint8_t m_currentOrder { 0 };
139 uint16_t m_currentTileWidth { 0 };
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:46 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.