mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
This library, original taken from https://github.com/sijk/qt-unix-signals (but a maintained fork exists at https://github.com/nyalldawson/qt-unix-signals), handles unix signal watching using the Qt libraries. It allows for detection of signals like SIGINT and SIGTERM, and allows Qt applications to respond gracefully to these. Included in external libraries for use in QGIS terminal applications.
43 lines
1.0 KiB
C
43 lines
1.0 KiB
C
|
|
#ifndef QTSIGNAL_EXPORT_H
|
|
#define QTSIGNAL_EXPORT_H
|
|
|
|
#ifdef QTSIGNAL_STATIC_DEFINE
|
|
# define QTSIGNAL_EXPORT
|
|
# define QTSIGNAL_NO_EXPORT
|
|
#else
|
|
# ifndef QTSIGNAL_EXPORT
|
|
# ifdef QTSignal_EXPORTS
|
|
/* We are building this library */
|
|
# define QTSIGNAL_EXPORT __attribute__((visibility("default")))
|
|
# else
|
|
/* We are using this library */
|
|
# define QTSIGNAL_EXPORT __attribute__((visibility("default")))
|
|
# endif
|
|
# endif
|
|
|
|
# ifndef QTSIGNAL_NO_EXPORT
|
|
# define QTSIGNAL_NO_EXPORT __attribute__((visibility("hidden")))
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef QTSIGNAL_DEPRECATED
|
|
# define QTSIGNAL_DEPRECATED __attribute__ ((__deprecated__))
|
|
#endif
|
|
|
|
#ifndef QTSIGNAL_DEPRECATED_EXPORT
|
|
# define QTSIGNAL_DEPRECATED_EXPORT QTSIGNAL_EXPORT QTSIGNAL_DEPRECATED
|
|
#endif
|
|
|
|
#ifndef QTSIGNAL_DEPRECATED_NO_EXPORT
|
|
# define QTSIGNAL_DEPRECATED_NO_EXPORT QTSIGNAL_NO_EXPORT QTSIGNAL_DEPRECATED
|
|
#endif
|
|
|
|
#if 0 /* DEFINE_NO_DEPRECATED */
|
|
# ifndef QTSIGNAL_NO_DEPRECATED
|
|
# define QTSIGNAL_NO_DEPRECATED
|
|
# endif
|
|
#endif
|
|
|
|
#endif /* QTSIGNAL_EXPORT_H */
|