File indexing completed on 2024-12-22 05:02:29

0001 /*
0002    SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "gravatar_export.h"
0010 #include <QWidget>
0011 class QCheckBox;
0012 class QPushButton;
0013 class KPluralHandlingSpinBox;
0014 class KConfigDialogManager;
0015 namespace Gravatar
0016 {
0017 /** Gravatar settings widget. */
0018 class GRAVATAR_EXPORT GravatarConfigureSettingsWidget : public QWidget
0019 {
0020     Q_OBJECT
0021 public:
0022     explicit GravatarConfigureSettingsWidget(QWidget *parent = nullptr);
0023     ~GravatarConfigureSettingsWidget() override;
0024     void slotRestoreDefault();
0025     void save();
0026     void load();
0027 
0028 private:
0029     GRAVATAR_NO_EXPORT void slotClearGravatarCache();
0030     QCheckBox *mUseDefaultPixmap = nullptr;
0031     QPushButton *mClearGravatarCache = nullptr;
0032     KPluralHandlingSpinBox *mGravatarCacheSize = nullptr;
0033     QCheckBox *mUseLibravatar = nullptr;
0034     QCheckBox *mFallbackGravatar = nullptr;
0035     KConfigDialogManager *m_configDialogManager = nullptr;
0036 };
0037 }