summaryrefslogtreecommitdiffstats
path: root/core/applicationstate.h
blob: 5bae09aa41771af29d18cf92f874150dc50b8d49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// SPDX-License-Identifier: GPL-2.0
#ifndef APPLICATIONSTATE_H
#define APPLICATIONSTATE_H

// By using an enum class, the enum entries don't polute the global namespace.
// Moreover, they are strongly typed. This means that they are not auto-converted
// to integer types if e.g. used as array-indices.
enum class ApplicationState {
	Default,
	EditDive,
	PlanDive,
	EditPlannedDive,
	EditDiveSite,
	FilterDive,
	Statistics,
	Count
};

ApplicationState getAppState();
void setAppState(ApplicationState state);

#endif