1 // VolumeEvent.cpp 2 3 #include "VolumeEvent.h" 4 5 // constructor 6 VolumeEvent::VolumeEvent(uint32 type, vnode_id target) 7 : 8 BReferenceable(), 9 fType(type), 10 fTarget(target) 11 { 12 } 13 14 // destructor 15 VolumeEvent::~VolumeEvent() 16 { 17 } 18 19 // GetType 20 uint32 21 VolumeEvent::GetType() const 22 { 23 return fType; 24 } 25 26 // SetTarget 27 void 28 VolumeEvent::SetTarget(vnode_id target) 29 { 30 fTarget = target; 31 } 32 33 // GetTarget 34 vnode_id 35 VolumeEvent::GetTarget() const 36 { 37 return fTarget; 38 } 39 40 41 // #pragma mark - 42 43 // constructor 44 ConnectionBrokenEvent::ConnectionBrokenEvent(vnode_id target) 45 : VolumeEvent(CONNECTION_BROKEN_EVENT, target) 46 { 47 } 48 49 // destructor 50 ConnectionBrokenEvent::~ConnectionBrokenEvent() 51 { 52 } 53 54