mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Qecnato S10 (GloryFit): Initial support
This commit is contained in:
committed by
José Rebelo
parent
7ff237bdfd
commit
f4653e58f8
+44
@@ -0,0 +1,44 @@
|
||||
/* Copyright (C) 2025 Jonathan Albrieux
|
||||
|
||||
This file is part of Gadgetbridge.
|
||||
|
||||
Gadgetbridge is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Gadgetbridge is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
||||
package nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.R
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.GloryFitCoordinator
|
||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice
|
||||
import java.util.regex.Pattern
|
||||
|
||||
class QecnatoS10Coordinator : GloryFitCoordinator() {
|
||||
override fun getManufacturer(): String {
|
||||
return "Qecnato"
|
||||
}
|
||||
|
||||
override fun getSupportedDeviceName(): Pattern? {
|
||||
return Pattern.compile("^S10$")
|
||||
}
|
||||
|
||||
override fun getDeviceNameResource(): Int {
|
||||
return R.string.devicetype_qecnato_s10
|
||||
}
|
||||
|
||||
override fun getBondingStyle(): Int {
|
||||
return BONDING_STYLE_NONE
|
||||
}
|
||||
|
||||
override fun getAlarmSlotCount(device: GBDevice): Int {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
@@ -171,6 +171,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.HaylouWatch
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.ImikiFrame2Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.OukitelBT103Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.R1Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.QecnatoS10Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.S52Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.Y66Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gree.GreeAcCoordinator;
|
||||
@@ -795,6 +796,7 @@ public enum DeviceType {
|
||||
OPPO_ENCO_BUDS2(OppoEncoBuds2Coordinator.class),
|
||||
OUKITEL_BT103(OukitelBT103Coordinator.class),
|
||||
DOTN_P66D(DotnP66DCoordinator.class),
|
||||
QECNATO_S10(QecnatoS10Coordinator.class),
|
||||
R1(R1Coordinator.class),
|
||||
IMIKI_FRAME_2(ImikiFrame2Coordinator.class),
|
||||
HAYLOU_WATCH_2_PRO(HaylouWatch2ProCoordinator.class),
|
||||
|
||||
@@ -4347,6 +4347,7 @@
|
||||
<string name="devicetype_r1" translatable="false">R1</string>
|
||||
<string name="devicetype_haylou_watch_2_pro" translatable="false">Haylou Watch 2 Pro</string>
|
||||
<string name="devicetype_dotn_p66d" translatable="false">Dotn P66D</string>
|
||||
<string name="devicetype_qecnato_s10" translatable="false">Qecnato S10</string>
|
||||
<string name="pref_title_time_interval">Time interval</string>
|
||||
<string name="pref_summary_time_interval">Restrict to specific intervals</string>
|
||||
<string name="prefs_key_enable_deprecated_notificationcollectormonitor_title">Enable the deprecated Notification Collector Monitor Service</string>
|
||||
|
||||
+1
@@ -39,6 +39,7 @@ public class AbstractDeviceCoordinatorTest extends TestBase {
|
||||
put("IMIKI FRAME 2", DeviceType.IMIKI_FRAME_2);
|
||||
put("HAYLOU Watch 2 Pro", DeviceType.HAYLOU_WATCH_2_PRO);
|
||||
put("Y66(ID-AB01)", DeviceType.Y66);
|
||||
put("S10", DeviceType.QECNATO_S10);
|
||||
put("S52", DeviceType.S52);
|
||||
put("R11C_B200", DeviceType.YAWELL_R11);
|
||||
put("R11_B200", DeviceType.YAWELL_R11);
|
||||
|
||||
Reference in New Issue
Block a user