File indexing completed on 2025-01-05 03:57:13
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2003-16-10 0007 * Description : application settings interface 0008 * 0009 * SPDX-FileCopyrightText: 2003-2004 by Renchi Raju <renchi dot raju at gmail dot com> 0010 * SPDX-FileCopyrightText: 2003-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0011 * SPDX-FileCopyrightText: 2007 by Arnd Baecker <arnd dot baecker at web dot de> 0012 * SPDX-FileCopyrightText: 2014 by Mohamed_Anwer <m_dot_anwer at gmx dot com> 0013 * SPDX-FileCopyrightText: 2014 by Veaceslav Munteanu <veaceslav dot munteanu90 at gmail dot com> 0014 * 0015 * SPDX-License-Identifier: GPL-2.0-or-later 0016 * 0017 * ============================================================ */ 0018 0019 #include "applicationsettings_p.h" 0020 0021 namespace Digikam 0022 { 0023 0024 void ApplicationSettings::setSyncBalooToDigikam(bool val) 0025 { 0026 d->syncToDigikam = val; 0027 0028 Q_EMIT balooSettingsChanged(); 0029 } 0030 0031 bool ApplicationSettings::getSyncBalooToDigikam() const 0032 { 0033 return d->syncToDigikam; 0034 } 0035 0036 void ApplicationSettings::setSyncDigikamToBaloo(bool val) 0037 { 0038 d->syncToBaloo = val; 0039 0040 Q_EMIT balooSettingsChanged(); 0041 } 0042 0043 bool ApplicationSettings::getSyncDigikamToBaloo() const 0044 { 0045 return d->syncToBaloo; 0046 } 0047 0048 DbEngineParameters ApplicationSettings::getDbEngineParameters() const 0049 { 0050 return d->databaseParams; 0051 } 0052 0053 void ApplicationSettings::setDbEngineParameters(const DbEngineParameters& params) 0054 { 0055 d->databaseParams = params; 0056 } 0057 0058 } // namespace Digikam