Eventviews

mainwindow.h
1/*
2 SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
3 SPDX-FileContributor: Kevin Krammer <krake@kdab.com>
4
5 SPDX-License-Identifier: GPL-2.0-or-later
6*/
7
8#pragma once
9
10#include "ui_mainwindow.h"
11
12#include <Akonadi/CollectionCalendar>
13
14#include <QList>
15#include <QMainWindow>
16
17namespace Akonadi
18{
19class IncidenceChanger;
20class Collection;
21class EntityTeeModel;
22class Monitor;
23}
24
25namespace EventViews
26{
27class EventView;
28class Prefs;
29typedef QSharedPointer<Prefs> PrefsPtr;
30}
31
32class QAction;
33class Settings;
34
35class MainWindow : public QMainWindow
36{
38public:
39 explicit MainWindow(const QStringList &viewNames);
40
41 ~MainWindow();
42
43private Q_SLOTS:
44 void collectionSelected(const Akonadi::Collection &col);
45 void collectionDeselected(const Akonadi::Collection &col);
46
47private:
48 const QStringList mViewNames;
49
50 Ui_MainWindow mUi;
51
52 Akonadi::Monitor *mMonitor;
54 Akonadi::IncidenceChanger *mIncidenceChanger = nullptr;
55 Settings *mSettings = nullptr;
56 EventViews::PrefsPtr *mViewPreferences = nullptr;
59
60private:
61 void addView(const QString &viewName);
62
63private Q_SLOTS:
64 void delayedInit();
65 void addViewTriggered(QAction *action);
66
67private:
68};
Namespace EventViews provides facilities for displaying incidences, including events,...
Definition agenda.h:33
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.