2 * SPDX-FileCopyrightText: 2009-2010 Peter Penz <peter.penz19@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0-or-later
6 #ifndef SERVICESSETTINGSPAGE_H
7 #define SERVICESSETTINGSPAGE_H
9 #include "settings/settingspagebase.h"
14 class QSortFilterProxyModel
;
19 * @brief Page for the 'Services' settings of the Dolphin settings dialog.
21 class ServicesSettingsPage
: public SettingsPageBase
26 explicit ServicesSettingsPage(QWidget
* parent
);
27 ~ServicesSettingsPage() override
;
29 /** @see SettingsPageBase::applySettings() */
30 void applySettings() override
;
32 /** @see SettingsPageBase::restoreDefaults() */
33 void restoreDefaults() override
;
36 void showEvent(QShowEvent
* event
) override
;
40 * Loads locally installed services.
46 * Loads installed version control systems.
48 void loadVersionControlSystems();
50 bool isInServicesList(const QString
&service
) const;
53 * Adds a row to the model of m_listView.
55 void addRow(const QString
&icon
,
62 ServiceModel
*m_serviceModel
;
63 QSortFilterProxyModel
*m_sortModel
;
64 QListView
* m_listView
;
65 QLineEdit
*m_searchLineEdit
;
66 QStringList m_enabledVcsPlugins
;