MNE-CPP  beta 1.0
info.h
1 //=============================================================================================================
36 #ifndef INFO_H
37 #define INFO_H
38 
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // QT INCLUDES
43 //=============================================================================================================
44 
45 #include <QString>
46 #include <QObject>
47 
48 
49 //*************************************************************************************************************
50 //=============================================================================================================
51 // DEFINE NAMESPACE MNEX
52 //=============================================================================================================
53 
54 namespace MNEX
55 {
56 
57 
58 //*************************************************************************************************************
59 //=============================================================================================================
60 // ENUMERATIONS
61 //=============================================================================================================
62 
63 //=============================================================================================================
67 enum LogLevel
68 {
69  _LogLvMin,
70  _LogLvNormal,
71  _LogLvMax
72 };
73 
74 
75 //=============================================================================================================
79 enum LogKind
80 {
81  _LogKndMessage,
82  _LogKndWarning,
83  _LogKndError
84 };
85 
86 
87 //=============================================================================================================
93 class CInfo
94 {
95 public:
96 
97  //=========================================================================================================
103  const static QString AppNameShort()
104  {
105  return QObject::tr("MNE-X");
106  }
107 
108  //=========================================================================================================
114  const static QString AppName()
115  {
116  return QObject::tr("Real-Time Acquisition & Processing");
117  }
118 
119  //=========================================================================================================
125  static int MajorVersion()
126  {
127  return 0;
128  }
129 
130  //=========================================================================================================
136  static int MinorVersion()
137  {
138  return 9;
139  }
140 
141  //=========================================================================================================
147  static int RevisionVersion()
148  {
149  return 0;
150  }
151 
152  //=========================================================================================================
158  static int BuildVersion()
159  {
160  return 224;
161  }
162 
163  //=========================================================================================================
169  const static QString AppVersion()
170  {
171  return QString("%1.%2.%3-%4").arg(MajorVersion()).arg(MinorVersion()).arg(RevisionVersion()).arg(BuildVersion());
172  }
173 };
174 
175 } //NAMESPACE
176 
177 #endif // INFO_H
static int BuildVersion()
Definition: info.h:158
static const QString AppNameShort()
Definition: info.h:103
static int MajorVersion()
Definition: info.h:125
static int MinorVersion()
Definition: info.h:136
static const QString AppName()
Definition: info.h:114
static const QString AppVersion()
Definition: info.h:169
static int RevisionVersion()
Definition: info.h:147
The CInfo class provides application information.
Definition: info.h:93
Definition: arrow.h:75