summaryrefslogtreecommitdiff
path: root/src/components/ble/weather/WeatherService.h
diff options
context:
space:
mode:
authorAvamander <avamander@gmail.com>2021-06-25 01:18:56 +0300
committerAvamander <avamander@gmail.com>2021-12-04 22:03:40 +0200
commit19c9667a3d597167241ebcb4dfefb4e0cac068df (patch)
tree3536c2e1f2f75bf33e79373c86b1de6ae2fa24e1 /src/components/ble/weather/WeatherService.h
parent2736fa57bb0fd802222f5989584eac64c371b118 (diff)
Started initial work on the UI
Diffstat (limited to 'src/components/ble/weather/WeatherService.h')
-rw-r--r--src/components/ble/weather/WeatherService.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/components/ble/weather/WeatherService.h b/src/components/ble/weather/WeatherService.h
index 53dbebfb..786d4715 100644
--- a/src/components/ble/weather/WeatherService.h
+++ b/src/components/ble/weather/WeatherService.h
@@ -32,7 +32,7 @@
#include "WeatherData.h"
#include <components/datetime/DateTimeController.h>
-int WeatherCallback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt* ctxt, void* arg);
+int WeatherCallback(uint16_t connHandle, uint16_t attrHandle, struct ble_gatt_access_ctxt* ctxt, void* arg);
namespace Pinetime {
namespace System {
@@ -46,20 +46,20 @@ namespace Pinetime {
void Init();
- int OnCommand(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt* ctxt);
+ int OnCommand(uint16_t connHandle, uint16_t attrHandle, struct ble_gatt_access_ctxt* ctxt);
/*
* Helper functions for quick access to currently valid data
*/
- WeatherData::Location getCurrentLocation() const;
- WeatherData::Clouds getCurrentClouds() const;
- WeatherData::Obscuration getCurrentObscuration() const;
- WeatherData::Precipitation getCurrentPrecipitation() const;
- WeatherData::Wind getCurrentWind() const;
- WeatherData::Temperature getCurrentTemperature() const;
- WeatherData::Humidity getCurrentHumidity() const;
- WeatherData::Pressure getCurrentPressure() const;
- WeatherData::AirQuality getCurrentQuality() const;
+ WeatherData::Location GetCurrentLocation() const;
+ WeatherData::Clouds GetCurrentClouds() const;
+ WeatherData::Obscuration GetCurrentObscuration() const;
+ WeatherData::Precipitation GetCurrentPrecipitation() const;
+ WeatherData::Wind GetCurrentWind() const;
+ WeatherData::Temperature GetCurrentTemperature() const;
+ WeatherData::Humidity GetCurrentHumidity() const;
+ WeatherData::Pressure GetCurrentPressure() const;
+ WeatherData::AirQuality GetCurrentQuality() const;
/*
* Management functions
@@ -68,16 +68,16 @@ namespace Pinetime {
* Adds an event to the timeline
* @return
*/
- bool addEventToTimeline(std::unique_ptr<WeatherData::TimelineHeader> event);
+ bool AddEventToTimeline(std::unique_ptr<WeatherData::TimelineHeader> event);
/**
* Gets the current timeline length
*/
- size_t getTimelineLength() const;
+ size_t GetTimelineLength() const;
/**
* Checks if an event of a certain type exists in the timeline
* @return
*/
- bool hasTimelineEventOfType(WeatherData::eventtype type) const;
+ bool HasTimelineEventOfType(const WeatherData::eventtype type) const;
private:
// 00030000-78fc-48fe-8e23-433b3a1942d0
@@ -125,18 +125,18 @@ namespace Pinetime {
* Cleans up the timeline of expired events
* @return result code
*/
- void tidyTimeline();
+ void TidyTimeline();
/**
* Compares two timeline events
*/
- static bool compareTimelineEvents(const std::unique_ptr<WeatherData::TimelineHeader>& first,
+ static bool CompareTimelineEvents(const std::unique_ptr<WeatherData::TimelineHeader>& first,
const std::unique_ptr<WeatherData::TimelineHeader>& second);
/**
* Returns current UNIX timestamp
*/
- uint64_t getCurrentUNIXTimestamp() const;
+ uint64_t GetCurrentUnixTimestamp() const;
};
}
} \ No newline at end of file