Commit b18c23be authored by Volker Krause's avatar Volker Krause
Browse files

Make StatisticsCollectionMode extendable

Its values need to be sorted correctly, so add some space between the
current entries there.
parent 46f87354
......@@ -50,11 +50,10 @@ public:
*/
enum StatisticsCollectionMode {
NoStatistics, ///< Transmit no data at all.
BasicSystemInformation, ///< Transmit basic information about the system.
BasicUsageStatistics, ///< Transmit basic usage statistics.
DetailedSystemInformation, ///< Transmit detailed system information.
DetailedUsageStatistics, ///< Transmit detailed usage statistics.
CollectionModeCount = DetailedUsageStatistics
BasicSystemInformation = 0x10, ///< Transmit basic information about the system.
BasicUsageStatistics = 0x20, ///< Transmit basic usage statistics.
DetailedSystemInformation = 0x30, ///< Transmit detailed system information.
DetailedUsageStatistics = 0x40, ///< Transmit detailed usage statistics.
};
Q_ENUMS(StatisticsCollectionMode)
......
......@@ -51,7 +51,6 @@ public:
FeedbackConfigWidgetPrivate::FeedbackConfigWidgetPrivate()
: provider(nullptr)
{
telemetryModeMap.reserve(Provider::CollectionModeCount);
}
int FeedbackConfigWidgetPrivate::telemetryModeIndex(Provider::StatisticsCollectionMode mode) const
......@@ -200,6 +199,7 @@ void FeedbackConfigWidget::setFeedbackProvider(Provider* provider)
}
d->telemetryModeMap.clear();
d->telemetryModeMap.reserve(5);
d->telemetryModeMap.push_back(Provider::NoStatistics);
d->telemetryModeMap.push_back(Provider::BasicSystemInformation);
d->telemetryModeMap.push_back(Provider::BasicUsageStatistics);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment