00001 00002 // Copyright (c) James Percent and Unlock contributors. 00003 // All rights reserved. 00004 // Redistribution and use in source and binary forms, with or without modification, 00005 // are permitted provided that the following conditions are met: 00006 // 00007 // 1. Redistributions of source code must retain the above copyright notice, 00008 // this list of conditions and the following disclaimer. 00009 // 00010 // 2. Redistributions in binary form must reproduce the above copyright 00011 // notice, this list of conditions and the following disclaimer in the 00012 // documentation and/or other materials provided with the distribution. 00013 // 00014 // 3. Neither the name of Unlock nor the names of its contributors may be used 00015 // to endorse or promote products derived from this software without 00016 // specific prior written permission. 00017 00018 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 00019 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 00020 // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00021 // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 00022 // ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00023 // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00024 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 00025 // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00026 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00027 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00028 00029 #ifndef ENOBIO_STATUS_RECEIVER_HPP 00030 #define ENOBIO_STATUS_RECEIVER_HPP 00031 00032 #include "Enobio3G.h" 00033 #include "IEnobioSignalHandler.hpp" 00034 00035 class EnobioStatusReceiver : public IDataConsumer { 00036 public: 00037 EnobioStatusReceiver(IEnobioSignalHandler* pEnobioSignalHandler); 00038 virtual ~EnobioStatusReceiver(); 00039 void registerConsumer(Enobio3G* pEnobio3G); 00040 void receiveData(const PData& rData); 00041 00042 private: 00043 IEnobioSignalHandler* mpEnobioSignalHandler; 00044 }; 00045 00046 #endif