1 /* This file is (c) 2008-2012 Konstantin Isakov <ikm@goldendict.org>
2  * Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
3 
4 #ifndef __ATOMIC_RENAME_HH_INCLUDED__
5 #define __ATOMIC_RENAME_HH_INCLUDED__
6 
7 #include <QString>
8 
9 /// Performs an atomic rename of file, from oldBame to newName. If newName
10 /// exists, it gets overwritten. Names should feature Qt-style separators
11 /// (straight slashes). Returns true on success, false on failure.
12 bool renameAtomically( QString const & oldName, QString const & newName );
13 
14 #endif
15