Matti Viljanen
bfd9c62dcf
Add dummy charger control for SDK
2020-03-21 12:32:50 +02:00
Matti Viljanen
9148540c96
Fix charger control file logic
...
Ahem. Actually tested on three devices now (all runnig SFOS 3.2.1):
- Sony Xperia XA2 Ultra
- Sony Xperia Z3 Compact Tablet
- Jolla Phone
2020-03-21 12:32:27 +02:00
Matti Viljanen
193dc5dccf
Update Settings page values correctly
2020-03-21 05:04:52 +02:00
Matti Viljanen
02b3f40524
Increase debug log verbosity
2020-03-21 05:02:04 +02:00
Matti Viljanen
073defa4fc
Fix application crash on startup
2020-03-21 04:04:03 +02:00
Matti Viljanen
cc52212eb5
Update copyrights
2020-03-21 03:27:09 +02:00
Matti Viljanen
3fe4589c21
Implement enable/disable notifications, fix emitting signals, move charger control buttons to MainPage
2020-03-21 03:22:47 +02:00
Matti Viljanen
59950ddb7a
Fix indentation
...
Diff, what are you doing?
2020-03-21 01:40:08 +02:00
Matti Viljanen
5a3af9894d
Don't try to use charging control when running on SDK
2020-03-21 01:30:28 +02:00
Matti Viljanen
85d42458ca
Improve logging, settings loading and file operations
2020-03-21 01:17:15 +02:00
Matti Viljanen
4cd2dba0d7
Migrate old setting keys
2020-03-20 23:02:07 +02:00
Matti Viljanen
2854217108
Massive typofix in settings' key names, optimize constructor
2020-03-20 23:00:30 +02:00
Matti Viljanen
d90c9c87da
Implement charger control logic
2020-03-20 20:58:01 +02:00
Matti Viljanen
e1b59a98a5
Code cleanup; rename variables. Separate alert and charger limits.
2020-03-20 20:57:06 +02:00
Matti Viljanen
799ecd40db
Add missing statuses
2020-03-20 20:49:28 +02:00
Matti Viljanen
fecaad492a
Make sure charging is disabled on exit
2020-03-20 17:29:09 +02:00
Matti Viljanen
c67a33a4b7
Implement charger control and charger plugged in boolean
2020-03-20 17:26:29 +02:00
Matti Viljanen
b429c474c6
Use pointers to objects for consistency
2020-03-20 16:18:14 +02:00
Matti Viljanen
bac3580807
Update comment
2019-03-10 14:56:41 +02:00
Matti Viljanen
96225c71af
Increase polling frequency to 3s
2019-02-10 20:30:45 +02:00
Matti Viljanen
a9daef7d6b
Set QFile parents
2019-02-10 20:30:26 +02:00
Matti Viljanen
c7ba509bc7
Move sliders to Settings page, add alert interval setting
2019-01-29 01:11:32 +02:00
Matti Viljanen
722cac24b9
Fix broken state detection, move state translations to QML
2019-01-09 00:59:23 +02:00
Matti Viljanen
8eafae5808
Version bump to 1.1, update translations, minor cleanup, remove QDebug
2019-01-08 21:15:36 +02:00
Matti Viljanen
960750f2a7
Fix QSettings not getting saved, get rid of load() and save()
2019-01-08 20:19:54 +02:00
Matti Viljanen
7ef7775c89
Add state to battery data, return translated state
2019-01-08 20:16:10 +02:00
Matti Viljanen
5eea9e9732
Use QSettings instead of QSqlDatabase, move defaults to headers.
...
This is what over thinking looks like. QSettings need *absolutely no configuration*, whereas QSqlDatabase couldn't even get the directory created, and for some reason (simple write permissions, I think) QDir couldn't even create the data folder. Gah!
2019-01-06 16:39:33 +02:00
Matti Viljanen
2a9db678b0
Make empty and one-line functions really one-liners
2019-01-06 16:37:02 +02:00
Matti Viljanen
6fce9e5dcc
Remove qDebug
2019-01-06 11:34:54 +02:00
Matti Viljanen
7d3ea81ca4
Fix audio file paths
2019-01-06 11:31:03 +02:00
Matti Viljanen
57f153055e
Remove unused addImportPath
2019-01-05 23:41:33 +02:00
Matti Viljanen
8467c6e7c6
Add GPLv3 license comments in source files
2019-01-05 23:40:22 +02:00
Matti Viljanen
629bdbd1f7
Actually include settings.h and settings.cpp
2019-01-05 23:38:41 +02:00
Matti Viljanen
ac9e3a088b
Add Settings object, alert level sliders
2019-01-05 21:58:52 +02:00
Matti Viljanen
284d37755a
Refresh battery data automatically
2019-01-05 21:57:35 +02:00
Matti Viljanen
18bf91fdce
Display current battery level and charging status - milestone achieved!
2019-01-05 17:15:32 +02:00
Matti Viljanen
5b99d11f3f
Battery class added
2019-01-05 17:14:00 +02:00
Matti Viljanen
46e27d18b7
Created project, added .gitignore
2019-01-05 15:49:35 +02:00