KNotifyConfig
8#include "knotifyconfigelement.h"
11#include <KConfigGroup>
13KNotifyConfigElement::KNotifyConfigElement(
const QString &eventid,
KConfig *config)
14 : m_config(new
KConfigGroup(config, QStringLiteral(
"Event/") + eventid))
19KNotifyConfigElement::~KNotifyConfigElement()
24QString KNotifyConfigElement::readEntry(
const QString &entry,
bool path)
26 if (m_cache.contains(entry)) {
27 return m_cache[entry];
29 return path ? m_config->readPathEntry(entry, QString()) : m_config->readEntry(entry, QString());
32void KNotifyConfigElement::writeEntry(
const QString &entry,
const QString &data)
34 m_cache[entry] = data;
37QString KNotifyConfigElement::eventId()
const
42void KNotifyConfigElement::save()
44 QMap<QString, QString>::const_iterator it = m_cache.
constBegin();
45 for (; it != m_cache.constEnd(); ++it) {
46 m_config->writeEntry(it.key(), it.value());
QString path(const QString &relativePath)
const_iterator constBegin() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:35 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.