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

0001 /*
0002    SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QWidget>
0010 class QCheckBox;
0011 
0012 namespace Akonadi
0013 {
0014 class CollectionComboBox;
0015 }
0016 class QAbstractItemModel;
0017 class AutomaticAddContactsTabWidget : public QWidget
0018 {
0019     Q_OBJECT
0020 public:
0021     explicit AutomaticAddContactsTabWidget(QWidget *parent = nullptr, QAbstractItemModel *model = nullptr);
0022     ~AutomaticAddContactsTabWidget() override;
0023 
0024     void resetSettings();
0025     void saveSettings();
0026     void loadSettings();
0027     void setIdentity(uint identity);
0028 Q_SIGNALS:
0029     void configureChanged();
0030 
0031 private:
0032     QCheckBox *const mEnabled;
0033     Akonadi::CollectionComboBox *const mCollectionCombobox;
0034     uint mIdentity = 0;
0035 };