00001 00002 // Name: wxGuiTest/CapturedEvents/CRCapturedEvent.h 00003 // Author: Reinhold Fuereder 00004 // Created: 2004 00005 // Copyright: (c) 2005 Reinhold Fuereder 00006 // Licence: wxWindows licence 00007 // 00008 // $Id$ 00010 00011 #ifndef SWCRCAPTUREDEVENT_H 00012 #define SWCRCAPTUREDEVENT_H 00013 00014 #ifdef __GNUG__ 00015 #pragma interface "CRCapturedEvent.h" 00016 #endif 00017 00018 #include <wxGuiTest/Common.h> 00019 00020 namespace wxTst { 00021 00022 00028 class CRCapturedEvent 00029 { 00030 public: 00036 CRCapturedEvent (wxEvent *event); 00037 00038 00042 virtual ~CRCapturedEvent (); 00043 00044 00050 virtual wxEvent * GetEvent (); 00051 00052 00063 virtual bool IsPending () const; 00064 00065 00073 virtual bool IsIrrelevant () const; 00074 00075 00090 virtual void Process (CRCapturedEvent **pendingEvt) = 0; 00091 00092 00096 virtual void EmitCpp () = 0; 00097 00098 protected: 00099 wxEvent *m_event; 00100 00101 private: 00102 00103 private: 00104 // No copy and assignment constructor: 00105 CRCapturedEvent (const CRCapturedEvent &rhs); 00106 CRCapturedEvent & operator= (const CRCapturedEvent &rhs); 00107 }; 00108 00109 } // End namespace wxTst 00110 00111 #endif // SWCRCAPTUREDEVENT_H 00112