Code written by Paul Rabbat, Angel Daruna, Jarel Hawkins, and Cordel Williams
Dependencies: 4DGL-uLCD-SE EthernetInterface HTTPClient NTPClient PinDetect SDFileSystem mbed-rpc mbed-rtos mbed wave_player
Fork of ECE4180_FinalProject by
alarmModel.h@12:a99989062fee, 2014-12-07 (annotated)
- Committer:
- prabbat3
- Date:
- Sun Dec 07 20:53:05 2014 +0000
- Revision:
- 12:a99989062fee
- Parent:
- 0:0a99e3fc2a46
Code cleanup
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
prabbat3 | 0:0a99e3fc2a46 | 1 | #ifndef ALARMMODEL_H |
prabbat3 | 0:0a99e3fc2a46 | 2 | #define ALARMMODEL_H |
prabbat3 | 0:0a99e3fc2a46 | 3 | |
prabbat3 | 0:0a99e3fc2a46 | 4 | class alarmModel { |
prabbat3 | 0:0a99e3fc2a46 | 5 | public: |
prabbat3 | 0:0a99e3fc2a46 | 6 | int hours; |
prabbat3 | 0:0a99e3fc2a46 | 7 | int minutes; |
prabbat3 | 0:0a99e3fc2a46 | 8 | char* amPm; // "AM" or "PM" |
prabbat3 | 0:0a99e3fc2a46 | 9 | int alarmSet; // 0 for not set, 1 for set |
prabbat3 | 0:0a99e3fc2a46 | 10 | alarmModel(); |
prabbat3 | 0:0a99e3fc2a46 | 11 | void updateAlarmPreference(int _hours, int _minutes, int _amPm); |
prabbat3 | 0:0a99e3fc2a46 | 12 | void setAlarm(); |
prabbat3 | 0:0a99e3fc2a46 | 13 | }; |
prabbat3 | 0:0a99e3fc2a46 | 14 | |
prabbat3 | 0:0a99e3fc2a46 | 15 | #endif |