11 #include "settings/lib/ISettingCallback.h" 12 #include "utils/InfoLoader.h" 16 #define WEATHER_LABEL_LOCATION 10 17 #define WEATHER_IMAGE_CURRENT_ICON 21 18 #define WEATHER_LABEL_CURRENT_COND 22 19 #define WEATHER_LABEL_CURRENT_TEMP 23 20 #define WEATHER_LABEL_CURRENT_FEEL 24 21 #define WEATHER_LABEL_CURRENT_UVID 25 22 #define WEATHER_LABEL_CURRENT_WIND 26 23 #define WEATHER_LABEL_CURRENT_DEWP 27 24 #define WEATHER_LABEL_CURRENT_HUMI 28 26 static const std::string ICON_ADDON_PATH =
"resource://resource.images.weathericons.default";
31 std::string m_overview;
46 lastUpdateTime.clear();
48 currentConditions.clear();
49 currentTemperature.clear();
50 currentFeelsLike.clear();
52 currentHumidity.clear();
53 currentUVIndex.clear();
54 currentDewPoint.clear();
66 std::string lastUpdateTime;
68 std::string currentIcon;
69 std::string currentConditions;
70 std::string currentTemperature;
71 std::string currentFeelsLike;
72 std::string currentUVIndex;
73 std::string currentWind;
74 std::string currentDewPoint;
75 std::string currentHumidity;
76 std::string busyString;
86 static bool GetSearchResults(
const std::string &strSearch, std::string &strResult);
88 std::string GetLocation(
int iLocation);
89 const std::string& GetLastUpdateTime()
const {
return m_info.lastUpdateTime; }
94 void SetArea(
int iLocation);
97 CJob *GetJob()
const override;
98 std::string TranslateInfo(
int info)
const override;
99 std::string BusyInfo(
int info)
const override;
100 void OnJobComplete(
unsigned int jobID,
bool success,
CJob *job)
override;
102 void OnSettingChanged(
const std::shared_ptr<const CSetting>& setting)
override;
103 void OnSettingAction(
const std::shared_ptr<const CSetting>& setting)
override;
Definition: WeatherManager.h:39
Base class for jobs that are executed asynchronously.
Definition: Job.h:109
Definition: ISettingCallback.h:16
Definition: InfoLoader.h:15
Definition: WeatherManager.h:80
Definition: WeatherManager.h:28