#include <QtResource_Factory.h>
Inheritance diagram for TAO::QtResource_Factory:
Public Member Functions | |
QtResource_Factory (QApplication *qapp_) | |
Protected Member Functions | |
virtual ACE_Reactor_Impl * | reactor_impl (void) |
Create or obtain current reactor implementation. | |
Private Attributes | |
ACE_QtReactor * | reactor_impl_ |
Reactor created by this factory. | |
QApplication * | qapp_ |
QApplication running reactor. | |
TAO_SYNCH_MUTEX | lock_ |
For internal locking. |
This factory is intended for creating QtReactor for ORB. This factory can be feed into ORB using TAO_ORB_Core::set_gui_resource_factory method which is usually done by TAO_QtResource_Loader.
Definition at line 41 of file QtResource_Factory.h.
|
Definition at line 15 of file QtResource_Factory.cpp.
00016 : reactor_impl_ (0) 00017 , qapp_ (qapp) 00018 { 00019 } |
|
Create or obtain current reactor implementation.
Implements TAO::GUIResource_Factory. Definition at line 22 of file QtResource_Factory.cpp. References ACE_DEBUG, ACE_ERROR, ACE_NEW_RETURN, LM_DEBUG, LM_ERROR, and TAO_debug_level.
00023 { // synchronized by external locks 00024 if (this->qapp_ == 0) 00025 { 00026 ACE_ERROR ((LM_ERROR, 00027 "TAO (%P|%t) - QApplication is undefined.", 00028 " Cannot create ACE_XtReactor \n")); 00029 return 0; 00030 } 00031 00032 if (!this->reactor_impl_) 00033 { 00034 ACE_NEW_RETURN (this->reactor_impl_, 00035 ACE_QtReactor (qapp_), 00036 0); 00037 00038 if (TAO_debug_level > 0) 00039 ACE_DEBUG ((LM_DEBUG, 00040 "TAO (%P|%t) - ACE_QtReactor created\n")); 00041 } 00042 00043 return this->reactor_impl_; 00044 } |
|
For internal locking.
Reimplemented from TAO::GUIResource_Factory. Definition at line 61 of file QtResource_Factory.h. |
|
QApplication running reactor.
Definition at line 58 of file QtResource_Factory.h. |
|
Reactor created by this factory.
Definition at line 55 of file QtResource_Factory.h. |