X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FEvents%2FEvents_LongOp.h;h=1b5eb36b8f1ae22fc00305b9430b1b541e84a001;hb=8d04b5f4360b23cf376beff9c5e7c12d0e6a5f1e;hp=bc698ac502c32b05f680962dbc7ad34d3d8557fa;hpb=a0247c36615e233b68bc5ed98c1b87a999a4a51e;p=modules%2Fshaper.git diff --git a/src/Events/Events_LongOp.h b/src/Events/Events_LongOp.h index bc698ac50..1b5eb36b8 100644 --- a/src/Events/Events_LongOp.h +++ b/src/Events/Events_LongOp.h @@ -1,6 +1,21 @@ -// File: Events_LongOp.h -// Created: 29 Jul 2014 -// Author: Mikhail PONIKAROV +// Copyright (C) 2014-2019 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 +27,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); };