File indexing completed on 2024-12-15 04:51:47
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #pragma once 0007 #include "noteshared_export.h" 0008 #include <KCModule> 0009 0010 #include <KPluginMetaData> 0011 class QCheckBox; 0012 class QLineEdit; 0013 class QSpinBox; 0014 namespace NoteShared 0015 { 0016 class NoteNetworkConfigWidgetPrivate; 0017 class NOTESHARED_EXPORT NoteNetworkConfigWidget : public QWidget 0018 { 0019 Q_OBJECT 0020 public: 0021 explicit NoteNetworkConfigWidget(QWidget *parent = nullptr); 0022 ~NoteNetworkConfigWidget() override; 0023 0024 void save(); 0025 void load(); 0026 0027 private: 0028 QCheckBox *mTmpChkB = nullptr; 0029 QLineEdit *m_kcfg_SenderID = nullptr; 0030 QSpinBox *kcfg_Port = nullptr; 0031 }; 0032 0033 class NOTESHARED_EXPORT NoteNetworkConfig : public KCModule 0034 { 0035 Q_OBJECT 0036 public: 0037 explicit NoteNetworkConfig(QObject *parent, const KPluginMetaData &data); 0038 /** Reimplemented from KCModule. */ 0039 void load() override; 0040 void save() override; 0041 }; 0042 }