File indexing completed on 2024-05-05 05:48:57

0001 /*
0002     SPDX-FileCopyrightText: 2007 Nicolas Ternisien <nicolas.ternisien@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QDataStream>
0010 #include <QDebug>
0011 #include <QString>
0012 
0013 #include "globals.h"
0014 
0015 class LogViewColumn
0016 {
0017 public:
0018     LogViewColumn(const LogViewColumn &column);
0019 
0020     /*
0021      * TODO For the moment, filtered and grouped parameters are useless : Use them or remove them
0022      */
0023     explicit LogViewColumn(const QString &name, bool filtered = true, bool grouped = true);
0024 
0025     virtual ~LogViewColumn();
0026 
0027     QString columnName() const;
0028     bool isGrouped() const;
0029     bool isFiltered() const;
0030 
0031     LogViewColumn &operator=(const LogViewColumn &column);
0032 
0033 private:
0034     QString mColumnName;
0035 
0036     bool mFiltered;
0037     bool mGrouped;
0038 };
0039 
0040 QDataStream &operator<<(QDataStream &out, const LogViewColumn &column);
0041 QDebug &operator<<(QDebug &out, const LogViewColumn &column);