#ifndef GLOBALS_H
#define GLOBALS_H
+#define APP_NAME "FFBChecker"
+static const int APP_VERSION_MAJOR(0);
+static const int APP_VERSION_MINOR(1);
+static const char APP_VERSION_REL('a');
+
enum class FFBEffectTypes { NONE, CONSTANT, PERIODIC, RAMP, SPRING, FRICTION, DAMPER, RUMBLE, INERTIA };
enum class PeriodicWaveforms { NONE, SQUARE, TRIANGLE, SINE, SAW_UP, SAW_DOWN };
#include "deviceprober.h"
#include "mainwindow.h"
#include <QtWidgets/QApplication>
+#include <QDebug>
int main(int argc, char** argv)
{
QApplication myApp(argc, argv);
+ const QString VERSION_STRING = QString(APP_NAME) + " " + QString::number(APP_VERSION_MAJOR) + "." + QString::number(APP_VERSION_MINOR) +
+ QString(APP_VERSION_REL);
+ qDebug() << VERSION_STRING;
std::shared_ptr<DeviceProber> prober(new DeviceProber);
MainWindow* mWin = new MainWindow(prober);