radiodevicepool_interfaces.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           radiodevicepool_interface.h  -  description
00003                              -------------------
00004     begin                : Sam Apr 19 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 #ifndef KRADIO_RADIODEVICEPOOL_INTERFACES_H
00019 #define KRADIO_RADIODEVICEPOOL_INTERFACES_H
00020 
00021 #ifdef HAVE_CONFIG_H
00022 #include <config.h>
00023 #endif
00024 
00025 #include "interfaces.h"
00026 
00027 
00028 class IRadioDevice;
00029 
00030 
00031 INTERFACE(IRadioDevicePool, IRadioDevicePoolClient)
00032 {
00033 public:
00034         IF_CON_DESTRUCTOR(IRadioDevicePool, -1)
00035 
00036 RECEIVERS:
00037         IF_RECEIVER(  setActiveDevice(IRadioDevice *rd, bool keepPower = true))
00038 
00039 SENDERS:
00040         IF_SENDER  (  notifyActiveDeviceChanged(IRadioDevice *rd)             )
00041         IF_SENDER  (  notifyDevicesChanged(const QPtrList<IRadioDevice> &)    )
00042         IF_SENDER  (  notifyDeviceDescriptionChanged(const QString &)         )
00043 
00044 ANSWERS:
00045         IF_ANSWER  (  IRadioDevice                  * getActiveDevice() const )
00046         IF_ANSWER  (  const QPtrList<IRadioDevice>  & getDevices() const      )
00047         IF_ANSWER  (  const QString                 & getDeviceDescription() const )
00048 };
00049 
00050 
00051 INTERFACE(IRadioDevicePoolClient, IRadioDevicePool)
00052 {
00053 public:
00054         IF_CON_DESTRUCTOR(IRadioDevicePoolClient, -1)
00055 
00056 SENDERS:
00057         IF_SENDER  (  sendActiveDevice(IRadioDevice *rd, bool keepPower = true))
00058 
00059 RECEIVERS:
00060         IF_RECEIVER(  noticeActiveDeviceChanged(IRadioDevice *rd)             )
00061         IF_RECEIVER(  noticeDevicesChanged(const QPtrList<IRadioDevice> &)    )
00062         IF_RECEIVER(  noticeDeviceDescriptionChanged(const QString &)         )
00063 
00064 QUERIES:
00065         IF_QUERY   (  IRadioDevice                  *queryActiveDevice()      )
00066         IF_QUERY   (  const QPtrList<IRadioDevice>  &queryDevices()           )
00067         IF_QUERY   (  const QString                 &queryDeviceDescription() )
00068 
00069 RECEIVERS:
00070         virtual void noticeConnectedI    (cmplInterface *, bool /*pointer_valid*/);
00071         virtual void noticeDisconnectedI (cmplInterface *, bool /*pointer_valid*/);
00072 };
00073 
00074 
00075 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 28 Jan 2011 for kradio by  doxygen 1.6.1