mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-07 06:44:18 +00:00
46 lines
1018 B
C++
46 lines
1018 B
C++
/*
|
|
SPDX-FileCopyrightText: 2009-2010 Trever Fischer <tdfischer@fedoraproject.org>
|
|
SPDX-FileCopyrightText: 2015 Kai Uwe Broulik <kde@privat.broulik.de>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef DEVICEAUTOMOUNTERKCM_H
|
|
#define DEVICEAUTOMOUNTERKCM_H
|
|
|
|
#include <KCModule>
|
|
|
|
#include "ui_DeviceAutomounterKCM.h"
|
|
|
|
class DeviceModel;
|
|
class AutomounterSettings;
|
|
|
|
class DeviceAutomounterKCM : public KCModule, public Ui::DeviceAutomounterKCM
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit DeviceAutomounterKCM(QWidget *parent = nullptr, const QVariantList &args = QVariantList());
|
|
~DeviceAutomounterKCM() override;
|
|
|
|
public Q_SLOTS:
|
|
void load() override;
|
|
void save() override;
|
|
void defaults() override;
|
|
|
|
private Q_SLOTS:
|
|
void updateForgetDeviceButton();
|
|
void forgetSelectedDevices();
|
|
void updateState();
|
|
|
|
private:
|
|
void saveLayout();
|
|
void loadLayout();
|
|
|
|
AutomounterSettings *const m_settings;
|
|
DeviceModel *const m_devices;
|
|
bool m_unmanagedChanges = false;
|
|
};
|
|
|
|
#endif
|