00001 /*************************************************************************** 00002 IRSender.h - description 00003 ------------------- 00004 begin : mer jun 08 2003 00005 copyright : (C) 2003 by Michel Dubois, Yann Le Guyadec 00006 email : Michel.Dubois@univ-ubs.fr, Yann.Le-Guyadec@univ-ubs.fr 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 // Modèle statique 00019 /* 00020 * changes : 00021 * - 08/06/03 MD Creation ! 00022 */ 00023 00024 00025 #ifndef __IRSENDER__ 00026 #define __IRSENDER__ 00027 00028 namespace API { 00029 class Leg; 00030 class IRSender 00031 { 00032 public: 00033 IRSender(); 00034 virtual ~IRSender(); 00035 double getValueToSend() const; 00036 bool getSwitch() const; 00037 Leg * getLeg() const; 00038 void setSwitch(bool onoff); 00039 00040 protected: 00041 void setLeg(Leg * aLeg); 00042 void setValueToSend(double aValue); 00043 Leg * leg; 00044 double valueToSend; 00045 bool switchmode; 00046 00047 };// END CLASS DEFINITION IRSender 00048 } 00049 #endif // __IRSENDER__