00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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 );
00071 virtual void noticeDisconnectedI (cmplInterface *, bool );
00072 };
00073
00074
00075 #endif