File indexing completed on 2024-05-19 05:49:16

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 <QStringList>
0011 
0012 namespace JournaldTypes
0013 {
0014 struct JournalAddress {
0015     QString address;
0016     quint16 port = 0;
0017     bool https = false;
0018 };
0019 
0020 bool operator<(const JournalAddress &a1, const JournalAddress &a2);
0021 
0022 struct JournalFilters {
0023     QStringList syslogIdentifiers;
0024     QStringList systemdUnits;
0025 };
0026 
0027 enum class JournaldAnalyzerType { Local, Network };
0028 
0029 struct JournaldAnalyzerOptions {
0030     JournaldAnalyzerType analyzerType = JournaldAnalyzerType::Local;
0031     QString filter;
0032     JournalAddress address;
0033 };
0034 
0035 extern const char *ConsoleColorEscapeSequence;
0036 }