X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Tools.h;h=ffe004e51158540fd7126738ce22ca7f6e488e3a;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=98178651f21436633800594fa3a82809b4161985;hpb=c4eab94a20a0d93100549a210582d46409fec1cc;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Tools.h b/src/XGUI/XGUI_Tools.h index 98178651f..ffe004e51 100644 --- a/src/XGUI/XGUI_Tools.h +++ b/src/XGUI/XGUI_Tools.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2023 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -109,6 +109,12 @@ bool XGUI_EXPORT canRemoveOrRename(QWidget* theParent, const std::set& thePrs); + +/// Creates and returns the temporary directory (with random name) using the environment variable +/// path to location of such directories, +std::string getTmpDirByEnv( const char* thePathEnv); + +/// Removes files and directory where they are located +void removeTemporaryFiles(const std::string& theDirectory, + const std::list& theFiles); }; #endif