00001 /* 00002 * Copyright 2003 Michael A. Marsh, Cornell University. All rights reserved. 00003 * This software is released under the modified BSD license. 00004 * See the file LICENSE in the top-level directory for details. 00005 */ 00006 // 00007 // $Id: ShareLabelChallengeEvent.h,v 1.3 2004/05/19 15:56:59 mmarsh Exp $ 00008 // 00009 // $Log: ShareLabelChallengeEvent.h,v $ 00010 // Revision 1.3 2004/05/19 15:56:59 mmarsh 00011 // *** empty log message *** 00012 // 00013 // Revision 1.2 2003/11/04 22:31:51 mmarsh 00014 // *** empty log message *** 00015 // 00016 // 00017 00018 #ifndef __CODEX_SERVER_SHARELABELCHALLENGEEVENT_H__ 00019 #define __CODEX_SERVER_SHARELABELCHALLENGEEVENT_H__ 00020 00021 #include "CODEX_Events/Event.h" 00022 #include "CODEX_Events/Activity.h" 00023 00024 namespace CODEX_Server 00025 { 00029 class ShareLabelChallengeEvent : public CODEX_Events::EventBase 00030 { 00031 public : 00033 ShareLabelChallengeEvent( CODEX_Events::Activity* source, 00034 ShareLabelChallengeHandler* destination ) : 00035 CODEX_Events::EventBase( source ), 00036 m_destination( destination ) 00037 {} 00038 00040 virtual ~ShareLabelChallengeEvent() {} 00041 00042 bool handle() { return m_destination->handler( *this ); } 00043 00044 private : 00045 ShareLabelChallengeHandler* m_destination; 00046 }; 00047 00048 } 00049 00050 #endif /* __CODEX_SERVER_SHARELABELCHALLENGEEVENT_H__ */
1.4.1