X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FEvents%2FEvents_LongOp.h;h=2840dde3cbb85d2ccc7b636220ec6a839f317a3c;hb=fec33ea37fbbd369bda3da328abf6171d08a6c42;hp=bc698ac502c32b05f680962dbc7ad34d3d8557fa;hpb=d0919b46a282ec920811d29a2c8c5667c2c29b4e;p=modules%2Fshaper.git diff --git a/src/Events/Events_LongOp.h b/src/Events/Events_LongOp.h index bc698ac50..2840dde3c 100644 --- a/src/Events/Events_LongOp.h +++ b/src/Events/Events_LongOp.h @@ -1,6 +1,22 @@ -// File: Events_LongOp.h -// Created: 29 Jul 2014 -// Author: Mikhail PONIKAROV +// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// +// 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, or (at your option) any later version. +// +// 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.salome-platform.org/ or +// email : webmaster.salome@opencascade.com +// #ifndef EVENTS_LONGOP_H_ #define EVENTS_LONGOP_H_ @@ -12,20 +28,22 @@ * Informs the application that the long operation is performed. * Causes waiting coursor in GUI. */ -class EVENTS_EXPORT Events_LongOp: public Events_Message +class EVENTS_EXPORT Events_LongOp : public Events_Message { public: + /// Default destructor virtual ~Events_LongOp(); /// Returns the identifier of this event - static Events_ID errorID(); + static Events_ID eventID(); /// Starts the long operation static void start(void* theSender = 0); /// Stops the long operation static void end(void* theSender = 0); /// Returns true if the long operation is performed - static bool isPerformed(); + static bool isPerformed(); protected: + /// Default constructor. Use "start" and "end" for generation. Events_LongOp(void* theSender = 0); };