File indexing completed on 2024-12-15 03:45:04
0001 /* 0002 SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: MIT 0005 */ 0006 0007 #ifndef KUSERFEEDBACK_SCREENINFOSOURCE_H 0008 #define KUSERFEEDBACK_SCREENINFOSOURCE_H 0009 0010 #include "kuserfeedbackcore_export.h" 0011 #include "abstractdatasource.h" 0012 0013 namespace KUserFeedback { 0014 0015 /*! Data source for information about connected displays. 0016 * This provides as array of maps containing the following properties: 0017 * - height: Height of the corresponding screen in pixel. 0018 * - width: Width of the corresponding screen in pixel. 0019 * - dpi: Dots per inch of the corresponding screen. 0020 * 0021 * The default telemetry mode for this source is Provider::DetailedSystemInformation. 0022 */ 0023 class KUSERFEEDBACKCORE_EXPORT ScreenInfoSource : public AbstractDataSource 0024 { 0025 Q_DECLARE_TR_FUNCTIONS(KUserFeedback::ScreenInfoSource) 0026 public: 0027 /*! Create a new screen information source. */ 0028 ScreenInfoSource(); 0029 0030 QString name() const override; 0031 QString description() const override; 0032 0033 QVariant data() override; 0034 }; 0035 0036 } 0037 0038 #endif // KUSERFEEDBACK_SCREENINFOSOURCE_H