Kstars

hips.h
1/*
2 SPDX-FileCopyrightText: 2015-2017 Pavel Mraz
3
4 SPDX-FileCopyrightText: 2017 Jasem Mutlaq
5
6 SPDX-License-Identifier: GPL-2.0-or-later
7*/
8
9#ifndef HIPS_H
10#define HIPS_H
11
12#include <QString>
13#include <QImage>
14#include <QDebug>
15
16#define HIPS_FRAME_EQT 0
17#define HIPS_FRAME_GAL 1
18
19typedef struct
20{
21 QString cachePath;
22 qint64 discCacheSize;
23 int memoryCacheSize; // count
24} hipsCache_t;
25
26class pixCacheItem_t
27{
28public:
29 pixCacheItem_t() = default;
30
31 ~pixCacheItem_t()
32 {
33 //qDebug() << Q_FUNC_INFO << "delete";
34 Q_ASSERT(image);
35 delete image;
36 }
37
38 QImage *image { nullptr };
39};
40
41typedef struct
42{
43 int level;
44 int pix;
45 qint64 uid;
46} pixCacheKey_t;
47
48Q_DECLARE_METATYPE(pixCacheKey_t)
49
50#endif // HIPS_H
QStringView level(QStringView ifopt)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.