MNE-CPP  beta 0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
info.h
1 //=============================================================================================================
38 #ifndef INFO_H
39 #define INFO_H
40 
41 //*************************************************************************************************************
42 //=============================================================================================================
43 // Qt INCLUDES
44 //=============================================================================================================
45 
46 #include <QString>
47 #include <QObject>
48 
49 
50 //*************************************************************************************************************
51 //=============================================================================================================
52 // DEFINE NAMESPACE MNEBrowseRawQt
53 //=============================================================================================================
54 
55 namespace MNEBrowseRawQt
56 {
57 
58 //=============================================================================================================
62 enum LogLevel
63 {
64  _LogLvMin,
65  _LogLvNormal,
66  _LogLvMax
67 };
68 
69 
70 //=============================================================================================================
74 enum LogKind
75 {
76  _LogKndMessage,
77  _LogKndWarning,
78  _LogKndError
79 };
80 
81 
82 //=============================================================================================================
88 class CInfo
89 {
90 public:
91  //=========================================================================================================
97  const static QString AppNameShort()
98  {
99  return QObject::tr("MNE_BROWSE_RAW_QT");
100  }
101 
102  //=========================================================================================================
108  const static QString AppName()
109  {
110  return QObject::tr("Extended raw fiff data browsing and editing.");
111  }
112 
113  //=========================================================================================================
117  const static QString OrganizationName()
118  {
119  return QObject::tr("mne-cpp");
120  }
121 
122  //=========================================================================================================
128  static int MajorVersion()
129  {
130  return 1;
131  }
132 
133  //=========================================================================================================
139  static int MinorVersion()
140  {
141  return 2;
142  }
143 
144  //=========================================================================================================
150  static int RevisionVersion()
151  {
152  return 0;
153  }
154 
155  //=========================================================================================================
161  static int BuildVersion()
162  {
163  return 224;
164  }
165 
166  //=========================================================================================================
172  const static QString AppVersion()
173  {
174  return QString("%1.%2.%3-%4").arg(MajorVersion()).arg(MinorVersion()).arg(RevisionVersion()).arg(BuildVersion());
175  }
176 };
177 
178 } //NAMESPACE
179 
180 #endif // INFO_H
static int BuildVersion()
Definition: info.h:161
static const QString AppName()
Definition: info.h:108
static const QString AppNameShort()
Definition: info.h:97
static int RevisionVersion()
Definition: info.h:150
static int MinorVersion()
Definition: info.h:139
The CInfo class provides application information.
Definition: info.h:88
static const QString AppVersion()
Definition: info.h:172
static int MajorVersion()
Definition: info.h:128