File indexing completed on 2024-12-15 03:45:03
0001 /* 0002 SPDX-FileCopyrightText: 2017 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: MIT 0005 */ 0006 0007 #ifndef KUSERFEEDBACK_COMPILERINFOSOURCE_H 0008 #define KUSERFEEDBACK_COMPILERINFOSOURCE_H 0009 0010 #include "abstractdatasource.h" 0011 0012 namespace KUserFeedback { 0013 0014 /*! Data source reporting which compiler was used to build this code. 0015 * @note This will report which compiler was used to build the feedback 0016 * library, which technically does not need to be the same as used for 0017 * the application code. This is particularly true for compilers that 0018 * don't break ABI regularly (such as Clang and GCC), so this information 0019 * is most reliable when this is not the case, e.g. with MSVC. 0020 * 0021 * The default telemetry mode for this source is Provider::BasicSystemInformation. 0022 */ 0023 class KUSERFEEDBACKCORE_EXPORT CompilerInfoSource : public AbstractDataSource 0024 { 0025 public: 0026 Q_DECLARE_TR_FUNCTIONS(KUserFeedback::CompilerInfoSource) 0027 public: 0028 CompilerInfoSource(); 0029 0030 QString name() const override; 0031 QString description() const override; 0032 0033 QVariant data() override; 0034 }; 0035 0036 } 0037 0038 #endif // KUSERFEEDBACK_COMPILERINFOSOURCE_H