You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
814 B
38 lines
814 B
/* |
|
SPDX-FileCopyrightText: 2018 Daniel Vrátil <dvratil@kde.org> |
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later |
|
*/ |
|
|
|
#ifndef SETTINGSDIALOG_H_ |
|
#define SETTINGSDIALOG_H_ |
|
|
|
#include <QDialog> |
|
|
|
#include <KSharedConfig> |
|
|
|
#include "unifiedmailboxmanager.h" |
|
|
|
class QStandardItemModel; |
|
class MailKernel; |
|
|
|
class SettingsDialog : public QDialog |
|
{ |
|
Q_OBJECT |
|
public: |
|
explicit SettingsDialog(const KSharedConfigPtr &config, UnifiedMailboxManager &manager, WId windowId, QWidget *parent = nullptr); |
|
~SettingsDialog() override; |
|
private: |
|
void loadBoxes(); |
|
void addBox(UnifiedMailbox *box); |
|
|
|
private: |
|
void readConfig(); |
|
void writeConfig(); |
|
QStandardItemModel *mBoxModel = nullptr; |
|
UnifiedMailboxManager &mBoxManager; |
|
MailKernel *const mKernel; |
|
const KSharedConfigPtr mConfig; |
|
}; |
|
|
|
#endif
|
|
|