Public Member Functions | Protected Member Functions | Private Attributes

TAO::QtResource_Factory Class Reference

TAO_GUI_Resource_Factory for creating QtReactor. More...

#include <QtResource_Factory.h>

Inheritance diagram for TAO::QtResource_Factory:
Inheritance graph
[legend]
Collaboration diagram for TAO::QtResource_Factory:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 QtResource_Factory (QApplication *qapp_)

Protected Member Functions

virtual ACE_Reactor_Implreactor_impl (void)
 Create or obtain current reactor implementation.

Private Attributes

ACE_QtReactorreactor_impl_
 Reactor created by this factory.
QApplication * qapp_
 QApplication running reactor.

Detailed Description

TAO_GUI_Resource_Factory for creating QtReactor.

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 42 of file QtResource_Factory.h.


Constructor & Destructor Documentation

TAO::QtResource_Factory::QtResource_Factory ( QApplication *  qapp_  ) 

Definition at line 5 of file QtResource_Factory.cpp.

               : QtResource_Factory.cpp 84443 2009-02-12 20:26:35Z johnnyw $");


Member Function Documentation

ACE_Reactor_Impl * TAO::QtResource_Factory::reactor_impl ( void   )  [protected, virtual]

Create or obtain current reactor implementation.

Implements TAO::GUIResource_Factory.

Definition at line 12 of file QtResource_Factory.cpp.

{
  QtResource_Factory::QtResource_Factory (QApplication *qapp)
    : reactor_impl_ (0)
    , qapp_ (qapp)
  {
  }

  ACE_Reactor_Impl *
  QtResource_Factory::reactor_impl (void)
  {    // synchronized by external locks
    if (this->qapp_ == 0)
      {
        ACE_ERROR ((LM_ERROR,
                    "TAO (%P|%t) - QApplication is undefined.",
                    " Cannot create ACE_QtReactor\n"));
        return 0;
      }

    if (!this->reactor_impl_)
      {
        ACE_NEW_RETURN (this->reactor_impl_,


Member Data Documentation

QApplication* TAO::QtResource_Factory::qapp_ [private]

QApplication running reactor.

Definition at line 59 of file QtResource_Factory.h.

ACE_QtReactor* TAO::QtResource_Factory::reactor_impl_ [private]

Reactor created by this factory.

Definition at line 56 of file QtResource_Factory.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines