M5Capstone2015 / oximeterGui

PulseOx Android GUI
0 stars 1 forks source link

Right view classes for different main screen states. #3

Closed hunterSThompson closed 9 years ago

hunterSThompson commented 9 years ago

5 states main screen can be in:

Logged in / recording Logged in / Not recording Logged out / recording Logged out / Not recording Logged out / Finished recording and need to save recording to a patient.

Each should have inflate-able view classes to represent them and methods to set main screen to this state.

hunterSThompson commented 9 years ago

StartRecording() -> Change Recording button, freeze patient list & info button

StopRecording(_userLoggedIn) -> Yes/No dialog Pop-up. if user is logged in, just save it. If not, pop up nav drawer and pick/create new user.

LogIn(string_user) -> Populate user name button (this is button to go to info screen)

ActivateNav() / DeactivateNav() -> Functions for dissallowing doing other stuff while recording

hunterSThompson commented 9 years ago

Also these classes:

Start Recording Button Stop Recording Button User Info Button (Button when user is logged in to go this users info screen) Dialog Class

All these classes should inherit from View base class. Constructors for params (like Info Button name). Inflation should happen in constructor.