File indexing completed on 2025-01-05 04:49:36

0001 /*
0002   This file is part of KOrganizer.
0003   SPDX-FileCopyrightText: 2001 Cornelius Schumacher <schumacher@kde.org>
0004   SPDX-FileCopyrightText: 2007 Loïc Corbasson <loic.corbasson@gmail.com>
0005   SPDX-FileCopyrightText: 2021 Friedrich W. H. Kossebau <kossebau@kde.org>
0006 
0007   SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 #pragma once
0011 
0012 #include <EventViews/CalendarDecoration>
0013 using namespace EventViews::CalendarDecoration;
0014 
0015 struct ElementData;
0016 
0017 class Picoftheday : public Decoration
0018 {
0019 public:
0020     Picoftheday(QObject *parent = nullptr, const QVariantList &args = {});
0021 
0022     [[nodiscard]] Element::List createDayElements(const QDate &) override;
0023 
0024     void configure(QWidget *parent) override;
0025 
0026     [[nodiscard]] QString info() const override;
0027 
0028     static void cacheData(QDate date, ElementData *data);
0029 
0030 private:
0031     QSize mThumbSize;
0032 };