File indexing completed on 2024-05-12 05:21:22
0001 /* 0002 SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.net> 0003 SPDX-FileContributor: Tobias Koenig <tokoe@kdab.com> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 #pragma once 0008 0009 #include "korganizerprivate_export.h" 0010 0011 #include <Akonadi/CollectionPropertiesPage> 0012 0013 class QLineEdit; 0014 class KIconButton; 0015 class QCheckBox; 0016 0017 namespace PimCommon 0018 { 0019 class IncidencesForWidget; 0020 } 0021 namespace CalendarSupport 0022 { 0023 class KORGANIZERPRIVATE_EXPORT CollectionGeneralPage : public Akonadi::CollectionPropertiesPage 0024 { 0025 Q_OBJECT 0026 0027 public: 0028 explicit CollectionGeneralPage(QWidget *parent = nullptr); 0029 ~CollectionGeneralPage() override; 0030 0031 void load(const Akonadi::Collection &collection) override; 0032 void save(Akonadi::Collection &collection) override; 0033 0034 private: 0035 void init(const Akonadi::Collection &collection); 0036 QCheckBox *mBlockAlarmsCheckBox = nullptr; 0037 QLineEdit *mNameEdit = nullptr; 0038 QCheckBox *mIconCheckBox = nullptr; 0039 KIconButton *mIconButton = nullptr; 0040 PimCommon::IncidencesForWidget *mIncidencesForComboBox = nullptr; 0041 }; 0042 0043 AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY(CollectionGeneralPageFactory, CollectionGeneralPage) 0044 }