File indexing completed on 2024-04-21 04:54:18

0001 /*
0002     SPDX-FileCopyrightText: 2002 Rik Hemsley (rikkus) <rik@kde.org>
0003     SPDX-FileCopyrightText: 2002 Benjamin Meyer <ben-devel@meyerhome.net>
0004     SPDX-FileCopyrightText: 2002 Nadeem Hasan <nhasan@kde.org>
0005     SPDX-FileCopyrightText: 2003 Richard Lärkäng <nouseforaname@home.se>
0006 
0007     SPDX-License-Identifier: LGPL-2.0-or-later
0008 */
0009 
0010 #include "config.h"
0011 
0012 #include <KEMailSettings>
0013 
0014 namespace KCDDB
0015 {
0016   Config::Config()
0017     : ConfigBase()
0018   {
0019     loadEmailSettings();
0020   }
0021 
0022   void Config::loadEmailSettings()
0023   {
0024     KEMailSettings kes;
0025     kes.setProfile( kes.defaultProfileName() );
0026 
0027     static_cast<KConfigSkeleton::ItemString *>(findItem(QLatin1String( "emailAddress" )))
0028       ->setDefaultValue(kes.getSetting( KEMailSettings::EmailAddress ));
0029   }
0030 
0031   void Config::reparse()
0032   {
0033     loadEmailSettings();
0034 
0035     load();
0036   }
0037 }
0038 
0039 // vim:tabstop=2:shiftwidth=2:expandtab:cinoptions=(s,U1,m1