# moc pre-processing
LIB_MOC = SALOME_PYQT_Module.h
-LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl
+LIB_CLIENT_IDL = SALOME_Exception.idl \
+ SALOME_GenericObj.idl \
+ SALOME_ContainerManager.idl \
+ SALOME_Component.idl
CPPFLAGS += $(QT_INCLUDES) $(PYTHON_INCLUDES) $(SIP_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES) $(BOOST_CPPFLAGS) -DHAVE_CONFIG_H -I${KERNEL_ROOT_DIR}/include/salome
#include "SalomeApp_Study.h"
#include "SalomeApp_DataModel.h"
+#include <SALOME_LifeCycleCORBA.hxx>
+
#include <qfile.h>
#include <qdom.h>
#include <qworkspace.h>
}
}
+/*!
+ * Get module engine, returns nil var if engine is not found in LifeCycleCORBA
+ */
+Engines::Component_var SALOME_PYQT_Module::getEngine() const
+{
+ Engines::Component_var comp = getApp()->lcc()->FindOrLoad_Component( "FactoryServerPy", name( "" ) );
+ return comp;
+}
+
+/*!
+ * Get module engine IOR, returns empty string if engine is not found in LifeCycleCORBA
+ */
QString SALOME_PYQT_Module::engineIOR() const
{
- return QString::null;
+ if ( !CORBA::is_nil( getEngine() ) )
+ return QString( getApp()->orb()->object_to_string( getEngine() ) );
+ return QString( "" );
}
/*!
#include <qstringlist.h>
#include <qmap.h>
+#include <SALOMEconfig.h>
+#include CORBA_CLIENT_HEADER(SALOME_Component)
+
class SALOME_PYQT_XmlHandler;
class SALOME_PYQT_EXPORT SALOME_PYQT_Module: public SalomeApp_Module
/* destructor */
~SALOME_PYQT_Module();
+ /* get module engine */
+ Engines::Component_var getEngine() const;
+
/******************************
* Inherited from CAM_Module
******************************/
/* context popup menu request */
void contextMenuPopup( const QString&, QPopupMenu*, QString& );
+ /* get module engine IOR */
virtual QString engineIOR() const;
protected: