/*$file${.::clock.h} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv*/ /* * Model: comp.qm * File: ${.::clock.h} * * This code has been generated by QM 5.2.4 . * DO NOT EDIT THIS FILE MANUALLY. All your changes will be lost. * * SPDX-License-Identifier: GPL-3.0-or-later * * This generated code is open source software: you can redistribute it under * the terms of the GNU General Public License as published by the Free * Software Foundation. * * This code 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. * * NOTE: * Alternatively, this generated code may be distributed under the terms * of Quantum Leaps commercial licenses, which expressly supersede the GNU * General Public License and are specifically designed for licensees * interested in retaining the proprietary status of their code. * * Contact information: * * */ /*$endhead${.::clock.h} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*/ #ifndef CLOCK_H #define CLOCK_H 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 */ }; /*$declare${Events::SetEvt} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv*/ /*${Events::SetEvt} ........................................................*/ typedef struct { /* protected: */ QEvt super; /* public: */ uint8_t digit; } SetEvt; /*$enddecl${Events::SetEvt} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*/ /*$declare${Events::TimeEvt} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv*/ /*${Events::TimeEvt} .......................................................*/ typedef struct { /* protected: */ QEvt super; /* public: */ uint32_t current_time; } TimeEvt; /*$enddecl${Events::TimeEvt} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*/ /*$declare${Components::APP_alarmClock} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv*/ /*${Components::APP_alarmClock} ............................................*/ extern QActive * const APP_alarmClock; /*$enddecl${Components::APP_alarmClock} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*/ /*$declare${Components::AlarmClock_ctor} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv*/ /*${Components::AlarmClock_ctor} ...........................................*/ void AlarmClock_ctor(void); /*$enddecl${Components::AlarmClock_ctor} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*/ #endif /* CLOCK_H */