Commit Graph

3550 Commits

Author SHA1 Message Date
sawinglogz
a651e1405d Add record/replay test of downloading all sessions from oximeter.
Also fix a crash when the recording is truncated.
2020-07-10 11:51:53 -04:00
sawinglogz
e6258d321e Allow limited reordering of serial port replay.
Now a replayed read() will return the response that follows the
matching write().

When calls are made in the same order as they were during recording,
this will have no effect, and the original ordering will be replayed.

However, minor changes to the code should still result in sensible
replay until a new recording can be made.
2020-07-10 11:51:53 -04:00
sawinglogz
918f4af2c1 Add support for signals and serial port reading to XML replay.
Replay now passes its initial regression test when the oximeter is unplugged.
2020-07-10 11:51:52 -04:00
sawinglogz
5947751291 Add playback of most serial port operations.
read() isn't yet tested because it requires the readyRead signal.
2020-07-10 11:51:52 -04:00
sawinglogz
92d0af220d Make XML recording thread-safe. 2020-07-10 11:51:52 -04:00
sawinglogz
8fbf665b89 Simplify XmlReplayEvent retrieval and add support for matching id. 2020-07-10 11:51:52 -04:00
sawinglogz
d350e47382 Track connections by name only, not by type as well.
Also rename getAvailableSerialPorts for clarity.
2020-07-10 11:51:52 -04:00
sawinglogz
553cf59a95 Move connection creation to DeviceConnectionManager.
Calling openConnection will return an open connection or nullptr.
Deleting the connection will close it.

SerialPort now uses this under the hood, while still presenting
the QSerialPort-compatible interface.
2020-07-10 11:51:52 -04:00
sawinglogz
7c98af3f86 Refactor class hierarchy for serial port XML recording. 2020-07-10 11:51:51 -04:00
sawinglogz
1630051dd1 Generate XML tags for every serial port connection event. 2020-07-10 11:51:51 -04:00
sawinglogz
3210ecd1ba Add plumbing for intercepting and logging serial port activity. 2020-07-10 11:51:51 -04:00
sawinglogz
3afa8c87c1 Minor tidying and documentation, no functional change. 2020-07-10 11:51:51 -04:00
sawinglogz
ac1281c1d9 Add playback of serial port scan, along with supporting infrastructure. 2020-07-10 11:51:51 -04:00
sawinglogz
efbb967b5c Add DeviceConnectionManager class to record serial port scan. 2020-07-10 11:51:51 -04:00
sawinglogz
cd29593280 Add XML serialization/deserialization to SerialPortInfo. 2020-07-10 11:51:51 -04:00
Guy Scharf
90b8a89ca8 Update release notes to reflect recent changes 2020-07-07 14:14:45 -07:00
Guy Scharf
a89c24a194 Fix maximum zoom in when clicking on graph with popup menu visible 2020-07-07 11:07:44 -07:00
Guy Scharf
47c8ece333 Exclude Journal in calculating last day of Overview graph
This deals with notes that may be entered for future dates
  and which should not affect the Overview graphs.
2020-07-06 11:51:09 -07:00
Guy Scharf
ed1871215e Change language about "guessed settings" to clarify that they are missing and yesterday's shown. 2020-07-06 10:46:08 -07:00
Guy Scharf
07aa2ad883 Merge branch 'master' into guess 2020-07-05 17:59:27 -07:00
Guy Scharf
aad1535979 WIP: Guessed settings. Code is test only. 2020-07-05 11:19:19 -07:00
Guy Scharf
7e751a80f7 Fix problems with changing auto check interval 2020-07-05 10:58:25 -07:00
Guy Scharf
70262fa425 Fix reference to old include file in auto check updates 2020-07-05 00:39:55 -07:00
Guy Scharf
155bd0b530 Auto Check Updates for testing versions.xml settings
If you are running a test version of OSCAR, it will first try to read versions.xml from your OSCAR_Data directory.
    If that fails, it will go to www.sleepfiles.com/OSCAR/versions/versions.xml
    The purpose of this approach is to allow you to test different settings in versions.xml
    This debug feature will probably be removed, or changed, when a release version is built
