[weather] Use initializer list for setting up lookup tables

parent a5ed4c19
......@@ -93,132 +93,131 @@ QMap<QString, IonInterface::ConditionIcons> UKMETIon::setupDayIconMappings() con
// FewCloudsNight, PartlyCloudyNight, ClearNight,
// Mist, NotAvailable
QMap<QString, ConditionIcons> dayList;
dayList.insert(QStringLiteral("sunny"), ClearDay);
//dayList.insert(QStringLiteral("sunny night"), ClearNight);
dayList.insert(QStringLiteral("clear"), ClearDay);
dayList.insert(QStringLiteral("clear sky"), ClearDay);
dayList.insert(QStringLiteral("sunny intervals"), PartlyCloudyDay);
//dayList.insert(QStringLiteral("sunny intervals night"), ClearNight);
dayList.insert(QStringLiteral("partly cloudy"), PartlyCloudyDay);
dayList.insert(QStringLiteral("cloudy"), PartlyCloudyDay);
dayList.insert(QStringLiteral("light cloud"), PartlyCloudyDay);
dayList.insert(QStringLiteral("white cloud"), PartlyCloudyDay);
dayList.insert(QStringLiteral("grey cloud"), Overcast);
dayList.insert(QStringLiteral("thick cloud"), Overcast);
//dayList.insert(QStringLiteral("low level cloud"), NotAvailable);
//dayList.insert(QStringLiteral("medium level cloud"), NotAvailable);
//dayList.insert(QStringLiteral("sandstorm"), NotAvailable);
dayList.insert(QStringLiteral("drizzle"), LightRain);
dayList.insert(QStringLiteral("misty"), Mist);
dayList.insert(QStringLiteral("mist"), Mist);
dayList.insert(QStringLiteral("fog"), Mist);
dayList.insert(QStringLiteral("foggy"), Mist);
dayList.insert(QStringLiteral("tropical storm"), Thunderstorm);
dayList.insert(QStringLiteral("hazy"), NotAvailable);
dayList.insert(QStringLiteral("light shower"), Showers);
dayList.insert(QStringLiteral("light rain shower"), Showers);
dayList.insert(QStringLiteral("light showers"), Showers);
dayList.insert(QStringLiteral("light rain"), Showers);
dayList.insert(QStringLiteral("heavy rain"), Rain);
dayList.insert(QStringLiteral("heavy showers"), Rain);
dayList.insert(QStringLiteral("heavy shower"), Rain);
dayList.insert(QStringLiteral("heavy rain shower"), Rain);
dayList.insert(QStringLiteral("thundery shower"), Thunderstorm);
dayList.insert(QStringLiteral("thunderstorm"), Thunderstorm);
dayList.insert(QStringLiteral("cloudy with sleet"), RainSnow);
dayList.insert(QStringLiteral("sleet shower"), RainSnow);
dayList.insert(QStringLiteral("sleet showers"), RainSnow);
dayList.insert(QStringLiteral("sleet"), RainSnow);
dayList.insert(QStringLiteral("cloudy with hail"), Hail);
dayList.insert(QStringLiteral("hail shower"), Hail);
dayList.insert(QStringLiteral("hail showers"), Hail);
dayList.insert(QStringLiteral("hail"), Hail);
dayList.insert(QStringLiteral("light snow"), LightSnow);
dayList.insert(QStringLiteral("light snow shower"), Flurries);
dayList.insert(QStringLiteral("light snow showers"), Flurries);
dayList.insert(QStringLiteral("cloudy with light snow"), LightSnow);
dayList.insert(QStringLiteral("heavy snow"), Snow);
dayList.insert(QStringLiteral("heavy snow shower"), Snow);
dayList.insert(QStringLiteral("heavy snow showers"), Snow);
dayList.insert(QStringLiteral("cloudy with heavy snow"), Snow);
dayList.insert(QStringLiteral("na"), NotAvailable);
return dayList;
return QMap<QString, ConditionIcons> {
{ QStringLiteral("sunny"), ClearDay },
// { QStringLiteral("sunny night"), ClearNight },
{ QStringLiteral("clear"), ClearDay },
{ QStringLiteral("clear sky"), ClearDay },
{ QStringLiteral("sunny intervals"), PartlyCloudyDay },
// { QStringLiteral("sunny intervals night"), ClearNight },
{ QStringLiteral("partly cloudy"), PartlyCloudyDay },
{ QStringLiteral("cloudy"), PartlyCloudyDay },
{ QStringLiteral("light cloud"), PartlyCloudyDay },
{ QStringLiteral("white cloud"), PartlyCloudyDay },
{ QStringLiteral("grey cloud"), Overcast },
{ QStringLiteral("thick cloud"), Overcast },
// { QStringLiteral("low level cloud"), NotAvailable },
// { QStringLiteral("medium level cloud"), NotAvailable },
// { QStringLiteral("sandstorm"), NotAvailable },
{ QStringLiteral("drizzle"), LightRain },
{ QStringLiteral("misty"), Mist },
{ QStringLiteral("mist"), Mist },
{ QStringLiteral("fog"), Mist },
{ QStringLiteral("foggy"), Mist },
{ QStringLiteral("tropical storm"), Thunderstorm },
{ QStringLiteral("hazy"), NotAvailable },
{ QStringLiteral("light shower"), Showers },
{ QStringLiteral("light rain shower"), Showers },
{ QStringLiteral("light showers"), Showers },
{ QStringLiteral("light rain"), Showers },
{ QStringLiteral("heavy rain"), Rain },
{ QStringLiteral("heavy showers"), Rain },
{ QStringLiteral("heavy shower"), Rain },
{ QStringLiteral("heavy rain shower"), Rain },
{ QStringLiteral("thundery shower"), Thunderstorm },
{ QStringLiteral("thunderstorm"), Thunderstorm },
{ QStringLiteral("cloudy with sleet"), RainSnow },
{ QStringLiteral("sleet shower"), RainSnow },
{ QStringLiteral("sleet showers"), RainSnow },
{ QStringLiteral("sleet"), RainSnow },
{ QStringLiteral("cloudy with hail"), Hail },
{ QStringLiteral("hail shower"), Hail },
{ QStringLiteral("hail showers"), Hail },
{ QStringLiteral("hail"), Hail },
{ QStringLiteral("light snow"), LightSnow },
{ QStringLiteral("light snow shower"), Flurries },
{ QStringLiteral("light snow showers"), Flurries },
{ QStringLiteral("cloudy with light snow"), LightSnow },
{ QStringLiteral("heavy snow"), Snow },
{ QStringLiteral("heavy snow shower"), Snow },
{ QStringLiteral("heavy snow showers"), Snow },
{ QStringLiteral("cloudy with heavy snow"), Snow },
{ QStringLiteral("na"), NotAvailable },
};
}
QMap<QString, IonInterface::ConditionIcons> UKMETIon::setupNightIconMappings() const
{
QMap<QString, ConditionIcons> nightList;
nightList.insert(QStringLiteral("clear"), ClearNight);
nightList.insert(QStringLiteral("clear sky"), ClearNight);
nightList.insert(QStringLiteral("clear intervals"), PartlyCloudyNight);
nightList.insert(QStringLiteral("sunny intervals"), PartlyCloudyDay); // it's not really sunny
nightList.insert(QStringLiteral("sunny"), ClearDay);
nightList.insert(QStringLiteral("light cloud"), PartlyCloudyNight);
nightList.insert(QStringLiteral("partly cloudy"), PartlyCloudyNight);
nightList.insert(QStringLiteral("cloudy"), PartlyCloudyNight);
nightList.insert(QStringLiteral("white cloud"), PartlyCloudyNight);
nightList.insert(QStringLiteral("grey cloud"), Overcast);
nightList.insert(QStringLiteral("thick cloud"), Overcast);
nightList.insert(QStringLiteral("drizzle"), LightRain);
nightList.insert(QStringLiteral("misty"), Mist);
nightList.insert(QStringLiteral("mist"), Mist);
nightList.insert(QStringLiteral("fog"), Mist);
nightList.insert(QStringLiteral("foggy"), Mist);
nightList.insert(QStringLiteral("tropical storm"), Thunderstorm);
nightList.insert(QStringLiteral("hazy"), NotAvailable);
nightList.insert(QStringLiteral("light shower"), Showers);
nightList.insert(QStringLiteral("light rain shower"), Showers);
nightList.insert(QStringLiteral("light showers"), Showers);
nightList.insert(QStringLiteral("light rain"), Showers);
nightList.insert(QStringLiteral("heavy rain"), Rain);
nightList.insert(QStringLiteral("heavy showers"), Rain);
nightList.insert(QStringLiteral("heavy shower"), Rain);
nightList.insert(QStringLiteral("heavy rain shower"), Rain);
nightList.insert(QStringLiteral("thundery shower"), Thunderstorm);
nightList.insert(QStringLiteral("thunderstorm"), Thunderstorm);
nightList.insert(QStringLiteral("cloudy with sleet"), NotAvailable);
nightList.insert(QStringLiteral("sleet shower"), NotAvailable);
nightList.insert(QStringLiteral("sleet showers"), NotAvailable);
nightList.insert(QStringLiteral("sleet"), NotAvailable);
nightList.insert(QStringLiteral("cloudy with hail"), Hail);
nightList.insert(QStringLiteral("hail shower"), Hail);
nightList.insert(QStringLiteral("hail showers"), Hail);
nightList.insert(QStringLiteral("hail"), Hail);
nightList.insert(QStringLiteral("light snow"), LightSnow);
nightList.insert(QStringLiteral("light snow shower"), Flurries);
nightList.insert(QStringLiteral("light snow showers"), Flurries);
nightList.insert(QStringLiteral("cloudy with light snow"), LightSnow);
nightList.insert(QStringLiteral("heavy snow"), Snow);
nightList.insert(QStringLiteral("heavy snow shower"), Snow);
nightList.insert(QStringLiteral("heavy snow showers"), Snow);
nightList.insert(QStringLiteral("cloudy with heavy snow"), Snow);
nightList.insert(QStringLiteral("na"), NotAvailable);
return nightList;
return QMap<QString, ConditionIcons> {
{ QStringLiteral("clear"), ClearNight },
{ QStringLiteral("clear sky"), ClearNight },
{ QStringLiteral("clear intervals"), PartlyCloudyNight },
{ QStringLiteral("sunny intervals"), PartlyCloudyDay }, // it's not really sunny
{ QStringLiteral("sunny"), ClearDay },
{ QStringLiteral("light cloud"), PartlyCloudyNight },
{ QStringLiteral("partly cloudy"), PartlyCloudyNight },
{ QStringLiteral("cloudy"), PartlyCloudyNight },
{ QStringLiteral("white cloud"), PartlyCloudyNight },
{ QStringLiteral("grey cloud"), Overcast },
{ QStringLiteral("thick cloud"), Overcast },
{ QStringLiteral("drizzle"), LightRain },
{ QStringLiteral("misty"), Mist },
{ QStringLiteral("mist"), Mist },
{ QStringLiteral("fog"), Mist },
{ QStringLiteral("foggy"), Mist },
{ QStringLiteral("tropical storm"), Thunderstorm },
{ QStringLiteral("hazy"), NotAvailable },
{ QStringLiteral("light shower"), Showers },
{ QStringLiteral("light rain shower"), Showers },
{ QStringLiteral("light showers"), Showers },
{ QStringLiteral("light rain"), Showers },
{ QStringLiteral("heavy rain"), Rain },
{ QStringLiteral("heavy showers"), Rain },
{ QStringLiteral("heavy shower"), Rain },
{ QStringLiteral("heavy rain shower"), Rain },
{ QStringLiteral("thundery shower"), Thunderstorm },
{ QStringLiteral("thunderstorm"), Thunderstorm },
{ QStringLiteral("cloudy with sleet"), NotAvailable },
{ QStringLiteral("sleet shower"), NotAvailable },
{ QStringLiteral("sleet showers"), NotAvailable },
{ QStringLiteral("sleet"), NotAvailable },
{ QStringLiteral("cloudy with hail"), Hail },
{ QStringLiteral("hail shower"), Hail },
{ QStringLiteral("hail showers"), Hail },
{ QStringLiteral("hail"), Hail },
{ QStringLiteral("light snow"), LightSnow },
{ QStringLiteral("light snow shower"), Flurries },
{ QStringLiteral("light snow showers"), Flurries },
{ QStringLiteral("cloudy with light snow"), LightSnow },
{ QStringLiteral("heavy snow"), Snow },
{ QStringLiteral("heavy snow shower"), Snow },
{ QStringLiteral("heavy snow showers"), Snow },
{ QStringLiteral("cloudy with heavy snow"), Snow },
{ QStringLiteral("na"), NotAvailable },
};
}
QMap<QString, IonInterface::WindDirections> UKMETIon::setupWindIconMappings() const
{
QMap<QString, WindDirections> windDir;
windDir[QStringLiteral("northerly")] = N;
windDir[QStringLiteral("north north easterly")] = NNE;
windDir[QStringLiteral("north easterly")] = NE;
windDir[QStringLiteral("east north easterly")] = ENE;
windDir[QStringLiteral("easterly")] = E;
windDir[QStringLiteral("east south easterly")] = ESE;
windDir[QStringLiteral("south easterly")] = SE;
windDir[QStringLiteral("south south easterly")] = SSE;
windDir[QStringLiteral("southerly")] = S;
windDir[QStringLiteral("south south westerly")] = SSW;
windDir[QStringLiteral("south westerly")] = SW;
windDir[QStringLiteral("west south westerly")] = WSW;
windDir[QStringLiteral("westerly")] = W;
windDir[QStringLiteral("west north westerly")] = WNW;
windDir[QStringLiteral("north westerly")] = NW;
windDir[QStringLiteral("north north westerly")] = NNW;
windDir[QStringLiteral("calm")] = VR;
return windDir;
return QMap<QString, WindDirections> {
{ QStringLiteral("northerly"), N },
{ QStringLiteral("north north easterly"), NNE },
{ QStringLiteral("north easterly"), NE },
{ QStringLiteral("east north easterly"), ENE },
{ QStringLiteral("easterly"), E },
{ QStringLiteral("east south easterly"), ESE },
{ QStringLiteral("south easterly"), SE },
{ QStringLiteral("south south easterly"), SSE },
{ QStringLiteral("southerly"), S },
{ QStringLiteral("south south westerly"), SSW },
{ QStringLiteral("south westerly"), SW },
{ QStringLiteral("west south westerly"), WSW },
{ QStringLiteral("westerly"), W },
{ QStringLiteral("west north westerly"), WNW },
{ QStringLiteral("north westerly"), NW },
{ QStringLiteral("north north westerly"), NNW },
{ QStringLiteral("calm"), VR },
};
}
......
......@@ -53,17 +53,17 @@ WeatherData::WeatherData()
QMap<QString, IonInterface::WindDirections> NOAAIon::setupWindIconMappings() const
{
QMap<QString, WindDirections> windDir;
windDir[QStringLiteral("north")] = N;
windDir[QStringLiteral("northeast")] = NE;
windDir[QStringLiteral("south")] = S;
windDir[QStringLiteral("southwest")] = SW;
windDir[QStringLiteral("east")] = E;
windDir[QStringLiteral("southeast")] = SE;
windDir[QStringLiteral("west")] = W;
windDir[QStringLiteral("northwest")] = NW;
windDir[QStringLiteral("calm")] = VR;
return windDir;
return QMap<QString, WindDirections> {
{ QStringLiteral("north"), N },
{ QStringLiteral("northeast"), NE },
{ QStringLiteral("south"), S },
{ QStringLiteral("southwest"), SW },
{ QStringLiteral("east"), E },
{ QStringLiteral("southeast"), SE },
{ QStringLiteral("west"), W },
{ QStringLiteral("northwest"), NW },
{ QStringLiteral("calm"), VR },
};
}
QMap<QString, IonInterface::ConditionIcons> NOAAIon::setupConditionIconMappings() const
......
......@@ -78,49 +78,47 @@ void WetterComIon::reset()
QMap<QString, IonInterface::ConditionIcons> WetterComIon::setupCommonIconMappings() const
{
QMap<QString, ConditionIcons> conditionList;
conditionList.insert(QStringLiteral("3"), Overcast);
conditionList.insert(QStringLiteral("30"), Overcast);
conditionList.insert(QStringLiteral("4"), Haze);
conditionList.insert(QStringLiteral("40"), Haze);
conditionList.insert(QStringLiteral("45"), Haze);
conditionList.insert(QStringLiteral("48"), Haze);
conditionList.insert(QStringLiteral("49"), Haze);
conditionList.insert(QStringLiteral("5"), Mist);
conditionList.insert(QStringLiteral("50"), Mist);
conditionList.insert(QStringLiteral("51"), Mist);
conditionList.insert(QStringLiteral("53"), Mist);
conditionList.insert(QStringLiteral("55"), Mist);
conditionList.insert(QStringLiteral("56"), FreezingDrizzle);
conditionList.insert(QStringLiteral("57"), FreezingDrizzle);
conditionList.insert(QStringLiteral("6"), Rain);
conditionList.insert(QStringLiteral("60"), LightRain);
conditionList.insert(QStringLiteral("61"), LightRain);
conditionList.insert(QStringLiteral("63"), Rain);
conditionList.insert(QStringLiteral("65"), Rain);
conditionList.insert(QStringLiteral("66"), FreezingRain);
conditionList.insert(QStringLiteral("67"), FreezingRain);
conditionList.insert(QStringLiteral("68"), RainSnow);
conditionList.insert(QStringLiteral("69"), RainSnow);
conditionList.insert(QStringLiteral("7"), Snow);
conditionList.insert(QStringLiteral("70"), LightSnow);
conditionList.insert(QStringLiteral("71"), LightSnow);
conditionList.insert(QStringLiteral("73"), Snow);
conditionList.insert(QStringLiteral("75"), Flurries);
conditionList.insert(QStringLiteral("8"), Showers);
conditionList.insert(QStringLiteral("81"), Showers);
conditionList.insert(QStringLiteral("82"), Showers);
conditionList.insert(QStringLiteral("83"), RainSnow);
conditionList.insert(QStringLiteral("84"), RainSnow);
conditionList.insert(QStringLiteral("85"), Snow);
conditionList.insert(QStringLiteral("86"), Snow);
conditionList.insert(QStringLiteral("9"), Thunderstorm);
conditionList.insert(QStringLiteral("90"), Thunderstorm);
conditionList.insert(QStringLiteral("96"), Thunderstorm);
conditionList.insert(QStringLiteral("999"), NotAvailable);
return conditionList;
return QMap<QString, ConditionIcons> {
{ QStringLiteral("3"), Overcast },
{ QStringLiteral("30"), Overcast },
{ QStringLiteral("4"), Haze },
{ QStringLiteral("40"), Haze },
{ QStringLiteral("45"), Haze },
{ QStringLiteral("48"), Haze },
{ QStringLiteral("49"), Haze },
{ QStringLiteral("5"), Mist },
{ QStringLiteral("50"), Mist },
{ QStringLiteral("51"), Mist },
{ QStringLiteral("53"), Mist },
{ QStringLiteral("55"), Mist },
{ QStringLiteral("56"), FreezingDrizzle },
{ QStringLiteral("57"), FreezingDrizzle },
{ QStringLiteral("6"), Rain },
{ QStringLiteral("60"), LightRain },
{ QStringLiteral("61"), LightRain },
{ QStringLiteral("63"), Rain },
{ QStringLiteral("65"), Rain },
{ QStringLiteral("66"), FreezingRain },
{ QStringLiteral("67"), FreezingRain },
{ QStringLiteral("68"), RainSnow },
{ QStringLiteral("69"), RainSnow },
{ QStringLiteral("7"), Snow },
{ QStringLiteral("70"), LightSnow },
{ QStringLiteral("71"), LightSnow },
{ QStringLiteral("73"), Snow },
{ QStringLiteral("75"), Flurries },
{ QStringLiteral("8"), Showers },
{ QStringLiteral("81"), Showers },
{ QStringLiteral("82"), Showers },
{ QStringLiteral("83"), RainSnow },
{ QStringLiteral("84"), RainSnow },
{ QStringLiteral("85"), Snow },
{ QStringLiteral("86"), Snow },
{ QStringLiteral("9"), Thunderstorm },
{ QStringLiteral("90"), Thunderstorm },
{ QStringLiteral("96"), Thunderstorm },
{ QStringLiteral("999"), NotAvailable },
};
}
QMap<QString, IonInterface::ConditionIcons> WetterComIon::setupDayIconMappings() const
......@@ -167,54 +165,53 @@ QMap<QString, IonInterface::ConditionIcons> const& WetterComIon::nightIcons() co
QHash<QString, QString> WetterComIon::setupCommonConditionMappings() const
{
QHash<QString, QString> conditionList;
conditionList.insert(QStringLiteral("1"), i18nc("weather condition", "few clouds"));
conditionList.insert(QStringLiteral("10"), i18nc("weather condition", "few clouds"));
conditionList.insert(QStringLiteral("2"), i18nc("weather condition", "cloudy"));
conditionList.insert(QStringLiteral("20"), i18nc("weather condition", "cloudy"));
conditionList.insert(QStringLiteral("3"), i18nc("weather condition", "overcast"));
conditionList.insert(QStringLiteral("30"), i18nc("weather condition", "overcast"));
conditionList.insert(QStringLiteral("4"), i18nc("weather condition", "haze"));
conditionList.insert(QStringLiteral("40"), i18nc("weather condition", "haze"));
conditionList.insert(QStringLiteral("45"), i18nc("weather condition", "haze"));
conditionList.insert(QStringLiteral("48"), i18nc("weather condition", "fog with icing"));
conditionList.insert(QStringLiteral("49"), i18nc("weather condition", "fog with icing"));
conditionList.insert(QStringLiteral("5"), i18nc("weather condition", "drizzle"));
conditionList.insert(QStringLiteral("50"), i18nc("weather condition", "drizzle"));
conditionList.insert(QStringLiteral("51"), i18nc("weather condition", "light drizzle"));
conditionList.insert(QStringLiteral("53"), i18nc("weather condition", "drizzle"));
conditionList.insert(QStringLiteral("55"), i18nc("weather condition", "heavy drizzle"));
conditionList.insert(QStringLiteral("56"), i18nc("weather condition", "freezing drizzle"));
conditionList.insert(QStringLiteral("57"), i18nc("weather condition", "heavy freezing drizzle"));
conditionList.insert(QStringLiteral("6"), i18nc("weather condition", "rain"));
conditionList.insert(QStringLiteral("60"), i18nc("weather condition", "light rain"));
conditionList.insert(QStringLiteral("61"), i18nc("weather condition", "light rain"));
conditionList.insert(QStringLiteral("63"), i18nc("weather condition", "moderate rain"));
conditionList.insert(QStringLiteral("65"), i18nc("weather condition", "heavy rain"));
conditionList.insert(QStringLiteral("66"), i18nc("weather condition", "light freezing rain"));
conditionList.insert(QStringLiteral("67"), i18nc("weather condition", "freezing rain"));
conditionList.insert(QStringLiteral("68"), i18nc("weather condition", "light rain snow"));
conditionList.insert(QStringLiteral("69"), i18nc("weather condition", "heavy rain snow"));
conditionList.insert(QStringLiteral("7"), i18nc("weather condition", "snow"));
conditionList.insert(QStringLiteral("70"), i18nc("weather condition", "light snow"));
conditionList.insert(QStringLiteral("71"), i18nc("weather condition", "light snow"));
conditionList.insert(QStringLiteral("73"), i18nc("weather condition", "moderate snow"));
conditionList.insert(QStringLiteral("75"), i18nc("weather condition", "heavy snow"));
conditionList.insert(QStringLiteral("8"), i18nc("weather condition", "showers"));
conditionList.insert(QStringLiteral("80"), i18nc("weather condition", "light showers"));
conditionList.insert(QStringLiteral("81"), i18nc("weather condition", "showers"));
conditionList.insert(QStringLiteral("82"), i18nc("weather condition", "heavy showers"));
conditionList.insert(QStringLiteral("83"), i18nc("weather condition", "light snow rain showers"));
conditionList.insert(QStringLiteral("84"), i18nc("weather condition", "heavy snow rain showers"));
conditionList.insert(QStringLiteral("85"), i18nc("weather condition", "light snow showers"));
conditionList.insert(QStringLiteral("86"), i18nc("weather condition", "snow showers"));
conditionList.insert(QStringLiteral("9"), i18nc("weather condition", "thunderstorm"));
conditionList.insert(QStringLiteral("90"), i18nc("weather condition", "thunderstorm"));
conditionList.insert(QStringLiteral("95"), i18nc("weather condition", "light thunderstorm"));
conditionList.insert(QStringLiteral("96"), i18nc("weather condition", "heavy thunderstorm"));
conditionList.insert(QStringLiteral("999"), i18nc("weather condition", "n/a"));
return conditionList;
return QHash<QString, QString> {
{ QStringLiteral("1"), i18nc("weather condition", "few clouds") },
{ QStringLiteral("10"), i18nc("weather condition", "few clouds") },
{ QStringLiteral("2"), i18nc("weather condition", "cloudy") },
{ QStringLiteral("20"), i18nc("weather condition", "cloudy") },
{ QStringLiteral("3"), i18nc("weather condition", "overcast") },
{ QStringLiteral("30"), i18nc("weather condition", "overcast") },
{ QStringLiteral("4"), i18nc("weather condition", "haze") },
{ QStringLiteral("40"), i18nc("weather condition", "haze") },
{ QStringLiteral("45"), i18nc("weather condition", "haze") },
{ QStringLiteral("48"), i18nc("weather condition", "fog with icing") },
{ QStringLiteral("49"), i18nc("weather condition", "fog with icing") },
{ QStringLiteral("5"), i18nc("weather condition", "drizzle") },
{ QStringLiteral("50"), i18nc("weather condition", "drizzle") },
{ QStringLiteral("51"), i18nc("weather condition", "light drizzle") },
{ QStringLiteral("53"), i18nc("weather condition", "drizzle") },
{ QStringLiteral("55"), i18nc("weather condition", "heavy drizzle") },
{ QStringLiteral("56"), i18nc("weather condition", "freezing drizzle") },
{ QStringLiteral("57"), i18nc("weather condition", "heavy freezing drizzle") },
{ QStringLiteral("6"), i18nc("weather condition", "rain") },
{ QStringLiteral("60"), i18nc("weather condition", "light rain") },
{ QStringLiteral("61"), i18nc("weather condition", "light rain") },
{ QStringLiteral("63"), i18nc("weather condition", "moderate rain") },
{ QStringLiteral("65"), i18nc("weather condition", "heavy rain") },
{ QStringLiteral("66"), i18nc("weather condition", "light freezing rain") },
{ QStringLiteral("67"), i18nc("weather condition", "freezing rain") },
{ QStringLiteral("68"), i18nc("weather condition", "light rain snow") },
{ QStringLiteral("69"), i18nc("weather condition", "heavy rain snow") },
{ QStringLiteral("7"), i18nc("weather condition", "snow") },
{ QStringLiteral("70"), i18nc("weather condition", "light snow") },
{ QStringLiteral("71"), i18nc("weather condition", "light snow") },
{ QStringLiteral("73"), i18nc("weather condition", "moderate snow") },
{ QStringLiteral("75"), i18nc("weather condition", "heavy snow") },
{ QStringLiteral("8"), i18nc("weather condition", "showers") },
{ QStringLiteral("80"), i18nc("weather condition", "light showers") },
{ QStringLiteral("81"), i18nc("weather condition", "showers") },
{ QStringLiteral("82"), i18nc("weather condition", "heavy showers") },
{ QStringLiteral("83"), i18nc("weather condition", "light snow rain showers") },
{ QStringLiteral("84"), i18nc("weather condition", "heavy snow rain showers") },
{ QStringLiteral("85"), i18nc("weather condition", "light snow showers") },
{ QStringLiteral("86"), i18nc("weather condition", "snow showers") },
{ QStringLiteral("9"), i18nc("weather condition", "thunderstorm") },
{ QStringLiteral("90"), i18nc("weather condition", "thunderstorm") },
{ QStringLiteral("95"), i18nc("weather condition", "light thunderstorm") },
{ QStringLiteral("96"), i18nc("weather condition", "heavy thunderstorm") },
{ QStringLiteral("999"), i18nc("weather condition", "n/a") },
};
}
QHash<QString, QString> WetterComIon::setupDayConditionMappings() const
......
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