Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / QtResource / QtResource_Factory.h
blob2e830608688e6565a66f746ac80e87e9d6f8fae9
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file QtResource_Factory.h
7 * @author Balachandran Natarajan <bala@dre.vanderbilt.edu>
8 * @author Marek Brudka <mbrudka@aster.pl>
9 */
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)
18 # pragma once
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include "ace/QtReactor/QtReactor.h"
22 #include "tao/GUIResource_Factory.h"
24 class QApplication;
26 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
28 namespace TAO
30 /**
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
42 public:
43 QtResource_Factory (QApplication *qapp_);
45 protected:
46 /// Create or obtain current reactor implementation
47 virtual ACE_Reactor_Impl *reactor_impl ();
49 private:
50 /// Reactor created by this factory.
51 ACE_QtReactor *reactor_impl_;
53 /// QApplication running reactor
54 QApplication *qapp_;
58 TAO_END_VERSIONED_NAMESPACE_DECL
60 #include /**/ "ace/post.h"
61 #endif /* TAO_QTRESOURCE_FACTORY_H */