00001 00002 // Name: wxGuiTest/CREventFactory.h 00003 // Author: Reinhold Fuereder 00004 // Created: 2004 00005 // Copyright: (c) 2005 Reinhold Fuereder 00006 // Licence: wxWindows licence 00007 // 00008 // $Id$ 00010 00011 #ifndef SWCREVENTFACTORY_H 00012 #define SWCREVENTFACTORY_H 00013 00014 #ifdef __GNUG__ 00015 #pragma interface "CREventFactory.h" 00016 #endif 00017 00018 #include <wxGuiTest/Common.h> 00019 00020 namespace wxTst { 00021 00022 class CRCapturedEvent; 00023 00024 00031 class CREventFactory 00032 { 00033 public: 00039 static CREventFactory * GetInstance (); 00040 00041 00045 static void Destroy (); 00046 00047 00054 virtual CRCapturedEvent * CreateEvent (const wxEvent &event) const; 00055 00056 protected: 00060 CREventFactory (); 00061 00062 00066 virtual ~CREventFactory (); 00067 00068 private: 00069 static CREventFactory *ms_instance; 00070 00071 private: 00072 // No copy and assignment constructor: 00073 CREventFactory (const CREventFactory &rhs); 00074 CREventFactory & operator= (const CREventFactory &rhs); 00075 }; 00076 00077 } // End namespace wxTst 00078 00079 #endif // SWCREVENTFACTORY_H 00080