IBR-DTNSuite  0.8
daemon/src/core/StatusReportGenerator.h
Go to the documentation of this file.
00001 /*
00002  * StatusReportGenerator.h
00003  *
00004  *  Created on: 17.02.2010
00005  *      Author: morgenro
00006  */
00007 
00008 #ifndef STATUSREPORTGENERATOR_H_
00009 #define STATUSREPORTGENERATOR_H_
00010 
00011 #include "core/EventReceiver.h"
00012 #include "ibrdtn/data/StatusReportBlock.h"
00013 #include "ibrdtn/data/MetaBundle.h"
00014 
00015 namespace dtn
00016 {
00017         namespace core
00018         {
00019                 class StatusReportGenerator : public EventReceiver
00020                 {
00021                 public:
00022                         StatusReportGenerator();
00023                         virtual ~StatusReportGenerator();
00024 
00025                         void raiseEvent(const Event *evt);
00026 
00027                 private:
00035                         void createStatusReport(const dtn::data::MetaBundle &b, dtn::data::StatusReportBlock::TYPE type, dtn::data::StatusReportBlock::REASON_CODE reason = dtn::data::StatusReportBlock::NO_ADDITIONAL_INFORMATION);
00036                 };
00037         }
00038 }
00039 
00040 
00041 #endif /* STATUSREPORTGENERATOR_H_ */