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