TAO::QtResource_Loader Class Reference

Loads TAO resources related with Qt. More...

#include <QtResource_Loader.h>

List of all members.

Public Member Functions

 QtResource_Loader (QApplication *qapp)
virtual ~QtResource_Loader (void)


Detailed Description

Loads TAO resources related with Qt.

This class changes the default reactor implementation into ACE_QtReactor one by calling TAO_ORB_Core::set_gui_resource_factory. User should create an instance of this class before ORB_init when the TAO server has has to be integrated within Qt event loop.

Please notice, this class has to be created in the main Qt thread, because set_gui_resource_factory creates a variable in TSS. This way QtReactor is instantiated only in Qt event loop thread.

Definition at line 47 of file QtResource_Loader.h.


Constructor & Destructor Documentation

TAO::QtResource_Loader::QtResource_Loader QApplication *  qapp  ) 
 

Definition at line 14 of file QtResource_Loader.cpp.

References ACE_NEW, and TAO_ORB_Core::set_gui_resource_factory().

00015   {
00016     QtResource_Factory *tmp = 0;
00017 
00018     ACE_NEW (tmp,
00019              QtResource_Factory (qapp));
00020 
00021     TAO_ORB_Core::set_gui_resource_factory (tmp);
00022   }

TAO::QtResource_Loader::~QtResource_Loader void   )  [virtual]
 

Definition at line 24 of file QtResource_Loader.cpp.

00025   {
00026   }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:26:44 2006 for TAO by doxygen 1.3.6