timecontrol_interfaces.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           timecontrol_interfaces.h  -  description
00003                              -------------------
00004     begin                : Mon Mär 10 2003
00005     copyright            : (C) 2003 by Martin Witte
00006     email                : witte@kawo1.rwth-aachen.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 /***************************************************************************
00019  *                                                                         *
00020  *   Interfaces in this header:                                            *
00021  *                                                                         *
00022  *   ITimeControl(Client)                                                  *
00023  *                                                                         *
00024  ***************************************************************************/
00025 
00026 
00027 #ifndef KRADIO_TIMECONTROL_INTERFACES_H
00028 #define KRADIO_TIMECONTROL_INTERFACES_H
00029 
00030 #ifdef HAVE_CONFIG_H
00031 #include <config.h>
00032 #endif
00033 
00034 #include "interfaces.h"
00035 #include "alarm.h"
00036 
00037 INTERFACE(ITimeControl, ITimeControlClient)
00038 {
00039 public :
00040     IF_CON_DESTRUCTOR(ITimeControl, -1)
00041 
00042 RECEIVERS:
00043     IF_RECEIVER(    setAlarms(const AlarmVector &sl)                 )
00044     IF_RECEIVER(    setCountdownSeconds(int n)                       )
00045     IF_RECEIVER(    startCountdown()                                 )
00046     IF_RECEIVER(    stopCountdown()                                  )
00047 
00048 
00049 SENDERS:
00050     IF_SENDER  (    notifyAlarmsChanged(const AlarmVector &sl)       )
00051     IF_SENDER  (    notifyAlarm(const Alarm &)                       )
00052     IF_SENDER  (    notifyNextAlarmChanged(const Alarm *)            )
00053     IF_SENDER  (    notifyCountdownStarted(const QDateTime &end)     )
00054     IF_SENDER  (    notifyCountdownStopped()                         )
00055     IF_SENDER  (    notifyCountdownZero()                            )
00056     IF_SENDER  (    notifyCountdownSecondsChanged(int n)             )
00057 
00058 
00059 ANSWERS:
00060     IF_ANSWER  (    QDateTime           getNextAlarmTime () const    )
00061     IF_ANSWER  (    const Alarm*        getNextAlarm () const        )
00062     IF_ANSWER  (    const AlarmVector & getAlarms () const           )
00063     IF_ANSWER  (    int                 getCountdownSeconds () const )
00064     IF_ANSWER  (    QDateTime           getCountdownEnd () const     )
00065 
00066 };
00067 
00068 
00069 INTERFACE(ITimeControlClient, ITimeControl)
00070 {
00071 public :
00072     IF_CON_DESTRUCTOR(ITimeControlClient, 1)
00073 
00074 SENDERS:
00075     IF_SENDER  (    sendAlarms(const AlarmVector &sl)                )
00076     IF_SENDER  (    sendCountdownSeconds(int n)                      )
00077     IF_SENDER  (    sendStartCountdown()                             )
00078     IF_SENDER  (    sendStopCountdown()                              )
00079 
00080 
00081 RECEIVERS:
00082     IF_RECEIVER(    noticeAlarmsChanged(const AlarmVector &sl)       )
00083     IF_RECEIVER(    noticeAlarm(const Alarm &)                       )
00084     IF_RECEIVER(    noticeNextAlarmChanged(const Alarm *)            )
00085     IF_RECEIVER(    noticeCountdownStarted(const QDateTime &end)     )
00086     IF_RECEIVER(    noticeCountdownStopped()                         )
00087     IF_RECEIVER(    noticeCountdownZero()                            )
00088     IF_RECEIVER(    noticeCountdownSecondsChanged(int n)             )
00089 
00090 
00091 QUERIES:
00092     IF_QUERY   (    QDateTime           queryNextAlarmTime()         )
00093     IF_QUERY   (    const Alarm*        queryNextAlarm ()            )
00094     IF_QUERY   (    const AlarmVector & queryAlarms ()               )
00095     IF_QUERY   (    int                 queryCountdownSeconds ()     )
00096     IF_QUERY   (    QDateTime           queryCountdownEnd ()         )
00097 
00098 RECEIVERS:
00099     virtual void noticeConnectedI    (cmplInterface *, bool /*pointer_valid*/);
00100     virtual void noticeDisconnectedI (cmplInterface *, bool /*pointer_valid*/);
00101 };
00102 
00103 
00104 
00105 
00106 #endif

Generated on Fri Jan 28 16:28:08 2011 for kradio by  doxygen 1.4.7