File indexing completed on 2022-09-27 16:29:26

0001 /**
0002  * SPDX-FileCopyrightText: (C) 2016 Gleb Baryshev <gleb.baryshev@gmail.com>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef SETTINGS_VERSIONSYNC_H
0008 #define SETTINGS_VERSIONSYNC_H
0009 
0010 #include "basket_export.h"
0011 #include <KCModule>
0012 
0013 namespace Ui
0014 {
0015 class VersionSyncPage;
0016 }
0017 
0018 class BASKET_EXPORT VersionSyncPage : public KCModule
0019 {
0020     Q_OBJECT
0021 
0022 public:
0023     explicit VersionSyncPage(QWidget *parent = nullptr, const QVariantList &args = {});
0024     ~VersionSyncPage() override;
0025 
0026     void load() override;
0027     void save() override;
0028     void defaults() override;
0029 
0030 public Q_SLOTS:
0031     void setHistorySize(qint64 size_bytes);
0032 
0033 private Q_SLOTS:
0034     void onCheckBoxEnableClicked();
0035     void onButtonClearHistoryClicked();
0036 
0037 private:
0038     Ui::VersionSyncPage *ui;
0039 };
0040 
0041 #endif // SETTINGS_VERSIONSYNC_H