1
/***************************************************************************
2
timecontrol_interfaces.h - description
4
begin : Mon M�r 10 2003
5
copyright : (C) 2003 by Martin Witte
6
email : witte@kawo1.rwth-aachen.de
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
18
/***************************************************************************
20
* Interfaces in this header: *
22
* ITimeControl(Client) *
24
***************************************************************************/
27
#ifndef KRADIO_TIMECONTROL_INTERFACES_H
28
#define KRADIO_TIMECONTROL_INTERFACES_H
34
#include "interfaces.h"
37
INTERFACE(ITimeControl, ITimeControlClient)
40
IF_CON_DESTRUCTOR(ITimeControl, -1)
43
IF_RECEIVER( setAlarms(const AlarmVector &sl) )
44
IF_RECEIVER( setCountdownSeconds(int n) )
45
IF_RECEIVER( startCountdown() )
46
IF_RECEIVER( stopCountdown() )
50
IF_SENDER ( notifyAlarmsChanged(const AlarmVector &sl) )
51
IF_SENDER ( notifyAlarm(const Alarm &) )
52
IF_SENDER ( notifyNextAlarmChanged(const Alarm *) )
53
IF_SENDER ( notifyCountdownStarted(const QDateTime &end) )
54
IF_SENDER ( notifyCountdownStopped() )
55
IF_SENDER ( notifyCountdownZero() )
56
IF_SENDER ( notifyCountdownSecondsChanged(int n) )
60
IF_ANSWER ( QDateTime getNextAlarmTime () const )
61
IF_ANSWER ( const Alarm* getNextAlarm () const )
62
IF_ANSWER ( const AlarmVector & getAlarms () const )
63
IF_ANSWER ( int getCountdownSeconds () const )
64
IF_ANSWER ( QDateTime getCountdownEnd () const )
69
INTERFACE(ITimeControlClient, ITimeControl)
72
IF_CON_DESTRUCTOR(ITimeControlClient, 1)
75
IF_SENDER ( sendAlarms(const AlarmVector &sl) )
76
IF_SENDER ( sendCountdownSeconds(int n) )
77
IF_SENDER ( sendStartCountdown() )
78
IF_SENDER ( sendStopCountdown() )
82
IF_RECEIVER( noticeAlarmsChanged(const AlarmVector &sl) )
83
IF_RECEIVER( noticeAlarm(const Alarm &) )
84
IF_RECEIVER( noticeNextAlarmChanged(const Alarm *) )
85
IF_RECEIVER( noticeCountdownStarted(const QDateTime &end) )
86
IF_RECEIVER( noticeCountdownStopped() )
87
IF_RECEIVER( noticeCountdownZero() )
88
IF_RECEIVER( noticeCountdownSecondsChanged(int n) )
92
IF_QUERY ( QDateTime queryNextAlarmTime() )
93
IF_QUERY ( const Alarm* queryNextAlarm () )
94
IF_QUERY ( const AlarmVector & queryAlarms () )
95
IF_QUERY ( int queryCountdownSeconds () )
96
IF_QUERY ( QDateTime queryCountdownEnd () )
99
virtual void noticeConnectedI (cmplInterface *, bool /*pointer_valid*/);
100
virtual void noticeDisconnectedI (cmplInterface *, bool /*pointer_valid*/);