c94a59e7d3
This new implementation of the weather feature provides a new BLE API and a new weather service. The API uses a single characteristic that allows companion apps to write the weather conditions (current and forecast for the next 5 days). The SimpleWeather service exposes those data as std::optional fields. This new implementation replaces the previous WeahterService. The API is documented in docs/SimpleWeatherService.md.
57 lines
1.7 KiB
C++
57 lines
1.7 KiB
C++
#pragma once
|
|
|
|
namespace Pinetime {
|
|
namespace Applications {
|
|
class DisplayApp;
|
|
}
|
|
|
|
namespace Components {
|
|
class LittleVgl;
|
|
}
|
|
|
|
namespace Controllers {
|
|
class Battery;
|
|
class Ble;
|
|
class DateTime;
|
|
class NotificationManager;
|
|
class HeartRateController;
|
|
class Settings;
|
|
class MotorController;
|
|
class MotionController;
|
|
class AlarmController;
|
|
class BrightnessController;
|
|
class SimpleWeatherService;
|
|
class FS;
|
|
class Timer;
|
|
class MusicService;
|
|
class NavigationService;
|
|
}
|
|
|
|
namespace System {
|
|
class SystemTask;
|
|
}
|
|
|
|
namespace Applications {
|
|
struct AppControllers {
|
|
const Pinetime::Controllers::Battery& batteryController;
|
|
const Pinetime::Controllers::Ble& bleController;
|
|
Pinetime::Controllers::DateTime& dateTimeController;
|
|
Pinetime::Controllers::NotificationManager& notificationManager;
|
|
Pinetime::Controllers::HeartRateController& heartRateController;
|
|
Pinetime::Controllers::Settings& settingsController;
|
|
Pinetime::Controllers::MotorController& motorController;
|
|
Pinetime::Controllers::MotionController& motionController;
|
|
Pinetime::Controllers::AlarmController& alarmController;
|
|
Pinetime::Controllers::BrightnessController& brightnessController;
|
|
Pinetime::Controllers::SimpleWeatherService* weatherController;
|
|
Pinetime::Controllers::FS& filesystem;
|
|
Pinetime::Controllers::Timer& timer;
|
|
Pinetime::System::SystemTask* systemTask;
|
|
Pinetime::Applications::DisplayApp* displayApp;
|
|
Pinetime::Components::LittleVgl& lvgl;
|
|
Pinetime::Controllers::MusicService* musicService;
|
|
Pinetime::Controllers::NavigationService* navigationService;
|
|
};
|
|
}
|
|
}
|