00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file FlResource_Loader.h 00006 * 00007 * $Id: FlResource_Loader.h 73516 2006-07-14 21:10:15Z jwillemsen $ 00008 * 00009 * @author Balachandran Natarajan <bala@cs.wustl.edu> 00010 * @author Marek Brudka <mbrudka@aster.pl> 00011 */ 00012 //============================================================================= 00013 00014 #ifndef TAO_FLRESOURCE_LOADER_H 00015 #define TAO_FLRESOURCE_LOADER_H 00016 #include /**/ "ace/pre.h" 00017 00018 #include "tao/FlResource/TAO_FlResource_Export.h" 00019 00020 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00021 # pragma once 00022 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00023 00024 #include "tao/Versioned_Namespace.h" 00025 00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00027 00028 namespace TAO 00029 { 00030 00031 /** 00032 * @class FlResource_Loader 00033 * 00034 * @brief Loads TAO resources related with Fl. 00035 * 00036 * This class changes the default reactor implementation into 00037 * ACE_FlReactor one by calling TAO_ORB_Core::set_gui_resource_factory. 00038 * User should create an instance of this class before ORB_init 00039 * when the TAO server has has to be integrated within Fl event loop. 00040 * 00041 * Please notice, this class has to be created in the main Fl thread, 00042 * because set_gui_resource_factory creates a variable in TSS. This way 00043 * FlReactor is instantiated only in Qt event loop thread. 00044 */ 00045 class TAO_FlResource_Export FlResource_Loader 00046 { 00047 00048 public: 00049 FlResource_Loader (void); 00050 00051 virtual ~FlResource_Loader (void); 00052 }; 00053 } 00054 00055 TAO_END_VERSIONED_NAMESPACE_DECL 00056 00057 #include /**/ "ace/post.h" 00058 00059 #endif /* TAO_FLRESOURCE_LOADER_H */