Incidenceeditor

incidencewhatwhere.h
1/*
2 SPDX-FileCopyrightText: 2010 Bertjan Broeksema <broeksema@kde.org>
3 SPDX-FileCopyrightText: 2010 Klaralvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#pragma once
9
10#include "incidenceeditor-ng.h"
11
12namespace Ui
13{
14class EventOrTodoDesktop;
15}
16
17namespace IncidenceEditorNG
18{
19/**
20 * The IncidenceWhatWhere editor keeps track of the following Incidence parts:
21 * - Summary
22 * - Location
23 */
25{
27public:
28 using IncidenceEditorNG::IncidenceEditor::load; // So we don't trigger -Woverloaded-virtual
29 using IncidenceEditorNG::IncidenceEditor::save; // So we don't trigger -Woverloaded-virtual
30
31 explicit IncidenceWhatWhere(Ui::EventOrTodoDesktop *ui);
32
33 void load(const KCalendarCore::Incidence::Ptr &incidence) override;
34 void save(const KCalendarCore::Incidence::Ptr &incidence) override;
35 [[nodiscard]] bool isDirty() const override;
36 [[nodiscard]] bool isValid() const override;
37 void focusInvalidField() override;
38 virtual void validate();
39
40private:
41 Ui::EventOrTodoDesktop *const mUi;
42};
43} // IncidenceEditorNG
KCal Incidences are complicated objects.
virtual void load(const KCalendarCore::Incidence::Ptr &incidence)=0
Load the values of.
QSharedPointer< IncidenceT > incidence() const
Convenience method to get a pointer for a specific const Incidence Type.
virtual void save(const KCalendarCore::Incidence::Ptr &incidence)=0
Store the current values of the editor into.
The IncidenceWhatWhere editor keeps track of the following Incidence parts:
void save(const KCalendarCore::Incidence::Ptr &incidence) override
Store the current values of the editor into.
bool isDirty() const override
Returns whether or not the current values in the editor differ from the initial values.
bool isValid() const override
Returns whether or not the content of this editor is valid.
void load(const KCalendarCore::Incidence::Ptr &incidence) override
Load the values of.
void focusInvalidField() override
Sets focus on the invalid field.
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.