File indexing completed on 2024-10-13 04:29:00
0001 /* 0002 SPDX-FileCopyrightText: 2007 Urs Wolfer <uwolfer@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef HOSTPREFERENCESLIST_H 0008 #define HOSTPREFERENCESLIST_H 0009 0010 #include "mainwindow.h" 0011 0012 #include <KConfigGroup> 0013 0014 #include <QDomDocument> 0015 #include <QPushButton> 0016 #include <QWidget> 0017 0018 class QListWidget; 0019 0020 class HostPreferencesList : public QWidget 0021 { 0022 Q_OBJECT 0023 0024 public: 0025 HostPreferencesList(QWidget *parent, MainWindow *mainWindow, KConfigGroup hostPrefsConfig); 0026 ~HostPreferencesList() override; 0027 0028 private Q_SLOTS: 0029 void readConfig(); 0030 void saveSettings(); 0031 void configureHost(); 0032 void removeHost(); 0033 void selectionChanged(); 0034 0035 private: 0036 KConfigGroup m_hostPrefsConfig; 0037 0038 QPushButton *configureButton; 0039 QPushButton *removeButton; 0040 QListWidget *hostList; 0041 MainWindow *m_mainWindow; 0042 }; 0043 0044 #endif // HOSTPREFERENCESLIST_H