• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdemultimedia API Reference
  • KDE Home
  • Contact Us
 

libkcddb

  • sources
  • kde-4.14
  • kdemultimedia
  • libkcddb
  • libkcddb
kcddbconfig.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002 Rik Hemsley (rikkus) <rik@kde.org>
3  Copyright (C) 2002 Benjamin Meyer <ben-devel@meyerhome.net>
4  Copyright (C) 2002 Nadeem Hasan <nhasan@kde.org>
5  Copyright (C) 2003 Richard Lärkäng <nouseforaname@home.se>
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
22 
23 #include <libkcddb/kcddbconfig.h>
24 
25 #include <kemailsettings.h>
26 
27 namespace KCDDB
28 {
29  Config::Config()
30  : ConfigBase()
31  {
32  loadEmailSettings();
33  }
34 
35  void Config::loadEmailSettings()
36  {
37  KEMailSettings kes;
38  kes.setProfile( kes.defaultProfileName() );
39 
40  static_cast<KConfigSkeleton::ItemString *>(findItem(QLatin1String( "emailAddress" )))
41  ->setDefaultValue(kes.getSetting( KEMailSettings::EmailAddress ));
42  static_cast<KConfigSkeleton::ItemString *>(findItem(QLatin1String( "replyTo" )))
43  ->setDefaultValue(kes.getSetting( KEMailSettings::ReplyToAddress ));
44  static_cast<KConfigSkeleton::ItemString *>(findItem(QLatin1String( "smtpHostname" )))
45  ->setDefaultValue(kes.getSetting( KEMailSettings::OutServer ));
46  }
47 
48  void Config::reparse()
49  {
50  loadEmailSettings();
51 
52  readConfig();
53  }
54 }
55 
56 // vim:tabstop=2:shiftwidth=2:expandtab:cinoptions=(s,U1,m1
ConfigBase
Definition: configbase.h:15
KCDDB::Config::Config
Config()
Definition: kcddbconfig.cpp:29
KCDDB::Config::reparse
void reparse()
Definition: kcddbconfig.cpp:48
QLatin1String
kcddbconfig.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkcddb

Skip menu "libkcddb"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdemultimedia API Reference

Skip menu "kdemultimedia API Reference"
  • libkcddb
  • libkcompactdisc

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal