2018-04-14 21:39:55 +02:00
|
|
|
/*
|
|
|
|
|
* File: globals.h
|
2022-11-19 16:21:40 +01:00
|
|
|
* Author: Saleem Edah-Tally - nmset@yandex.com
|
2018-04-14 21:39:55 +02:00
|
|
|
* License : GPL v2
|
2022-11-19 16:21:40 +01:00
|
|
|
* Copyright Saleem Edah-Tally - © 2017
|
2018-04-14 21:39:55 +02:00
|
|
|
*
|
|
|
|
|
* Created on 6 mai 2017, 18:23
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef GLOBALS_H
|
|
|
|
|
#define GLOBALS_H
|
|
|
|
|
|
2022-10-16 15:42:36 +02:00
|
|
|
#include <libintl.h>
|
2018-04-14 21:39:55 +02:00
|
|
|
#include <string>
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
2022-10-16 15:42:36 +02:00
|
|
|
//https://www.labri.fr/perso/fleury/posts/programming/a-quick-gettext-tutorial.html
|
|
|
|
|
#define _(STRING) gettext(STRING)
|
|
|
|
|
|
2018-04-14 21:39:55 +02:00
|
|
|
#define _APPNAME_ "saf7" // Send and forget
|
|
|
|
|
#define _APP_DESCRIPTION_ "Send and forget an XMPP message"
|
2022-10-16 11:05:27 +02:00
|
|
|
#define _VERSION_ "5"
|
2022-11-19 16:21:40 +01:00
|
|
|
#define _AUTHOR_ "Saleem Edah-Tally, M.D., nmset@yandex.com"
|
2018-04-14 21:39:55 +02:00
|
|
|
#define _ABOUT_ string(_APPNAME_) + string(" - version ") + string(_VERSION_) \
|
|
|
|
|
+ string(" - ") + string(_APP_DESCRIPTION_) \
|
|
|
|
|
+ string("\nAuthor : ") + string(_AUTHOR_) \
|
|
|
|
|
+ string("\nLicense : GPL v2")
|
|
|
|
|
|
|
|
|
|
#endif /* GLOBALS_H */
|
|
|
|
|
|