LCOV - code coverage report
Current view: top level - src/parser - RawNews.h (source / functions) Coverage Total Hit
Test: coverage.info.cleaned Lines: 100.0 % 1 1
Test Date: 2026-01-27 22:31:25 Functions: 100.0 % 2 2

            Line data    Source code
       1              : #ifndef RAWNEWS_H
       2              : #define RAWNEWS_H
       3              : 
       4              : #include <QObject>
       5              : #include <QDateTime>
       6              : #include <QUrl>
       7              : #include <QString>
       8              : 
       9              : #include <QDebug>
      10              : 
      11              : #include "../FangObject.h"
      12              : 
      13              : class RawNews : public FangObject
      14              : {
      15              :     Q_OBJECT
      16              : public:
      17              :     explicit RawNews(QObject *parent = nullptr);
      18              :     
      19         3871 :     virtual ~RawNews() {}
      20              :     
      21              :     QString title;
      22              :     QString author;
      23              :     QString description;
      24              :     QString content;
      25              :     QDateTime timestamp;
      26              :     QUrl url;
      27              :     QString guid; // id, guid, or link URL
      28              :     
      29              :     // For convenience.
      30              :     qint64 dbId;
      31              :     
      32              :     // Sorting
      33              :     bool operator<(const RawNews& right);
      34              :     static bool LessThan(const RawNews* left, const RawNews* right);
      35              :     static bool GreaterThan(const RawNews* left, const RawNews* right);
      36              :     
      37              : };
      38              : 
      39              : #endif // RAWNEWS_H
        

Generated by: LCOV version 2.0-1