1 // Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 // File: Session_ServerCheck.hxx
20 // Author: Vadim SANDLER
22 #if !defined(SESSION_SERVERCHECK_HXX)
23 #define SESSION_SERVERCHECK_HXX
25 #include <SALOME_Session.hxx>
28 #include <qapplication.h>
34 Class Session_ServerCheck : check SALOME servers
36 class SESSION_EXPORT Session_ServerCheck : public QThread
40 Session_ServerCheck( QMutex*, QWaitCondition* );
42 virtual ~Session_ServerCheck();
48 QMutex* myMutex; // splash mutex
49 QWaitCondition* myWC; // splash wait condition
51 bool myCheckCppContainer; // flag : check C++ container ?
52 bool myCheckPyContainer; // flag : check Python container ?
53 bool myCheckSVContainer; // flag : check supervision container ?
54 int myAttempts; // number of checks attemtps to get response from server
55 int myDelay; // delay between two attempts in microseconds