Files
shipheart-qt/shipheart.h
T

45 lines
1.3 KiB
C++
Executable File

#ifndef SHIPHEART_H
#define SHIPHEART_H
#include <limits> // Nécessaire pour les fonctions du type 'numeric_limits' qui donnent les valeurs maxi en fonction du type. Exemple : std::numeric_limits<quint32>::max();
#include <QtMath>
// Type mesure :
#define SOURCE_MESURE_CIRCUIT 1
#define SOURCE_MESURE_CAPTEUR 2
#define SOURCE_MESURE_RESERVOIR 3
#define SOURCE_MESURE_BATTERIE 4
// Type unité :
#define UNITE_VOLUME 1
#define UNITE_TEMPERATURE 2
#define UNITE_LATITUDE 3 // A priori, pas utilisé dans la partie C++
#define UNITE_LONGITUDE 4 // A priori, pas utilisé dans la partie C++
// Unités de type Volume :
#define UNITE_VOLUME_LITRES 0
#define UNITE_VOLUME_US_GALLONS 1
#define UNITE_VOLUME_IMP_GALLONS 2
// Unités de type Température :
#define UNITE_TEMPERATURE_CELSIUS 0
#define UNITE_TEMPERATURE_FAHRENHEIT 1
#define FORMAT_DATE_HEURE_BDD "yyyy-MM-dd hh:mm:ss"
// Base de données :
//#define BDD_HOST_NAME "192.168.1.195"
#define BDD_HOST_NAME "localhost"
#define BDD_USER_NAME "koriolan"
#define BDD_USER_PWD "Mp7Hgf12bV9zm"
#define BDD_BASE_NAME "shipheart"
#endif // SHIPHEART_H