mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
.. but disable logging if not running as a server .. let user define if API services start in preferences
32 lines
736 B
C
32 lines
736 B
C
/**
|
|
@file
|
|
@author Stefan Frings
|
|
*/
|
|
|
|
#ifndef HTTPGLOBAL_H
|
|
#define HTTPGLOBAL_H
|
|
|
|
#include <QtGlobal>
|
|
|
|
// This is specific to Windows dll's
|
|
#if defined(Q_OS_WIN)
|
|
#if defined(QTWEBAPPLIB_EXPORT)
|
|
#define DECLSPEC Q_DECL_EXPORT
|
|
#elif defined(QTWEBAPPLIB_IMPORT)
|
|
#define DECLSPEC Q_DECL_IMPORT
|
|
#endif
|
|
#endif
|
|
#if !defined(DECLSPEC)
|
|
#define DECLSPEC
|
|
#endif
|
|
|
|
/** Get the library version number */
|
|
DECLSPEC const char* getQtWebAppLibVersion();
|
|
|
|
/** wDebug() uses QT QMessageLogger but as info to log
|
|
rather than interfering with normal qDebug usage **/
|
|
#define wDebug QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC).warning
|
|
|
|
#endif // HTTPGLOBAL_H
|
|
|