File indexing completed on 2024-11-24 04:43:52

0001 /*
0002     SPDX-FileCopyrightText: 2017 Krzysztof Nowicki <krissn@op.pl>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QLoggingCategory>
0010 #include <QWidget>
0011 #include <functional>
0012 
0013 Q_DECLARE_LOGGING_CATEGORY(EWSRES_LOG)
0014 
0015 class EwsSettingsBase : public QObject
0016 {
0017     Q_OBJECT
0018 public:
0019     class Config
0020     {
0021     public:
0022         QString name() const
0023         {
0024             return QStringLiteral("test_resource_name");
0025         }
0026     };
0027 
0028     EwsSettingsBase() = default;
0029 
0030     ~EwsSettingsBase() override = default;
0031     QString username() const
0032     {
0033         return QStringLiteral("testuser");
0034     }
0035 
0036     QString email() const
0037     {
0038         return QStringLiteral("test@example.com");
0039     }
0040 
0041     const Config *config() const
0042     {
0043         return &mConfig;
0044     }
0045 
0046     Config mConfig;
0047 };