File indexing completed on 2024-05-12 05:48:34

0001 /*
0002     SPDX-FileCopyrightText: 2007 Nicolas Ternisien <nicolas.ternisien@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "apacheConfiguration.h"
0008 
0009 ApacheConfiguration::ApacheConfiguration()
0010 {
0011     mConfiguration->setCurrentGroup(QStringLiteral("ApacheLogMode"));
0012 
0013     const QStringList defaultApachePaths{QStringLiteral("/var/log/apache2/error.log")};
0014     mConfiguration->addItemStringList(QStringLiteral("ApacheLogFilesPaths"), mApachePaths, defaultApachePaths, QStringLiteral("ApacheLogFilesPaths"));
0015 
0016     const QStringList defaultApacheAccessPaths{QStringLiteral("/var/log/apache2/access.log")};
0017     mConfiguration->addItemStringList(QStringLiteral("ApacheAccessLogFilesPaths"),
0018                                       mApacheAccessPaths,
0019                                       defaultApacheAccessPaths,
0020                                       QStringLiteral("ApacheAccessLogFilesPaths"));
0021 }
0022 
0023 ApacheConfiguration::~ApacheConfiguration()
0024 {
0025 }
0026 
0027 QStringList ApacheConfiguration::apachePaths() const
0028 {
0029     return mApachePaths;
0030 }
0031 
0032 QStringList ApacheConfiguration::apacheAccessPaths() const
0033 {
0034     return mApacheAccessPaths;
0035 }
0036 
0037 void ApacheConfiguration::setApachePaths(const QStringList &apachePaths)
0038 {
0039     mApachePaths = apachePaths;
0040 }
0041 
0042 void ApacheConfiguration::setApacheAccessPaths(const QStringList &apacheAccessPaths)
0043 {
0044     mApacheAccessPaths = apacheAccessPaths;
0045 }
0046 
0047 #include "moc_apacheConfiguration.cpp"