Added remote data output sections to SettingsScreen.kt

This commit is contained in:
Arty Bishop committed 2025-12-27 15:02:15 +00:00
1 parent a68e466040
commit a835ac4e07
8 files changed
+246 -129

No files matched your search

@@ -12,6 +12,16 @@ data class PassesSettings(
val selectedModes: List<String>
)
data class RCSettings(
val rotatorState: Boolean,
val rotatorAddress: String,
val rotatorPort: String,
val bluetoothState: Boolean,
val bluetoothFormat: String,
val bluetoothName: String,
val bluetoothAddress: String,
)
data class OtherSettings(
val stateOfAutoUpdate: Boolean,
val stateOfSensors: Boolean,
@@ -20,6 +20,7 @@ package com.rtbishop.look4sat.domain.repository
import com.rtbishop.look4sat.domain.model.DatabaseState
import com.rtbishop.look4sat.domain.model.OtherSettings
import com.rtbishop.look4sat.domain.model.PassesSettings
import com.rtbishop.look4sat.domain.model.RCSettings
import com.rtbishop.look4sat.domain.predict.GeoPos
import kotlinx.coroutines.flow.StateFlow
@@ -51,6 +52,17 @@ interface ISettingsRepo {
fun updateDatabaseState(state: DatabaseState)
//endregion
//region # RC settings
val rcSettings: StateFlow<RCSettings>
fun setBluetoothAddress(value: String)
fun setBluetoothFormat(value: String)
fun setBluetoothName(value: String)
fun setBluetoothState(value: Boolean)
fun setRotatorAddress(value: String)
fun setRotatorPort(value: String)
fun setRotatorState(value: Boolean)
//endregion
//region # Other settings
val otherSettings: StateFlow<OtherSettings>
fun setStateOfAutoUpdate(value: Boolean)
@@ -61,21 +73,4 @@ interface ISettingsRepo {
fun setWarningDismissed()
fun setWelcomeDismissed()
//endregion
//region # Undefined settings
fun getBluetoothAddress(): String
fun setBluetoothAddress(value: String)
fun getBluetoothFormat(): String
fun setBluetoothFormat(value: String)
fun getBluetoothName(): String
fun setBluetoothName(value: String)
fun getBluetoothState(): Boolean
fun setBluetoothState(value: Boolean)
fun getRotatorAddress(): String
fun setRotatorAddress(value: String)
fun getRotatorPort(): String
fun setRotatorPort(value: String)
fun getRotatorState(): Boolean
fun setRotatorState(value: Boolean)
//endregion
}