summaryrefslogtreecommitdiffstats
path: root/src/include/timecontrol_interfaces.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/timecontrol_interfaces.h')
-rw-r--r--src/include/timecontrol_interfaces.h106
1 files changed, 106 insertions, 0 deletions
diff --git a/src/include/timecontrol_interfaces.h b/src/include/timecontrol_interfaces.h
new file mode 100644
index 0000000..7fc72ac
--- /dev/null
+++ b/src/include/timecontrol_interfaces.h
@@ -0,0 +1,106 @@
+/***************************************************************************
+ timecontrol_interfaces.h - description
+ -------------------
+ begin : Mon Mär 10 2003
+ copyright : (C) 2003 by Martin Witte
+ email : witte@kawo1.rwth-aachen.de
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free 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; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * Interfaces in this header: *
+ * *
+ * ITimeControl(Client) *
+ * *
+ ***************************************************************************/
+
+
+#ifndef KRADIO_TIMECONTROL_INTERFACES_H
+#define KRADIO_TIMECONTROL_INTERFACES_H
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "interfaces.h"
+#include "alarm.h"
+
+INTERFACE(ITimeControl, ITimeControlClient)
+{
+public :
+ IF_CON_DESTRUCTOR(ITimeControl, -1)
+
+RECEIVERS:
+ IF_RECEIVER( setAlarms(const AlarmVector &sl) )
+ IF_RECEIVER( setCountdownSeconds(int n) )
+ IF_RECEIVER( startCountdown() )
+ IF_RECEIVER( stopCountdown() )
+
+
+SENDERS:
+ IF_SENDER ( notifyAlarmsChanged(const AlarmVector &sl) )
+ IF_SENDER ( notifyAlarm(const Alarm &) )
+ IF_SENDER ( notifyNextAlarmChanged(const Alarm *) )
+ IF_SENDER ( notifyCountdownStarted(const TQDateTime &end) )
+ IF_SENDER ( notifyCountdownStopped() )
+ IF_SENDER ( notifyCountdownZero() )
+ IF_SENDER ( notifyCountdownSecondsChanged(int n) )
+
+
+ANSWERS:
+ IF_ANSWER ( TQDateTime getNextAlarmTime () const )
+ IF_ANSWER ( const Alarm* getNextAlarm () const )
+ IF_ANSWER ( const AlarmVector & getAlarms () const )
+ IF_ANSWER ( int getCountdownSeconds () const )
+ IF_ANSWER ( TQDateTime getCountdownEnd () const )
+
+};
+
+
+INTERFACE(ITimeControlClient, ITimeControl)
+{
+public :
+ IF_CON_DESTRUCTOR(ITimeControlClient, 1)
+
+SENDERS:
+ IF_SENDER ( sendAlarms(const AlarmVector &sl) )
+ IF_SENDER ( sendCountdownSeconds(int n) )
+ IF_SENDER ( sendStartCountdown() )
+ IF_SENDER ( sendStopCountdown() )
+
+
+RECEIVERS:
+ IF_RECEIVER( noticeAlarmsChanged(const AlarmVector &sl) )
+ IF_RECEIVER( noticeAlarm(const Alarm &) )
+ IF_RECEIVER( noticeNextAlarmChanged(const Alarm *) )
+ IF_RECEIVER( noticeCountdownStarted(const TQDateTime &end) )
+ IF_RECEIVER( noticeCountdownStopped() )
+ IF_RECEIVER( noticeCountdownZero() )
+ IF_RECEIVER( noticeCountdownSecondsChanged(int n) )
+
+
+QUERIES:
+ IF_QUERY ( TQDateTime queryNextAlarmTime() )
+ IF_QUERY ( const Alarm* queryNextAlarm () )
+ IF_QUERY ( const AlarmVector & queryAlarms () )
+ IF_QUERY ( int queryCountdownSeconds () )
+ IF_QUERY ( TQDateTime queryCountdownEnd () )
+
+RECEIVERS:
+ virtual void noticeConnectedI (cmplInterface *, bool /*pointer_valid*/);
+ virtual void noticeDisconnectedI (cmplInterface *, bool /*pointer_valid*/);
+};
+
+
+
+
+#endif