-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f6f9af
commit 5977ace
Showing
12 changed files
with
161 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
pump/combov2/src/main/kotlin/info/nightscout/pump/combov2/keys/ComboBooleanKey.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package info.nightscout.pump.combov2.keys | ||
|
||
import app.aaps.core.keys.interfaces.BooleanPreferenceKey | ||
|
||
enum class ComboBooleanKey( | ||
override val key: String, | ||
override val defaultValue: Boolean, | ||
override val calculatedDefaultValue: Boolean = false, | ||
override val engineeringModeOnly: Boolean = false, | ||
override val defaultedBySM: Boolean = false, | ||
override val showInApsMode: Boolean = true, | ||
override val showInNsClientMode: Boolean = true, | ||
override val showInPumpControlMode: Boolean = true, | ||
override val dependency: BooleanPreferenceKey? = null, | ||
override val negativeDependency: BooleanPreferenceKey? = null, | ||
override val hideParentScreenIfHidden: Boolean = false | ||
) : BooleanPreferenceKey { | ||
|
||
|
||
AutomaticReservoirEntry("combov2_automatic_reservoir_entry", true), | ||
AutomaticBatteryEntry("combov2_automatic_battery_entry", true), | ||
VerboseLogging("combov2_verbose_logging", false), | ||
} |
23 changes: 23 additions & 0 deletions
23
pump/combov2/src/main/kotlin/info/nightscout/pump/combov2/keys/ComboIntKey.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package info.nightscout.pump.combov2.keys | ||
|
||
import app.aaps.core.keys.interfaces.BooleanPreferenceKey | ||
import app.aaps.core.keys.interfaces.IntPreferenceKey | ||
|
||
enum class ComboIntKey( | ||
override val key: String, | ||
override val defaultValue: Int, | ||
override val min: Int = Int.MIN_VALUE, | ||
override val max: Int = Int.MAX_VALUE, | ||
override val calculatedDefaultValue: Boolean = false, | ||
override val engineeringModeOnly: Boolean = false, | ||
override val defaultedBySM: Boolean = false, | ||
override val showInApsMode: Boolean = true, | ||
override val showInNsClientMode: Boolean = true, | ||
override val showInPumpControlMode: Boolean = true, | ||
override val dependency: BooleanPreferenceKey? = null, | ||
override val negativeDependency: BooleanPreferenceKey? = null, | ||
override val hideParentScreenIfHidden: Boolean = false | ||
) : IntPreferenceKey { | ||
|
||
DiscoveryDuration("combov2_bt_discovery_duration", defaultValue = 300, min = 30, max = 300), | ||
} |
14 changes: 14 additions & 0 deletions
14
pump/combov2/src/main/kotlin/info/nightscout/pump/combov2/keys/ComboIntNonKey.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package info.nightscout.pump.combov2.keys | ||
|
||
import app.aaps.core.keys.interfaces.IntNonPreferenceKey | ||
|
||
enum class ComboIntNonKey( | ||
override val key: String, | ||
override val defaultValue: Int | ||
) : IntNonPreferenceKey { | ||
|
||
KeyResponseAddress("combov2-key-response-address-key", 0), | ||
TbrPercentage("combov2-tbr-percentage", 0), | ||
TbrDuration("combov2-tbr-duration", 0), | ||
UtcOffset("combov2-utc-offset", 0), | ||
} |
19 changes: 19 additions & 0 deletions
19
pump/combov2/src/main/kotlin/info/nightscout/pump/combov2/keys/ComboIntentKey.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package info.nightscout.pump.combov2.keys | ||
|
||
import app.aaps.core.keys.interfaces.BooleanPreferenceKey | ||
import app.aaps.core.keys.interfaces.IntentPreferenceKey | ||
|
||
enum class ComboIntentKey( | ||
override val key: String, | ||
override val defaultedBySM: Boolean = false, | ||
override val showInApsMode: Boolean = true, | ||
override val showInNsClientMode: Boolean = true, | ||
override val showInPumpControlMode: Boolean = true, | ||
override val dependency: BooleanPreferenceKey? = null, | ||
override val negativeDependency: BooleanPreferenceKey? = null, | ||
override val hideParentScreenIfHidden: Boolean = false | ||
) : IntentPreferenceKey { | ||
|
||
PairWithPump(key = "combov2_pair_with_pump"), | ||
UnpairPump(key = "combov2_unpair_pump"), | ||
} |
12 changes: 12 additions & 0 deletions
12
pump/combov2/src/main/kotlin/info/nightscout/pump/combov2/keys/ComboLongNonKey.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package info.nightscout.pump.combov2.keys | ||
|
||
import app.aaps.core.keys.interfaces.LongNonPreferenceKey | ||
|
||
@Suppress("unused") | ||
enum class ComboLongNonKey( | ||
override val key: String, | ||
override val defaultValue: Long | ||
) : LongNonPreferenceKey { | ||
|
||
TbrTimestamp("combov2-tbr-timestamp", 0), | ||
} |
16 changes: 16 additions & 0 deletions
16
pump/combov2/src/main/kotlin/info/nightscout/pump/combov2/keys/ComboStringNonKey.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package info.nightscout.pump.combov2.keys | ||
|
||
import app.aaps.core.keys.interfaces.StringNonPreferenceKey | ||
|
||
enum class ComboStringNonKey( | ||
override val key: String, | ||
override val defaultValue: String | ||
) : StringNonPreferenceKey { | ||
|
||
BtAddress("combov2-bt-address-key", ""), | ||
Nonce("combov2-nonce-key", ""), | ||
CpCipher("combov2-cp-cipher-key", ""), | ||
PcCipher("combov2-pc-cipher-key", ""), | ||
PumpID("combov2-pump-id-key", ""), | ||
TbrType("combov2-tbr-type", ""), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.