QortalOS Brooklyn for Raspberry Pi 4
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.
 
 
 
 
 
 

52 lines
1.6 KiB

/*
SPDX-FileCopyrightText: 2020 Cyril Rossi <[email protected]>
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#pragma once
#include <QObject>
#include <KCModuleData>
namespace NotificationManager
{
class DoNotDisturbSettings;
class NotificationSettings;
class JobSettings;
class BadgeSettings;
class BehaviorSettings;
}
class NotificationsData : public KCModuleData
{
Q_OBJECT
public:
explicit NotificationsData(QObject *parent = nullptr, const QVariantList &args = QVariantList());
bool isDefaults() const override;
NotificationManager::DoNotDisturbSettings *dndSettings() const;
NotificationManager::NotificationSettings *notificationSettings() const;
NotificationManager::JobSettings *jobSettings() const;
NotificationManager::BadgeSettings *badgeSettings() const;
NotificationManager::BehaviorSettings *behaviorSettings(int index) const;
void insertBehaviorSettings(int index, NotificationManager::BehaviorSettings *settings);
void loadBehaviorSettings();
void saveBehaviorSettings();
void defaultsBehaviorSettings();
bool isSaveNeededBehaviorSettings() const;
bool isDefaultsBehaviorSettings() const;
private:
void readBehaviorSettings();
NotificationManager::DoNotDisturbSettings *m_dndSettings;
NotificationManager::NotificationSettings *m_notificationSettings;
NotificationManager::JobSettings *m_jobSettings;
NotificationManager::BadgeSettings *m_badgeSettings;
QHash<int, NotificationManager::BehaviorSettings *> m_behaviorSettingsList;
};