2020-07-04 20:18:15 -07:00
Guy Scharf
44b7261edd Merge branch 'master' into updater 2020-07-04 18:21:33 -07:00
Guy Scharf
619ce66b9e Auto check for updates
Checks for updates to OSCAR at startup and profile close.
    Also allows user to check with Help/Check for updates.
    Updates controlled by versions.xml in www.sleepfiles.com/oscar/versions
2020-07-04 18:17:25 -07:00
Phil Olynyk
f81f500215 Revert "Changed VERSION from alpha to ChrmBk for testing"
This reverts commit f57110dd87.
2020-06-29 11:54:25 -04:00
Phil Olynyk
f57110dd87 Changed VERSION from alpha to ChrmBk for testing 2020-06-29 11:31:42 -04:00
Phil Olynyk
4324000787 Merge the storageInfo branch just merged into master 2020-06-27 09:52:02 -04:00
Phil Olynyk
bbb2f5a5a5 Delete the OS-specif scanning code 2020-06-26 23:17:27 -04:00
Phil Olynyk
c69e2bacee Merge branch 'master' into storageInfo 2020-06-26 22:58:24 -04:00
Phil Olynyk
cd40fc9a9e Test if lastpath exists before adding it to path scan 2020-06-26 22:57:08 -04:00
Phil Olynyk
463836f696 Merge branch 'master' into modify-card-scan 2020-06-26 21:22:59 -04:00
sawinglogz
11dfa09c7b Add preliminary support for rare time-adjustment event observed on PRS1 550P.
Also add 900X150 to the list of tested machines, and update other warnings
based on new test data.
2020-06-26 12:53:52 -04:00
Phil Olynyk
8812f3c6ed Remove bypass of card Detect for Linux - not sure why it was there 2020-06-20 21:57:03 -04:00
Phil Olynyk
0b8112219f Merge branch 'master' into modify-card-scan 2020-06-20 20:03:37 -04:00
Jeff Norman
af1aa46427 Merge branch 'master' into fix-readme-typos
fixed readme typos
2020-06-12 11:13:47 -04:00
Guy Scharf
059437b40c Fix margins problem when printing statistics page on MacOS
Despite havine a 3.3 mm margin on Windows, Linux and MacOS use a 12 mm bottom margin for an HP printer
    Set margins to 10,10,10,12 unless printer reports a larger margin; then use larger margin
    Reduce debug messages
    Fix regression that trimmed last character from user information lines
    Continue use of Helvetica font for printing Statistics
    Adjust column sizes for Standard vs Monthly reports
2020-06-11 11:01:28 -07:00
Guy Scharf
b7223560bd Remove excess diagnostics from statistics.cpp 2020-06-10 14:46:55 -07:00
Guy Scharf
88289deec4 Clean up Statistics page HTML
Now passes HTML 4.01 Transitional validator with no errors
    Also fix table alignment regression introduced in last commit
    Adjust column widths differently for Monthly vs Standard tables
2020-06-10 14:34:18 -07:00
Phil Olynyk
475bfee924 Make debug output conditional 2020-06-10 16:56:06 -04:00
Phil Olynyk
795a3a5456 add missing close paren to #elif defined(... 2020-06-10 15:47:25 -04:00
Phil Olynyk
c2c61c6629 Correct Mac define value and drop tmpfs from qDebug output 2020-06-09 22:11:34 -04:00
Phil Olynyk
80a5642ee3 Use QStorageInfo to simplify getDriveList() 2020-06-09 17:10:25 -04:00
Guy Scharf
ddcd44d99a Merge branch 'master' into stats 2020-06-09 12:09:19 -07:00
Guy Scharf
488425df80 Improve Statistics printing
Adjust font sizing and scaling algorithm to printe more uniform reports on different platforms
2020-06-09 12:07:55 -07:00
Guy Scharf
e635bd9a0f Tweak statistics page formatting and printer font sizing 2020-06-09 10:27:11 -07:00
ArieKlerk
22b8907ad6 Languages after lupdate and another try to keep the oscar_qt_xx files small in order to let these translations work again 2020-06-09 18:43:44 +02:00
ArieKlerk
8e1381a082 Merge branch 'master' into translations 2020-06-06 22:03:48 +02:00
Guy Scharf
010d3ca9e1 Fix possible startup problem with View/Show Personal Data 2020-06-06 12:34:34 -07:00