qtmobility/src/messaging/win32wce/qmailglobal.h
changeset 1 2b40d63a9c3d
child 11 06b8e2af4411
equal deleted inserted replaced
0:cfcbf08528c4 1:2b40d63a9c3d
       
     1 /****************************************************************************
       
     2 **
       
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     4 ** All rights reserved.
       
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
       
     6 **
       
     7 ** This file is part of the Qt Mobility Components.
       
     8 **
       
     9 ** $QT_BEGIN_LICENSE:LGPL$
       
    10 ** No Commercial Usage
       
    11 ** This file contains pre-release code and may not be distributed.
       
    12 ** You may use this file in accordance with the terms and conditions
       
    13 ** contained in the Technology Preview License Agreement accompanying
       
    14 ** this package.
       
    15 **
       
    16 ** GNU Lesser General Public License Usage
       
    17 ** Alternatively, this file may be used under the terms of the GNU Lesser
       
    18 ** General Public License version 2.1 as published by the Free Software
       
    19 ** Foundation and appearing in the file LICENSE.LGPL included in the
       
    20 ** packaging of this file.  Please review the following information to
       
    21 ** ensure the GNU Lesser General Public License version 2.1 requirements
       
    22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
       
    23 **
       
    24 ** In addition, as a special exception, Nokia gives you certain additional
       
    25 ** rights.  These rights are described in the Nokia Qt LGPL Exception
       
    26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
       
    27 **
       
    28 ** If you have questions regarding the use of this file, please contact
       
    29 ** Nokia at qt-info@nokia.com.
       
    30 **
       
    31 **
       
    32 **
       
    33 **
       
    34 **
       
    35 **
       
    36 **
       
    37 **
       
    38 ** $QT_END_LICENSE$
       
    39 **
       
    40 ****************************************************************************/
       
    41 
       
    42 #ifndef QMAILGLOBAL_H
       
    43 #define QMAILGLOBAL_H
       
    44 
       
    45 #include <qglobal.h>
       
    46 
       
    47 #ifdef SINGLE_MODULE_QTOPIAMAIL
       
    48 #define QMF_DECL_EXPORT
       
    49 #define QMF_DECL_IMPORT
       
    50 #define QMF_VISIBILITY
       
    51 #else
       
    52 #if defined(Q_OS_WIN) || defined(Q_OS_SYMBIAN)
       
    53 #define QMF_DECL_EXPORT Q_DECL_EXPORT
       
    54 #define QMF_DECL_IMPORT Q_DECL_IMPORT
       
    55 #define QMF_VISIBILITY
       
    56 #elif defined(QT_VISIBILITY_AVAILABLE)
       
    57 #define QMF_DECL_EXPORT Q_DECL_EXPORT
       
    58 #define QMF_DECL_IMPORT Q_DECL_IMPORT
       
    59 #define QMF_VISIBILITY __attribute__((visibility("default")))
       
    60 #else
       
    61 #define QMF_DECL_EXPORT
       
    62 #define QMF_DECL_IMPORT
       
    63 #define QMF_VISIBILITY
       
    64 #endif
       
    65 #endif
       
    66 
       
    67 #ifdef QTOPIAMAIL_INTERNAL
       
    68 #define QTOPIAMAIL_EXPORT QMF_DECL_EXPORT
       
    69 #else
       
    70 #define QTOPIAMAIL_EXPORT QMF_DECL_IMPORT
       
    71 #endif
       
    72 
       
    73 #ifdef QMFUTIL_INTERNAL
       
    74 #define QMFUTIL_EXPORT QMF_DECL_EXPORT
       
    75 #else
       
    76 #define QMFUTIL_EXPORT QMF_DECL_IMPORT
       
    77 #endif
       
    78 
       
    79 #ifdef MESSAGESERVER_INTERNAL
       
    80 #define MESSAGESERVER_EXPORT QMF_DECL_EXPORT
       
    81 #else
       
    82 #define MESSAGESERVER_EXPORT QMF_DECL_IMPORT
       
    83 #endif
       
    84 
       
    85 #ifdef PLUGIN_INTERNAL
       
    86 #define PLUGIN_EXPORT QMF_DECL_EXPORT
       
    87 #elif defined(PLUGIN_STATIC_LINK)
       
    88 #define PLUGIN_EXPORT
       
    89 #else
       
    90 #define PLUGIN_EXPORT QMF_DECL_IMPORT
       
    91 #endif
       
    92 
       
    93 #endif