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
26 #include <SALOME_WNT.hxx>
28 #define SALOME_WNT_EXPORT
32 #include <qapplication.h>
38 Class Session_ServerCheck : check SALOME servers
40 class SALOME_WNT_EXPORT Session_ServerCheck : public QThread
44 Session_ServerCheck( QMutex*, QWaitCondition* );
46 virtual ~Session_ServerCheck();
52 QMutex* myMutex; // splash mutex
53 QWaitCondition* myWC; // splash wait condition
55 bool myCheckCppContainer; // flag : check C++ container ?
56 bool myCheckPyContainer; // flag : check Python container ?
57 bool myCheckSVContainer; // flag : check supervision container ?
58 int myAttempts; // number of checks attemtps to get response from server
59 int myDelay; // delay between two attempts in microseconds