IBR-DTNSuite  0.8
daemon/src/net/TransferCompletedEvent.h
Go to the documentation of this file.
00001 /*
00002  * TransferCompletedEvent.h
00003  *
00004  *  Created on: 16.02.2010
00005  *      Author: morgenro
00006  */
00007 
00008 #ifndef TRANSFERCOMPLETEDEVENT_H_
00009 #define TRANSFERCOMPLETEDEVENT_H_
00010 
00011 #include "core/Event.h"
00012 #include <ibrdtn/data/MetaBundle.h>
00013 #include "ibrdtn/data/EID.h"
00014 
00015 namespace dtn
00016 {
00017         namespace net
00018         {
00019                 class TransferCompletedEvent : public dtn::core::Event
00020                 {
00021                 public:
00022                         virtual ~TransferCompletedEvent();
00023 
00024                         const string getName() const;
00025 
00026                         string toString() const;
00027 
00028                         static const string className;
00029 
00030                         static void raise(const dtn::data::EID peer, const dtn::data::MetaBundle &bundle);
00031 
00032                         const dtn::data::EID& getPeer() const;
00033                         const dtn::data::MetaBundle& getBundle() const;
00034 
00035                 private:
00036                         dtn::data::EID _peer;
00037                         dtn::data::MetaBundle _bundle;
00038                         TransferCompletedEvent(const dtn::data::EID peer, const dtn::data::MetaBundle &bundle);
00039                 };
00040         }
00041 }
00042 
00043 #endif /* TRANSFERCOMPLETEDEVENT_H_ */