qtmobility/src/global/qmobilityglobal.h
branchRCL_3
changeset 8 885c2596c964
parent 6 4203353e74ea
equal deleted inserted replaced
7:e2d33e235f7e 8:885c2596c964
    40 ****************************************************************************/
    40 ****************************************************************************/
    41 #ifndef QMOBILITYGLOBAL_H
    41 #ifndef QMOBILITYGLOBAL_H
    42 #define QMOBILITYGLOBAL_H
    42 #define QMOBILITYGLOBAL_H
    43 
    43 
    44 
    44 
    45 #define QTM_VERSION_STR   "1.0.1"
    45 #define QTM_VERSION_STR   "1.0.2"
    46 /*
    46 /*
    47    QTM_VERSION is (major << 16) + (minor << 8) + patch.
    47    QTM_VERSION is (major << 16) + (minor << 8) + patch.
    48 */
    48 */
    49 #define QTM_VERSION 0x010001
    49 #define QTM_VERSION 0x010002
    50 /*
    50 /*
    51    can be used like #if (QTM_VERSION >= QTM_VERSION_CHECK(1, 0, 1))
    51    can be used like #if (QTM_VERSION >= QTM_VERSION_CHECK(1, 0, 2))
    52 */
    52 */
    53 #define QTM_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))
    53 #define QTM_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))
    54 
    54 
    55 #define QTM_PACKAGEDATE_STR "YYYY-MM-DD"
    55 #define QTM_PACKAGEDATE_STR "YYYY-MM-DD"
    56 
    56 
    62 #   define QT_BUILD_INTERNAL
    62 #   define QT_BUILD_INTERNAL
    63 # endif
    63 # endif
    64 #endif
    64 #endif
    65 #include <QtCore/qglobal.h>
    65 #include <QtCore/qglobal.h>
    66 
    66 
    67 #if defined(SYMBIAN_DATABASEMANAGER_SERVER)
    67 #if defined(Q_OS_WIN) || defined(Q_OS_SYMBIAN)
    68 #  define Q_SERVICEFW_EXPORT
    68 #  if defined(QT_NODLL)
    69 #else
    69 #    undef QT_MAKEDLL
    70 #  if defined(Q_OS_WIN) || defined(Q_OS_SYMBIAN)
    70 #    undef QT_DLL
    71 #    if defined(QT_NODLL)
    71 #  elif defined(QT_MAKEDLL)
    72 #      undef QT_MAKEDLL
    72 #    if defined(QT_DLL)
    73 #      undef QT_DLL
    73 #      undef QT_DLL
    74 #    elif defined(QT_MAKEDLL)
    74 #    endif
    75 #      if defined(QT_DLL)
    75 #    if defined(QT_BUILD_BEARER_LIB)
    76 #        undef QT_DLL
    76 #      define Q_BEARER_EXPORT Q_DECL_EXPORT
    77 #      endif
    77 #    else
    78 #      if defined(QT_BUILD_BEARER_LIB)
    78 #      define Q_BEARER_EXPORT Q_DECL_IMPORT
    79 #        define Q_BEARER_EXPORT Q_DECL_EXPORT
    79 #    endif
    80 #      else
    80 #    if defined(QT_BUILD_CFW_LIB)
    81 #        define Q_BEARER_EXPORT Q_DECL_IMPORT
    81 #      define Q_PUBLISHSUBSCRIBE_EXPORT Q_DECL_EXPORT
    82 #      endif
    82 #    else
    83 #      if defined(QT_BUILD_CFW_LIB)
    83 #      define Q_PUBLISHSUBSCRIBE_EXPORT Q_DECL_IMPORT
    84 #        define Q_PUBLISHSUBSCRIBE_EXPORT Q_DECL_EXPORT
    84 #    endif
    85 #      else
    85 #    if defined(QT_BUILD_CONTACTS_LIB)
    86 #        define Q_PUBLISHSUBSCRIBE_EXPORT Q_DECL_IMPORT
    86 #      define Q_CONTACTS_EXPORT Q_DECL_EXPORT
    87 #      endif
    87 #    else
    88 #      if defined(QT_BUILD_CONTACTS_LIB)
    88 #      define Q_CONTACTS_EXPORT Q_DECL_IMPORT
    89 #        define Q_CONTACTS_EXPORT Q_DECL_EXPORT
    89 #    endif
    90 #      else
    90 #    if defined(QT_BUILD_VERSIT_LIB)
    91 #        define Q_CONTACTS_EXPORT Q_DECL_IMPORT
    91 #      define Q_VERSIT_EXPORT Q_DECL_EXPORT
    92 #      endif
    92 #    else
    93 #      if defined(QT_BUILD_VERSIT_LIB)
    93 #      define Q_VERSIT_EXPORT Q_DECL_IMPORT
    94 #        define Q_VERSIT_EXPORT Q_DECL_EXPORT
    94 #    endif
    95 #      else
    95 #    if defined(QT_BUILD_LOCATION_LIB)
    96 #        define Q_VERSIT_EXPORT Q_DECL_IMPORT
    96 #      define Q_LOCATION_EXPORT Q_DECL_EXPORT
    97 #      endif
    97 #    else
    98 #      if defined(QT_BUILD_LOCATION_LIB)
    98 #      define Q_LOCATION_EXPORT Q_DECL_IMPORT
    99 #        define Q_LOCATION_EXPORT Q_DECL_EXPORT
    99 #    endif
   100 #      else
   100 #    if defined(QT_BUILD_MESSAGING_LIB)
   101 #        define Q_LOCATION_EXPORT Q_DECL_IMPORT
   101 #      define Q_MESSAGING_EXPORT Q_DECL_EXPORT
   102 #      endif
   102 #    else
   103 #      if defined(QT_BUILD_MESSAGING_LIB)
   103 #      define Q_MESSAGING_EXPORT Q_DECL_IMPORT
   104 #        define Q_MESSAGING_EXPORT Q_DECL_EXPORT
   104 #    endif
   105 #      else
       
   106 #        define Q_MESSAGING_EXPORT Q_DECL_IMPORT
       
   107 #      endif
       
   108 #      if defined(QT_BUILD_MULTIMEDIA_LIB)
   105 #      if defined(QT_BUILD_MULTIMEDIA_LIB)
   109 #        define Q_MULTIMEDIA_EXPORT Q_DECL_EXPORT
   106 #        define Q_MULTIMEDIA_EXPORT Q_DECL_EXPORT
   110 #      else
   107 #    else
   111 #        define Q_MULTIMEDIA_EXPORT Q_DECL_IMPORT
   108 #        define Q_MULTIMEDIA_EXPORT Q_DECL_IMPORT
   112 #      endif
   109 #    endif
   113 #      if defined(QT_BUILD_SFW_LIB)
   110 #    if defined(QT_BUILD_SFW_LIB)
   114 #        define Q_SERVICEFW_EXPORT Q_DECL_EXPORT
   111 #      define Q_SERVICEFW_EXPORT Q_DECL_EXPORT
   115 #      else
   112 #    else
   116 #        define Q_SERVICEFW_EXPORT Q_DECL_IMPORT
   113 #      define Q_SERVICEFW_EXPORT Q_DECL_IMPORT
   117 #      endif
   114 #    endif
   118 #      if defined(QT_BUILD_SYSINFO_LIB)
   115 #    if defined(QT_BUILD_SYSINFO_LIB)
   119 #        define Q_SYSINFO_EXPORT Q_DECL_EXPORT
   116 #      define Q_SYSINFO_EXPORT Q_DECL_EXPORT
   120 #      else
   117 #    else
   121 #        define Q_SYSINFO_EXPORT Q_DECL_IMPORT
   118 #      define Q_SYSINFO_EXPORT Q_DECL_IMPORT
   122 #      endif
   119 #    endif
   123 #      if defined(QT_BUILD_SENSORS_LIB)
   120 #    if defined(QT_BUILD_SENSORS_LIB)
   124 #        define Q_SENSORS_EXPORT Q_DECL_EXPORT
   121 #      define Q_SENSORS_EXPORT Q_DECL_EXPORT
   125 #      else
   122 #    else
   126 #        define Q_SENSORS_EXPORT Q_DECL_IMPORT
   123 #      define Q_SENSORS_EXPORT Q_DECL_IMPORT
   127 #      endif
   124 #    endif
   128 #    elif defined(QT_DLL) /* use a Qt DLL library */
   125 #  elif defined(QT_DLL) /* use a Qt DLL library */
   129 #      define Q_BEARER_EXPORT Q_DECL_IMPORT
   126 #    define Q_BEARER_EXPORT Q_DECL_IMPORT
   130 #      define Q_PUBLISHSUBSCRIBE_EXPORT Q_DECL_IMPORT
   127 #    define Q_PUBLISHSUBSCRIBE_EXPORT Q_DECL_IMPORT
   131 #      define Q_CONTACTS_EXPORT Q_DECL_IMPORT
   128 #    define Q_CONTACTS_EXPORT Q_DECL_IMPORT
   132 #      define Q_VERSIT_EXPORT Q_DECL_IMPORT
   129 #    define Q_VERSIT_EXPORT Q_DECL_IMPORT
   133 #      define Q_LOCATION_EXPORT Q_DECL_IMPORT
   130 #    define Q_LOCATION_EXPORT Q_DECL_IMPORT
   134 #      define Q_MULTIMEDIA_EXPORT Q_DECL_IMPORT
   131 #      define Q_MULTIMEDIA_EXPORT Q_DECL_IMPORT
   135 #      define Q_MESSAGING_EXPORT Q_DECL_IMPORT
   132 #    define Q_MESSAGING_EXPORT Q_DECL_IMPORT
       
   133 #    if QTM_SERVICEFW_SYMBIAN_DATABASEMANAGER_SERVER
       
   134 #      define Q_SERVICEFW_EXPORT
       
   135 #    else
   136 #      define Q_SERVICEFW_EXPORT Q_DECL_IMPORT
   136 #      define Q_SERVICEFW_EXPORT Q_DECL_IMPORT
   137 #      define Q_SYSINFO_EXPORT Q_DECL_IMPORT
   137 #    endif
   138 #      define Q_SENSORS_EXPORT Q_DECL_IMPORT
   138 #    define Q_SYSINFO_EXPORT Q_DECL_IMPORT
   139 #    endif
   139 #    define Q_SENSORS_EXPORT Q_DECL_IMPORT
       
   140 #  endif
       
   141 #endif
       
   142 
       
   143 #if !defined(Q_SERVICEFW_EXPORT)
       
   144 #  if defined(QT_SHARED)
       
   145 #    define Q_BEARER_EXPORT Q_DECL_EXPORT
       
   146 #    define Q_PUBLISHSUBSCRIBE_EXPORT Q_DECL_EXPORT
       
   147 #    define Q_CONTACTS_EXPORT Q_DECL_EXPORT
       
   148 #    define Q_VERSIT_EXPORT Q_DECL_EXPORT
       
   149 #    define Q_LOCATION_EXPORT Q_DECL_EXPORT
       
   150 #    define Q_MULTIMEDIA_EXPORT Q_DECL_EXPORT
       
   151 #    define Q_MESSAGING_EXPORT Q_DECL_EXPORT
       
   152 #    define Q_SERVICEFW_EXPORT Q_DECL_EXPORT
       
   153 #    define Q_SYSINFO_EXPORT Q_DECL_EXPORT
       
   154 #    define Q_SENSORS_EXPORT Q_DECL_EXPORT
   140 #  else
   155 #  else
   141 #  endif
   156 #    define Q_BEARER_EXPORT
   142 #  if !defined(Q_SERVICEFW_EXPORT)
   157 #    define Q_PUBLISHSUBSCRIBE_EXPORT
   143 #    if defined(QT_SHARED)
   158 #    define Q_CONTACTS_EXPORT
   144 #      define Q_BEARER_EXPORT Q_DECL_EXPORT
   159 #    define Q_VERSIT_EXPORT
   145 #      define Q_PUBLISHSUBSCRIBE_EXPORT Q_DECL_EXPORT
   160 #    define Q_LOCATION_EXPORT
   146 #      define Q_CONTACTS_EXPORT Q_DECL_EXPORT
   161 #    define Q_MULTIMEDIA_EXPORT
   147 #      define Q_VERSIT_EXPORT Q_DECL_EXPORT
   162 #    define Q_MESSAGING_EXPORT
   148 #      define Q_LOCATION_EXPORT Q_DECL_EXPORT
   163 #    define Q_SERVICEFW_EXPORT
   149 #      define Q_MULTIMEDIA_EXPORT Q_DECL_EXPORT
   164 #    define Q_SYSINFO_EXPORT
   150 #      define Q_MESSAGING_EXPORT Q_DECL_EXPORT
   165 #    define Q_SENSORS_EXPORT
   151 #      define Q_SERVICEFW_EXPORT Q_DECL_EXPORT
   166 #  endif
   152 #      define Q_SYSINFO_EXPORT Q_DECL_EXPORT
   167 #endif
   153 #      define Q_SENSORS_EXPORT Q_DECL_EXPORT
   168 
   154 #    else
   169 
   155 #      define Q_BEARER_EXPORT
   170 #ifdef QTM_SERVICEFW_SYMBIAN_DATABASEMANAGER_SERVER
   156 #      define Q_PUBLISHSUBSCRIBE_EXPORT
   171 #  ifdef Q_SERVICEFW_EXPORT
   157 #      define Q_CONTACTS_EXPORT
   172 #    undef Q_SERVICEFW_EXPORT
   158 #      define Q_VERSIT_EXPORT
   173 #  endif
   159 #      define Q_LOCATION_EXPORT
   174 #  define Q_SERVICEFW_EXPORT
   160 #      define Q_MULTIMEDIA_EXPORT
   175 #  ifdef Q_AUTOTEST_EXPORT
   161 #      define Q_MESSAGING_EXPORT
   176 #    undef Q_AUTOTEST_EXPORT
   162 #      define Q_SERVICEFW_EXPORT
   177 #  endif
   163 #      define Q_SYSINFO_EXPORT
   178 #  define Q_AUTOTEST_EXPORT
   164 #      define Q_SENSORS_EXPORT
       
   165 #    endif
       
   166 #  endif
       
   167 #endif
   179 #endif
   168 
   180 
   169 // The namespace is hardcoded as moc has issues resolving
   181 // The namespace is hardcoded as moc has issues resolving
   170 // macros which would be a prerequisite for a dynmamic namespace
   182 // macros which would be a prerequisite for a dynmamic namespace
   171 #define QTM_NAMESPACE QtMobility
   183 #define QTM_NAMESPACE QtMobility