How aaronmcleancs/tslim-data-simulator works
Project type and purpose
• This is a Qt/C++ desktop application that simulates an insulin pump system. Its key features include manual and extended bolus calculations, continuous glucose monitoring (CGM), automated insulin adjustment (Control-IQ), profile management, power management (battery and on/off), security (PIN lock screen), data visualization, and history logging.
File structure
• Top level:
• main.cpp, COMP3004A4.pro, README.txt (build entry point)
• Models folder (UML models and documentation)
• “headers” vs “cpp” directories: split between API/interface declarations (.h) and implementations (.cpp)
• UI definitions (.ui) and controllers: mainwindow.ui, lockscreen2.ui, bolus.ui, contentwidget.ui, statusbar.ui, optionswindow.ui, poweroff.ui
• Domain and service classes: Battery, Pump, InsulinCartridge, CGM, BolusCalculator, ControlIQ, Profile, PumpHistory, StatusModel, AuthManager, PowerStateMachine, QCustomPlot
• Separation of concerns:
• UI layer (Qt .ui files + UI controllers)
• Business-logic layer (calculation, state machines, safety checks)
• Domain model (representing pump, cartridge, battery, profiles)
• Persistence/history (PumpHistory, Profile storage)
• Security (AuthManager, PIN lockscreen)
README for additional insights
• Confirms use of Qt (qmake + make) and runtime binary
• Lists team contributions aligning to components above