]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Updated environment and import/export directives
authorabd <abd@opencascade.com>
Mon, 6 Mar 2006 08:34:30 +0000 (08:34 +0000)
committerabd <abd@opencascade.com>
Mon, 6 Mar 2006 08:34:30 +0000 (08:34 +0000)
src/Session/InquireServersQThread.h
src/Session/SALOME_Session.hxx [new file with mode: 0755]
src/Session/SalomeApp_Engine_i.hxx
src/Session/Session_ServerLauncher.hxx
src/Session/Session_ServerThread.hxx
src/Session/Session_Session_i.hxx

index b97bfd012c1cb736fd06247360e9d6e4cd4fc191..82d58dc7dd7d51a67179556f00e15a6d75a36585 100755 (executable)
 #include <qvbox.h> 
 #include <qguardedptr.h> 
 
-#ifdef WNT
-#include <SALOME_WNT.hxx>
-#else
-#define SALOME_WNT_EXPORT
-#endif
+#include <SALOME_Session.hxx>
 
 /**********************************************************
 **  Class:   InquireEvent
 **  Descr:   Contains QCustomEvents for posting to InquireServersQThread
 **  Level:   Private
 ***********************************************************/
-class SALOME_WNT_EXPORT InquireEvent : public QCustomEvent
+class SESSION_EXPORT InquireEvent : public QCustomEvent
 {
 public:
 
@@ -39,7 +35,7 @@ public:
 
 class InquireServersGUI;
 
-class SALOME_WNT_EXPORT InquireServersQThread : public QThread
+class SESSION_EXPORT InquireServersQThread : public QThread
 {
 public:
   InquireServersQThread( InquireServersGUI* r );
@@ -84,7 +80,7 @@ private:
 class QLabel;
 class QFrame;
 class QProgressBar;
-class SALOME_WNT_EXPORT InquireServersGUI : public QVBox
+class SESSION_EXPORT InquireServersGUI : public QVBox
 {
     Q_OBJECT
 
diff --git a/src/Session/SALOME_Session.hxx b/src/Session/SALOME_Session.hxx
new file mode 100755 (executable)
index 0000000..78c89d6
--- /dev/null
@@ -0,0 +1,47 @@
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : SALOME_Session.hxx
+//  Author : Alexander A. BORODIN
+//  Module : GUI
+
+#ifndef _SALOME_Session_HXX_
+#define _SALOME_Session_HXX_
+
+#ifdef WNT
+ #if defined SESSION_EXPORTS
+  #if defined WIN32
+   #define SESSION_EXPORT __declspec( dllexport )
+  #else
+   #define SESSION_EXPORT
+  #endif
+ #else
+  #if defined WIN32
+   #define SESSION_EXPORT __declspec( dllimport )
+  #else
+   #define SESSION_EXPORT
+  #endif
+ #endif
+#else
+ #define SESSION_EXPORT
+#endif
+
+#endif
\ No newline at end of file
index b3c79a101761f7efe76dbcab0591161a108b118e..67c29f9936f48abf2d465413d2f8ba6ae95de706 100755 (executable)
@@ -29,6 +29,8 @@
 #ifndef _SALOMEAPP_ENGINE_I_HXX_
 #define _SALOMEAPP_ENGINE_I_HXX_
 
+#include <SALOME_Session.hxx>
+
 #include "SALOME_Component_i.hxx"
 
 #include <vector> 
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SalomeApp_Engine)
 
-#ifdef WNT
-#include <SALOME_WNT.hxx>
-#else
-#define SALOME_WNT_EXPORT
-#endif
-
-class SALOME_WNT_EXPORT SalomeApp_Engine_i: public POA_SalomeApp::Engine,
+class SESSION_EXPORT SalomeApp_Engine_i: public POA_SalomeApp::Engine,
                           public Engines_Component_i
 {
 public:
index 8791b6698e74e078e5a41d58b5093fd4dcd17afb..559833919bda2be21574820c650b0930b2149d5a 100755 (executable)
@@ -29,6 +29,8 @@
 #ifndef _SESSION_SERVERLAUNCHER_HXX_
 #define _SESSION_SERVERLAUNCHER_HXX_
 
+#include <SALOME_Session.hxx>
+
 #include "Session_ServerThread.hxx"
 
 #include <CORBA.h> 
 #include <qthread.h>
 #include <qwaitcondition.h>
 
-
-#ifdef WNT
-#include <SALOME_WNT.hxx>
-#else
-#define SALOME_WNT_EXPORT
-#endif
-
 using namespace std;
 
-class ServArg
+class SESSION_EXPORT ServArg
   {
   public:
     int _servType;
@@ -60,7 +55,7 @@ inline ServArg::ServArg(int servType, int firstArg, int lastArg):
   _servType(servType),_firstArg(firstArg),_lastArg(lastArg)
 {}
 
-class SALOME_WNT_EXPORT Session_ServerLauncher: public QThread
+class SESSION_EXPORT Session_ServerLauncher: public QThread
 {
 public:
   Session_ServerLauncher();
index a10ab0ce6170fabdc44f41f25185ed7ddc591256..1041c0f35101c20cd77365347b59c48438c06200 100755 (executable)
@@ -29,6 +29,8 @@
 #ifndef _SESSION_SERVERTHREAD_HXX_
 #define _SESSION_SERVERTHREAD_HXX_
 
+#include <SALOME_Session.hxx>
+
 #include <CORBA.h> 
 #include <string>
 
@@ -40,7 +42,7 @@ using namespace std;
 void WaitForServerReadiness(string serverName);
 
 
-class Session_ServerThread
+class SESSION_EXPORT Session_ServerThread
 {
 public:
   static const int NB_SRV_TYP;
@@ -73,7 +75,7 @@ protected:
 };
 
 
-class Session_SessionThread : public Session_ServerThread
+class SESSION_EXPORT Session_SessionThread : public Session_ServerThread
 {
 public:
   Session_SessionThread() {}
index c9815a42d6a602fa7b01f2321ae9df9d30982f17..0da13586990f732fc18e9fe334b1a39be86f4337 100755 (executable)
@@ -29,6 +29,8 @@
 #ifndef _SESSION_SESSION_I_HXX_
 #define _SESSION_SESSION_I_HXX_
 
+#include <SALOME_Session.hxx>
+
 #include <qthread.h> 
 
 #include <SALOMEconfig.h>
@@ -36,7 +38,7 @@
 #include CORBA_SERVER_HEADER(SALOME_Session)
 class SALOME_NamingService;
 
-class SALOME_Session_i:  public virtual POA_SALOME::Session,
+class SESSION_EXPORT SALOME_Session_i:  public virtual POA_SALOME::Session,
                         public virtual PortableServer::RefCountServantBase
 {
 public: