2019-05-10 17:51:43 +00:00
|
|
|
// 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,
|
2020-10-28 11:23:41 +00:00
|
|
|
Statistics,
|
2019-05-10 17:51:43 +00:00
|
|
|
Count
|
|
|
|
};
|
|
|
|
|
|
|
|
ApplicationState getAppState();
|
|
|
|
void setAppState(ApplicationState state);
|
|
|
|
|
|
|
|
#endif
|