3 //=============================================================================
5 * @file QtResource_Factory.h
7 * @author Balachandran Natarajan <bala@dre.vanderbilt.edu>
8 * @author Marek Brudka <mbrudka@aster.pl>
10 //=============================================================================
11 #ifndef TAO_QTRESOURCE_FACTORY_H
12 #define TAO_QTRESOURCE_FACTORY_H
13 #include /**/ "ace/pre.h"
15 #include "tao/QtResource/TAO_QtResource_Export.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include "ace/QtReactor/QtReactor.h"
22 #include "tao/GUIResource_Factory.h"
26 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
31 * @class QtResource_Factory
33 * @brief TAO_GUI_Resource_Factory for creating QtReactor.
35 * This factory is intended for creating QtReactor for ORB. This
36 * factory can be feed into ORB using
37 * TAO_ORB_Core::set_gui_resource_factory method which is usually
38 * done by TAO_QtResource_Loader.
40 class TAO_QtResource_Export QtResource_Factory
: public GUIResource_Factory
43 QtResource_Factory (QApplication
*qapp_
);
46 /// Create or obtain current reactor implementation
47 virtual ACE_Reactor_Impl
*reactor_impl ();
50 /// Reactor created by this factory.
51 ACE_QtReactor
*reactor_impl_
;
53 /// QApplication running reactor
58 TAO_END_VERSIONED_NAMESPACE_DECL
60 #include /**/ "ace/post.h"
61 #endif /* TAO_QTRESOURCE_FACTORY_H */