KCDDB

config.cpp
1/*
2 SPDX-FileCopyrightText: 2002 Rik Hemsley (rikkus) <rik@kde.org>
3 SPDX-FileCopyrightText: 2002 Benjamin Meyer <ben-devel@meyerhome.net>
4 SPDX-FileCopyrightText: 2002 Nadeem Hasan <nhasan@kde.org>
5 SPDX-FileCopyrightText: 2003 Richard Lärkäng <nouseforaname@home.se>
6
7 SPDX-License-Identifier: LGPL-2.0-or-later
8*/
9
10#include "config.h"
11
12#include <KEMailSettings>
13
14namespace KCDDB
15{
16 Config::Config()
17 : ConfigBase()
18 {
19 loadEmailSettings();
20 }
21
22 void Config::loadEmailSettings()
23 {
25 kes.setProfile( kes.defaultProfileName() );
26
27 static_cast<KConfigSkeleton::ItemString *>(findItem(QLatin1String( "emailAddress" )))
28 ->setDefaultValue(kes.getSetting( KEMailSettings::EmailAddress ));
29 }
30
31 void Config::reparse()
32 {
33 loadEmailSettings();
34
35 load();
36 }
37}
38
39// vim:tabstop=2:shiftwidth=2:expandtab:cinoptions=(s,U1,m1
QString getSetting(KEMailSettings::Setting s) const
void setProfile(const QString &s)
QString defaultProfileName() const
QAction * load(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.