QtResource_Loader.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file   QtResource_Loader.h
00006  *
00007  *  QtResource_Loader.h,v 1.3 2005/11/02 11:03:26 ossama Exp
00008  *
00009  *  @author Marek Brudka <mbrudka@aster.pl>
00010  *  @author Balachandran Natarajan <bala@cs.wustl.edu>
00011  */
00012 //=============================================================================
00013 
00014 #ifndef TAO_QTRESOURCE_LOADER_H
00015 #define TAO_QTRESOURCE_LOADER_H
00016 #include /**/ "ace/pre.h"
00017 
00018 #include "tao/TAO_QtResource_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 #include <qapplication.h>
00027 
00028 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00029 
00030 namespace TAO
00031 {
00032   /**
00033    * @class QtResource_Loader
00034    *
00035    * @brief Loads TAO resources related with Qt.
00036    *
00037    * This class changes the default reactor implementation into
00038    * ACE_QtReactor one by calling TAO_ORB_Core::set_gui_resource_factory.
00039    * User should create an instance of this class before ORB_init
00040    * when the TAO server has has to be integrated within Qt event loop.
00041    *
00042    * Please notice, this class has to be created in the main Qt thread,
00043    * because set_gui_resource_factory creates a variable in TSS. This way
00044    * QtReactor is instantiated only in Qt event loop thread.
00045    */
00046 
00047   class TAO_QtResource_Export QtResource_Loader
00048   {
00049   public:
00050     QtResource_Loader (QApplication *qapp);
00051     virtual ~QtResource_Loader (void);
00052   };
00053 }
00054 
00055 TAO_END_VERSIONED_NAMESPACE_DECL
00056 
00057 #include /**/ "ace/post.h"
00058 #endif /* TAO_QTRESOURCE_LOADER_H */

Generated on Thu Nov 9 11:54:21 2006 for TAO by doxygen 1.3.6