classDiagram
class SettingsData
link SettingsData "https://github.com/juliannojungle/OpenCC/blob/main/src/opencc.hpp"
class TaskManager {
-SettingsData *settings_
-List~*iDevice~ devices_
-List~*BasePage~ pages_
-ReadSettings() SettingsData
-DisplayPage(BasePage *page)
-StartDevice(iDevice *device)
+Run()
}
link TaskManager "https://github.com/juliannojungle/OpenCC/blob/main/src/task_manager.cpp"
TaskManager ..|> BasePage
TaskManager ..|> iDevice
TaskManager ..> SettingsData : Reads
class BasePage {
<<interface>>
-SensorData *data_
-SettingsData *settings_
-ReadData() SensorData
-WriteSettings(SettingsData *settings)
-ReadSettings() SettingsData
+PreviousPage()
+NextPage()
}
link BasePage "https://github.com/juliannojungle/OpenCC/blob/main/src/gui/pages/BasePage.cpp"
class iSensor {
<<interface>>
#bool enabled_
+Enabled()
+Enable()
+Disable()
}
link iSensor "https://github.com/juliannojungle/OpenCC/blob/main/src/sensors/iSensor.hpp"
class iDevice {
<<interface>>
#bool connected_
#List~iSensor~ sensors_
-SettingsData *settings
+Connect()
+Connected()
}
link iDevice "https://github.com/juliannojungle/OpenCC/blob/main/src/devices/iDevice.hpp"
class SensorData
link SensorData "https://github.com/juliannojungle/OpenCC/blob/main/src/opencc.hpp"
iDevice "1" --* "1..*" iSensor : Contains
SensorData <.. iDevice : Writes
BasePage "1" ..> "1..*" SensorData : Reads
SettingsData <.. BasePage : Reads/Writes
iDevice ..> SettingsData : Reads