~ubuntu-branches/ubuntu/utopic/kradio/utopic

« back to all changes in this revision

Viewing changes to kradio3/src/include/timecontrol_interfaces.h

  • Committer: Bazaar Package Importer
  • Author(s): Marc 'HE' Brockschmidt
  • Date: 2008-03-16 19:00:02 UTC
  • mfrom: (3.1.2 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080316190002-sdjqu8cahhx7c6tk
Tags: 0.1.1.1~20061112-3.1
* Non-maintainer upload.
* Fix gcc-4.3 FTBFS, patch by Kibi (Closes: #455390)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          timecontrol_interfaces.h  -  description
 
3
                             -------------------
 
4
    begin                : Mon M�r 10 2003
 
5
    copyright            : (C) 2003 by Martin Witte
 
6
    email                : witte@kawo1.rwth-aachen.de
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
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.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
/***************************************************************************
 
19
 *                                                                         *
 
20
 *   Interfaces in this header:                                            *
 
21
 *                                                                         *
 
22
 *   ITimeControl(Client)                                                  *
 
23
 *                                                                         *
 
24
 ***************************************************************************/
 
25
 
 
26
 
 
27
#ifndef KRADIO_TIMECONTROL_INTERFACES_H
 
28
#define KRADIO_TIMECONTROL_INTERFACES_H
 
29
 
 
30
#ifdef HAVE_CONFIG_H
 
31
#include <config.h>
 
32
#endif
 
33
 
 
34
#include "interfaces.h"
 
35
#include "alarm.h"
 
36
 
 
37
INTERFACE(ITimeControl, ITimeControlClient)
 
38
{
 
39
public :
 
40
    IF_CON_DESTRUCTOR(ITimeControl, -1)
 
41
 
 
42
RECEIVERS:
 
43
    IF_RECEIVER(    setAlarms(const AlarmVector &sl)                 )
 
44
    IF_RECEIVER(    setCountdownSeconds(int n)                       )
 
45
    IF_RECEIVER(    startCountdown()                                 )
 
46
    IF_RECEIVER(    stopCountdown()                                  )
 
47
 
 
48
 
 
49
SENDERS:
 
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)             )
 
57
 
 
58
 
 
59
ANSWERS:
 
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     )
 
65
 
 
66
};
 
67
 
 
68
 
 
69
INTERFACE(ITimeControlClient, ITimeControl)
 
70
{
 
71
public :
 
72
    IF_CON_DESTRUCTOR(ITimeControlClient, 1)
 
73
 
 
74
SENDERS:
 
75
    IF_SENDER  (    sendAlarms(const AlarmVector &sl)                )
 
76
    IF_SENDER  (    sendCountdownSeconds(int n)                      )
 
77
    IF_SENDER  (    sendStartCountdown()                             )
 
78
    IF_SENDER  (    sendStopCountdown()                              )
 
79
 
 
80
 
 
81
RECEIVERS:
 
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)             )
 
89
 
 
90
 
 
91
QUERIES:
 
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 ()         )
 
97
 
 
98
RECEIVERS:
 
99
    virtual void noticeConnectedI    (cmplInterface *, bool /*pointer_valid*/);
 
100
    virtual void noticeDisconnectedI (cmplInterface *, bool /*pointer_valid*/);
 
101
};
 
102
 
 
103
 
 
104
 
 
105
 
 
106
#endif