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

0001 /*
0002     SPDX-FileCopyrightText: 2007 Nicolas Ternisien <nicolas.ternisien@gmail.com>
0003     SPDX-FileCopyrightText: 2015 Vyacheslav Matyushin
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #pragma once
0009 
0010 #include "logModeConfiguration.h"
0011 
0012 #include "defaults.h"
0013 
0014 #include "journaldLogMode.h"
0015 #include "journaldTypes.h"
0016 
0017 #include "ksystemlogConfig.h"
0018 
0019 using namespace JournaldTypes;
0020 
0021 class JournaldConfiguration : public LogModeConfiguration
0022 {
0023     Q_OBJECT
0024 
0025 public:
0026     enum EntriesType { EntriesAll = 0, EntriesCurrentUser = 1, EntriesSystem = 2 };
0027 
0028     JournaldConfiguration();
0029 
0030     bool displayCurrentBootOnly() const;
0031     void setDisplayCurrentBootOnly(bool displayCurrentBootOnly);
0032 
0033     EntriesType entriesType();
0034     void setEntriesType(EntriesType entriesType);
0035 
0036     QVector<JournalAddress> remoteJournals() const;
0037     void setRemoteJournals(const QVector<JournalAddress> &remoteJournals);
0038 
0039 private:
0040     bool mDisplayCurrentBootOnly;
0041     int mEntriesType;
0042     QStringList mRemoteJournals;
0043 };