#ifndef __MailDelivery_h__
# define __MailDelivery_h__

# include "INotify.h"
# include "EPoll.h"

namespace mail {
   
   class MailDelivery : core::INotify {
      
    public:
      MailDelivery(core::EPoll &ePoll, std::string mailQueue);

      void onDataReceived(std::string data) override;
	   
      int startDelivery(std::string mailQueue);
      int deliver();
      std::string getMailFileName();
      
   };
   
}

#endif
