ManaPlus
dirs.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2004-2009 The Mana World Development Team
4  * Copyright (C) 2009-2010 The Mana Developers
5  * Copyright (C) 2011-2019 The ManaPlus Developers
6  * Copyright (C) 2019-2021 Andrei Karas
7  *
8  * This file is part of The ManaPlus Client.
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 #ifndef DIRS_H
25 #define DIRS_H
26 
27 #include "localconsts.h"
28 
29 class Dirs final
30 {
31  public:
33 
34  static void initUsersDir();
35 
36  static void updateDataPath();
37 
38 #if defined(ANDROID) && defined(USE_SDL2)
39  static void extractDataDir();
40 #else // defined(ANDROID) && defined(USE_SDL2)
41 
42  static void extractDataDir();
43 #endif // defined(ANDROID) && defined(USE_SDL2)
44 
45  static void mountDataDir();
46 
47  static void initRootDir();
48 
49  static void initHomeDir();
50 
51  static void initLocalDataDir();
52 
53  static void initTempDir();
54 
55  static void initConfigDir();
56 
57  static void initUpdatesDir();
58 
59  static void initScreenshotDir();
60 
61 #ifdef ANDROID
62 #ifdef USE_SDL2
63  static void setProgress();
64 #endif // USE_SDL2
65 #endif // ANDROID
66 };
67 
68 #endif // DIRS_H
Definition: dirs.h:30
static void initRootDir()
Definition: dirs.cpp:266
static void initTempDir()
Definition: dirs.cpp:383
static void initConfigDir()
Definition: dirs.cpp:396
static void initUpdatesDir()
Definition: dirs.cpp:451
static void initHomeDir()
Definition: dirs.cpp:330
static void initLocalDataDir()
Definition: dirs.cpp:337
static void initUsersDir()
Definition: dirs.cpp:599
static void initScreenshotDir()
Definition: dirs.cpp:544
static void extractDataDir()
Definition: dirs.cpp:179
static void mountDataDir()
Definition: dirs.cpp:198
static void updateDataPath()
Definition: dirs.cpp:161
#define final
Definition: localconsts.h:46
#define A_DELETE_COPY(func)
Definition: localconsts.h:53