#ifndef _LEPTO_TELEGRAMGATEWAY_H_
#define _LEPTO_TELEGRAMGATEWAY_H_
//----------------------------------------------------------------------------
///
/// \brief  Gateway for telegrams
///
///         See implementation for further information.
///
/// \date   20151114
/// \author Maximilian Seesslen <mes@seesslen.net>
///
//----------------------------------------------------------------------------


/***
 *    Can to be part of lepot; biwak implements concrete gateways.
 *    Telegrams are implemented in lepto so gateways have to be there to.
 ***/


//---Includes-----------------------------------------------------------------


//---Own------------------------------

#include <lepto/telegram.h>

#if defined ( MCU_PLATFORM_x86 ) || ! defined ( STM32 )
   #include <QList>
#else
   #include <lepto/list.h>
   #include <lepto/noqt.h>
#endif


//---Forward declarations-----------------------------------------------------


//---Declaration--------------------------------------------------------------


class CTelegramGateway
{
   protected:
      QList <CTelegram> listTelegram;

   public:
      CTelegramGateway()
         {};

      virtual void telegramEventLoop() = 0;
      void sendTelegram(const CTelegram &telegram)
      {
         listTelegram+=telegram;
      }
};


//---fin----------------------------------------------------------------------
#endif // ? ! _LEPTO_TELEGRAMGATEWAY_H_
