Emergency 20 Dokumentation  4.2.0
VersionSwitch.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
13 #include "em5/Export.h"
14 
15 #include <string>
16 
17 
18 //[-------------------------------------------------------]
19 //[ Forward declarations ]
20 //[-------------------------------------------------------]
21 namespace qsf
22 {
23  class GuiDocument;
24 }
25 
26 
27 //[-------------------------------------------------------]
28 //[ Namespace ]
29 //[-------------------------------------------------------]
30 namespace em5
31 {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Classes ]
36  //[-------------------------------------------------------]
39  {
40  public:
41  enum class Edition : unsigned char
42  {
43  STANDARD = 0,
44  DELUXE,
45  EMERGENCY2016,
46  EMERGENCY2017,
47  EMERGENCY20YEARS
48  };
49 
50  enum class Distribution : unsigned char
51  {
52  DIRECT = 0,
53  DVD,
54  ESD,
55  STEAM,
56  APPSTORE
57  };
58 
59  public:
60  static const char* getApplicationName();
61  static const char* getApplicationSlug();
62  static const char* getApplicationVersion();
63  static const char* getMultiplayCompatibilityVersion();
64 
65  static Edition getEdition();
66  static const char* getEditionIdentifier();
67  static bool isDeluxe();
68  static bool isDeluxeOrHigher();
69  static bool isEmergency2016OrHigher();
70  static bool isEmergency2017OrHigher();
71  static bool isEmergency20YearsOrHigher();
72 
73  static Distribution getDistribution();
74  static const char* getDistributionIdentifier();
75  static void setAutoUpdaterEnabled(bool enabled);
76  static bool useAutoUpdater();
77 
78  static uint32 getNumberOfCampaigns();
79 
80  static void setGuiEditionLogo(qsf::GuiDocument& guiDocument, const std::string& elementName);
81  static void setGuiEditionMainMenuBackground(qsf::GuiDocument& guiDocument, const std::string& elementName);
82  };
83 
84 
85 //[-------------------------------------------------------]
86 //[ Namespace ]
87 //[-------------------------------------------------------]
88 } // em5
Definition: ActionPriority.h:13
unsigned int uint32
Definition: PlatformTypes.h:181
Graphical User Interface (GUI) document base class.
Definition: GuiDocument.h:51
#define EM5_API_EXPORT
Definition: Export.h:28
Definition: PickupPersonByParamedicAction.h:21
Edition
Definition: VersionSwitch.h:41
Definition: VersionSwitch.h:38
Distribution
Definition: VersionSwitch.h:50