diff options
author | Lincoln Ramsay <lincoln.ramsay@nokia.com> | 2011-08-23 11:21:42 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-08-25 07:59:15 +0200 |
commit | fd6f05aa763538309c4d26223f2111be8ec0f82d (patch) | |
tree | 503309c2369b1279eef94f810e45b03e574b7501 /src/qtmsensors/qtmsensorsglobal.h | |
parent | 85dc94873bd21d97cd472af77fefa25fecd8618e (diff) |
QtmSensors, legacy sensors library.
QtSensors will not remain source-compatible with Mobility.
QtmSensors exists to provide a source-compatible API.
QtmSensors is implemented as a wrapper over the QtSensors library.
Only front end functionality is supported. Backends must be ported
to QtSensors.
Change-Id: Ia7e45b719fb5f84637f899374990dbd680e259bd
Reviewed-on: http://codereview.qt.nokia.com/3348
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
Diffstat (limited to 'src/qtmsensors/qtmsensorsglobal.h')
-rw-r--r-- | src/qtmsensors/qtmsensorsglobal.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/qtmsensors/qtmsensorsglobal.h b/src/qtmsensors/qtmsensorsglobal.h new file mode 100644 index 00000000..078ac897 --- /dev/null +++ b/src/qtmsensors/qtmsensorsglobal.h @@ -0,0 +1,53 @@ +#ifndef QTMSENSORSGLOBAL_H +#define QTMSENSORSGLOBAL_H + +#include <QtCore/qglobal.h> + +#if defined(Q_OS_WIN) || defined(Q_OS_SYMBIAN) +# if defined(QT_NODLL) +# undef QT_MAKEDLL +# undef QT_DLL +# elif defined(QT_MAKEDLL) /* create a Qt DLL library */ +# if defined(QT_DLL) +# undef QT_DLL +# endif +# if defined(QT_BUILD_SENSORS1_LIB) +# define QTM_SENSORS_EXPORT Q_DECL_EXPORT +# else +# define QTM_SENSORS_EXPORT Q_DECL_IMPORT +# endif +# define Q_TEMPLATEDLL +# elif defined(QT_DLL) /* use a Qt DLL library */ +# define QTM_SENSORS_EXPORT Q_DECL_IMPORT +# define Q_TEMPLATEDLL +# endif +# define Q_NO_DECLARED_NOT_DEFINED +#else +# if defined(Q_OS_LINUX) && defined(Q_CC_BOR) +# define Q_TEMPLATEDLL +# define Q_NO_DECLARED_NOT_DEFINED +# endif +# undef QT_MAKEDLL /* ignore these for other platforms */ +# undef QT_DLL +#endif + +#if !defined(QTM_SENSORS_EXPORT) +# if defined(QT_SHARED) +# define QTM_SENSORS_EXPORT Q_DECL_EXPORT +# else +# define QTM_SENSORS_EXPORT +# endif +#endif + +#define QTM_BEGIN_NAMESPACE namespace QtMobility { +#define QTM_END_NAMESPACE } +#define QTM_USE_NAMESPACE using namespace QtMobility; +#define QTM_PREPEND_NAMESPACE(x) QtMobility::x + +#if QT_PREPEND_NAMESPACE +#define NEW_NAMESPACE(x) QT_PREPEND_NAMESPACE(x) +#else +#define NEW_NAMESPACE(x) ::x +#endif + +#endif |