File indexing completed on 2024-12-08 04:34:37
0001 /* 0002 SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "ruqolauserfeedbackprovider.h" 0008 #include "accountinfosource.h" 0009 0010 #include <KUserFeedback/ApplicationVersionSource> 0011 #include <KUserFeedback/LocaleInfoSource> 0012 #include <KUserFeedback/PlatformInfoSource> 0013 #include <KUserFeedback/QtVersionSource> 0014 #include <KUserFeedback/ScreenInfoSource> 0015 #include <KUserFeedback/StartCountSource> 0016 #include <KUserFeedback/UsageTimeSource> 0017 0018 RuqolaUserFeedbackProvider::RuqolaUserFeedbackProvider(QObject *parent) 0019 : KUserFeedback::Provider(parent) 0020 { 0021 setProductIdentifier(QStringLiteral("org.kde.ruqola")); 0022 setFeedbackServer(QUrl(QStringLiteral("https://telemetry.kde.org/"))); 0023 setSubmissionInterval(7); 0024 setApplicationStartsUntilEncouragement(5); 0025 setEncouragementDelay(30); 0026 0027 addDataSource(new KUserFeedback::ApplicationVersionSource); 0028 addDataSource(new KUserFeedback::PlatformInfoSource); 0029 addDataSource(new KUserFeedback::ScreenInfoSource); 0030 addDataSource(new KUserFeedback::QtVersionSource); 0031 0032 addDataSource(new KUserFeedback::StartCountSource); 0033 addDataSource(new KUserFeedback::UsageTimeSource); 0034 0035 addDataSource(new KUserFeedback::LocaleInfoSource); 0036 0037 addDataSource(new AccountInfoSource); 0038 } 0039 0040 RuqolaUserFeedbackProvider::~RuqolaUserFeedbackProvider() = default; 0041 0042 #include "moc_ruqolauserfeedbackprovider.cpp"