Emergency 20 Dokumentation  4.2.0
Mod-inl.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Namespace ]
6 //[-------------------------------------------------------]
7 namespace em5
8 {
9 
10 
11  //[-------------------------------------------------------]
12  //[ Public methods ]
13  //[-------------------------------------------------------]
14  inline Mod::Mod(uint32) :
15  mProject(nullptr),
16  mOrderingIndex(0),
17  mIsEnabled(false),
18  mIsMounted(false)
19  {
20  // Nothing to do in here
21  }
22 
23  inline Mod::~Mod()
24  {
25  // Nothing to do in here
26  }
27 
28  inline const std::string& Mod::getName() const
29  {
30  return mName;
31  }
32 
33  inline const std::string& Mod::getDisplayName() const
34  {
35  // TODO(fw): Currently, there is no such thing as a display name property
36  return mName; //mDisplayName;
37  }
38 
39  inline const std::string& Mod::getIconFilename() const
40  {
41  return mIconFilename;
42  }
43 
44  inline qsf::Project& Mod::getProject() const
45  {
46  return *mProject;
47  }
48 
50  {
51  return mOrderingIndex;
52  }
53 
54  inline void Mod::setOrderingIndex(uint32 index)
55  {
56  mOrderingIndex = index;
57  }
58 
59  inline bool Mod::isEnabled() const
60  {
61  return mIsEnabled;
62  }
63 
64  inline void Mod::setEnabled(bool enabled)
65  {
66  mIsEnabled = enabled;
67  }
68 
69  inline bool Mod::isMounted() const
70  {
71  return mIsMounted;
72  }
73 
74 
75 //[-------------------------------------------------------]
76 //[ Namespace ]
77 //[-------------------------------------------------------]
78 } // em5
Definition: ActionPriority.h:13
const std::string & getDisplayName() const
Definition: Mod-inl.h:33
const std::string & getName() const
Definition: Mod-inl.h:28
unsigned int uint32
Definition: PlatformTypes.h:181
uint32 getOrderingIndex() const
Definition: Mod-inl.h:49
bool isMounted() const
Definition: Mod-inl.h:69
const std::string & getIconFilename() const
Definition: Mod-inl.h:39
Mod(uint32)
Default constructor.
Definition: Mod-inl.h:14
~Mod()
Destructor.
Definition: Mod-inl.h:23
void setOrderingIndex(uint32 index)
Definition: Mod-inl.h:54
qsf::Project & getProject() const
Definition: Mod-inl.h:44
bool isEnabled() const
Definition: Mod-inl.h:59
Project class.
Definition: Project.h:40
void setEnabled(bool enabled)
Definition: Mod-inl.h:64