56 lines
2.1 KiB
C++
Raw Normal View History

2019-12-31 15:56:23 -05:00
//.$file${.::clock.hpp} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
2018-10-25 11:13:01 -04:00
//
2015-05-14 16:05:04 -04:00
// Model: comp.qm
2019-10-27 12:26:31 -04:00
// File: ${.::clock.hpp}
2015-05-14 16:05:04 -04:00
//
2019-12-31 15:56:23 -05:00
// This code has been generated by QM 4.6.0 <www.state-machine.com/qm/>.
2015-05-14 16:05:04 -04:00
// DO NOT EDIT THIS FILE MANUALLY. All your changes will be lost.
//
// This program is open source software: you can redistribute it and/or
// modify it under the terms of the GNU General Public License as published
// by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
// for more details.
2018-10-25 11:13:01 -04:00
//
2019-12-31 15:56:23 -05:00
//.$endhead${.::clock.hpp} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-10-27 12:26:31 -04:00
#ifndef CLOCK_HPP
#define CLOCK_HPP
2015-05-14 16:05:04 -04:00
using namespace QP;
enum AlarmClockSignals {
TICK_SIG = Q_USER_SIG, // time tick event
ALARM_SET_SIG, // set the alarm
ALARM_ON_SIG, // turn the alarm on
ALARM_OFF_SIG, // turn the alarm off
ALARM_SIG, // alarm event from Alarm component to AlarmClock container
CLOCK_12H_SIG, // set the clock in 12H mode
CLOCK_24H_SIG, // set the clock in 24H mode
TIME_SIG, // time event sent to Alarm (contains current time)
TERMINATE_SIG // terminate the application
};
2019-12-31 15:56:23 -05:00
//.$declare${Events::SetEvt} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
//.${Events::SetEvt} .........................................................
2015-05-14 16:05:04 -04:00
class SetEvt : public QP::QEvt {
public:
uint8_t digit;
};
2019-12-31 15:56:23 -05:00
//.$enddecl${Events::SetEvt} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
//.$declare${Events::TimeEvt} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
//.${Events::TimeEvt} ........................................................
2015-05-14 16:05:04 -04:00
class TimeEvt : public QP::QEvt {
public:
uint32_t current_time;
};
2019-12-31 15:56:23 -05:00
//.$enddecl${Events::TimeEvt} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2015-05-14 16:05:04 -04:00
2019-12-31 15:56:23 -05:00
//.$declare${Components::APP_alarmClock} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
2016-12-01 10:31:49 -05:00
extern QActive * const APP_alarmClock;
2019-12-31 15:56:23 -05:00
//.$enddecl${Components::APP_alarmClock} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2015-05-14 16:05:04 -04:00
2019-10-27 12:26:31 -04:00
#endif // CLOCK_HPP