File indexing completed on 2024-05-26 05:23:01

0001 /*
0002  * SPDX-FileCopyrightText: 2014 Sandro Knauß <knauss@kolabsys.com>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0
0005  */
0006 
0007 #pragma once
0008 
0009 #include <EventViews/ViewCalendar>
0010 
0011 #include <QDialog>
0012 
0013 class Ui_quickview;
0014 
0015 namespace Akonadi
0016 {
0017 class EntityTreeModel;
0018 }
0019 
0020 namespace EventViews
0021 {
0022 class AgendaView;
0023 }
0024 
0025 class Quickview : public QDialog
0026 {
0027     Q_OBJECT
0028 public:
0029     Quickview(const Akonadi::CollectionCalendar::Ptr &calendar, const QString &title);
0030     ~Quickview() override;
0031 
0032 private:
0033     void onTodayClicked();
0034     void onNextClicked();
0035     void onPreviousClicked();
0036     void readConfig();
0037     void writeConfig();
0038 
0039     Ui_quickview *const mUi;
0040     EventViews::AgendaView *mAgendaView = nullptr;
0041     int mDayRange = 7;
0042 };