File indexing completed on 2024-04-28 15:40:25

0001 // SPDX-FileCopyrightText: 2003-2010 Jesper K. Pedersen <jesper.pedersen@kdab.com>
0002 // SPDX-FileCopyrightText: 2013 Dominik Broj <broj.dominik@gmail.com>
0003 // SPDX-FileCopyrightText: 2013-2023 Johannes Zarl-Zierl <johannes@zarl-zierl.at>
0004 //
0005 // SPDX-License-Identifier: GPL-2.0-or-later
0006 
0007 #ifndef DEMOUTIL_H
0008 #define DEMOUTIL_H
0009 #include <QString>
0010 
0011 namespace Utilities
0012 {
0013 /**
0014  * @brief Delete the demo database.
0015  */
0016 void deleteDemo();
0017 /**
0018  * @brief Set up the demo database and return its location.
0019  * If anything goes wrong, a message is displayed and the program is terminated.
0020  * If there already is a database file at the demo location, load that one instead of copying the demo database.
0021  * @return the file name of index.xml
0022  */
0023 QString setupDemo();
0024 }
0025 
0026 #endif /* DEMOUTIL_H */
0027 
0028 // vi:expandtab:tabstop=4 shiftwidth=4: