1 /*
2     SPDX-FileCopyrightText: 2007 Nicolas Ternisien <nicolas.ternisien@gmail.com>
3     SPDX-FileCopyrightText: 2015 Vyacheslav Matyushin
4 
5     SPDX-License-Identifier: GPL-2.0-or-later
6 */
7 
8 #pragma once
9 
10 #include "logModeConfiguration.h"
11 
12 #include "defaults.h"
13 
14 #include "journaldLogMode.h"
15 #include "journaldTypes.h"
16 
17 #include "ksystemlogConfig.h"
18 
19 using namespace JournaldTypes;
20 
21 class JournaldConfiguration : public LogModeConfiguration
22 {
23     Q_OBJECT
24 
25 public:
26     enum EntriesType { EntriesAll = 0, EntriesCurrentUser = 1, EntriesSystem = 2 };
27 
28     JournaldConfiguration();
29 
30     bool displayCurrentBootOnly() const;
31     void setDisplayCurrentBootOnly(bool displayCurrentBootOnly);
32 
33     EntriesType entriesType();
34     void setEntriesType(EntriesType entriesType);
35 
36     QVector<JournalAddress> remoteJournals() const;
37     void setRemoteJournals(const QVector<JournalAddress> &remoteJournals);
38 
39 private:
40     bool mDisplayCurrentBootOnly;
41     int mEntriesType;
42     QStringList mRemoteJournals;
43 };
44 
45