1 /////////////////////////////////////////////////////////////////////////////// 
   2 // Name:        wx/osx/evtloopsrc.h 
   3 // Purpose:     wxCFEventLoopSource class 
   4 // Author:      Vadim Zeitlin 
   7 // Copyright:   (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org> 
   8 // Licence:     wxWindows licence 
   9 /////////////////////////////////////////////////////////////////////////////// 
  11 #ifndef _WX_OSX_EVTLOOPSRC_H_ 
  12 #define _WX_OSX_EVTLOOPSRC_H_ 
  14 typedef struct __CFFileDescriptor 
*CFFileDescriptorRef
; 
  16 // ---------------------------------------------------------------------------- 
  17 // wxCFEventLoopSource: CoreFoundation-based wxEventLoopSource for OS X 
  18 // ---------------------------------------------------------------------------- 
  20 class wxCFEventLoopSource 
: public wxEventLoopSource
 
  23     wxCFEventLoopSource(wxEventLoopSourceHandler 
*handler
, int flags
) 
  24         : wxEventLoopSource(handler
, flags
) 
  29     // we take ownership of this CFFileDescriptorRef 
  30     void SetFileDescriptor(CFFileDescriptorRef cffd
); 
  32     virtual ~wxCFEventLoopSource(); 
  35     CFFileDescriptorRef m_cffd
; 
  37     wxDECLARE_NO_COPY_CLASS(wxCFEventLoopSource
); 
  40 #endif // _WX_OSX_EVTLOOPSRC_H_