LCOV - code coverage report
Current view: top level - src/db - DBSettingsInterface.h (source / functions) Coverage Total Hit
Test: coverage.info.cleaned Lines: 100.0 % 2 2
Test Date: 2026-03-23 10:19:47 Functions: 66.7 % 3 2

            Line data    Source code
       1              : #ifndef DBSETTINGSINTERFACE_H
       2              : #define DBSETTINGSINTERFACE_H
       3              : 
       4              : #include <QObject>
       5              : #include <QString>
       6              : #include "../FangObject.h"
       7              : #include "DBSettingsKey.h"
       8              : 
       9              : /*!
      10              :     \brief Interface for DBSettings allowing mock implementations for testing.
      11              :  */
      12              : class DBSettingsInterface : public FangObject
      13              : {
      14              :     Q_OBJECT
      15              : public:
      16           33 :     explicit DBSettingsInterface(FangObject *parent = nullptr) : FangObject(parent) {}
      17           33 :     virtual ~DBSettingsInterface() = default;
      18              : 
      19              : signals:
      20              :     void settingChanged(DBSettingsKey key, QString value);
      21              : 
      22              : public slots:
      23              :     virtual void set(DBSettingsKey key, const QString& value) = 0;
      24              :     virtual QString get(DBSettingsKey key) = 0;
      25              : };
      26              : 
      27              : #endif // DBSETTINGSINTERFACE_H
        

Generated by: LCOV version 2.0-1