utils.h 643 Bytes
Newer Older
Thiago Santini's avatar
Thiago Santini committed
1 2
#ifndef UTILS_H
#define UTILS_H
Thiago C. Santini's avatar
Thiago C. Santini committed
3

4 5 6 7
#include <iostream>
#include <fstream>

#include <QApplication>
Thiago C. Santini's avatar
Thiago C. Santini committed
8 9 10
#include <QString>
#include <QDateTime>
#include <QTimeZone>
11 12
#include <QElapsedTimer>
#include <QProcess>
Thiago C. Santini's avatar
Thiago C. Santini committed
13 14 15
#include <QDebug>

#include "settings.h"
16
#include "GlobalTimer.h"
Thiago C. Santini's avatar
Thiago C. Santini committed
17 18 19

QString getTimestampStr();
QString getNamePrefix();
20 21
void initBanner();
void exitBanner();
Thiago C. Santini's avatar
Thiago C. Santini committed
22

23
extern QString gBinaryPath;
Thiago C. Santini's avatar
Thiago C. Santini committed
24
extern QString gCurrentSubjectName;
25 26 27 28
extern QString gFileIndexStr;
extern GlobalTimer gTimer; // Only valid after first frame has been received!

void logMessages(QtMsgType type, const QMessageLogContext &context, const QString &msg);
Thiago C. Santini's avatar
Thiago C. Santini committed
29

Thiago Santini's avatar
Thiago Santini committed
30
#endif // UTILS_H
Thiago C. Santini's avatar
Thiago C. Santini committed
31