libqutim  0.3.2.0
libqutim_global.h
Go to the documentation of this file.
00001 /****************************************************************************
00002 **
00003 ** qutIM - instant messenger
00004 **
00005 ** Copyright © 2011 Ruslan Nigmatullin <euroelessar@yandex.ru>
00006 **
00007 *****************************************************************************
00008 **
00009 ** $QUTIM_BEGIN_LICENSE$
00010 ** This program is free software: you can redistribute it and/or modify
00011 ** it under the terms of the GNU General Public License as published by
00012 ** the Free Software Foundation, either version 3 of the License, or
00013 ** (at your option) any later version.
00014 **
00015 ** This program is distributed in the hope that it will be useful,
00016 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00018 ** See the GNU General Public License for more details.
00019 **
00020 ** You should have received a copy of the GNU General Public License
00021 ** along with this program.  If not, see http://www.gnu.org/licenses/.
00022 ** $QUTIM_END_LICENSE$
00023 **
00024 ****************************************************************************/
00025 
00026 #ifndef LIBQUTIM_GLOBAL_H
00027 #define LIBQUTIM_GLOBAL_H
00028 
00029 #include <QtCore/qglobal.h>
00030 #include <QtCore/QObject>
00031 
00032 #if QT_VERSION < QT_VERSION_CHECK(4, 6, 0)
00033 # error Incompatible Qt library, need 4.6.0 at least
00034 #endif
00035 
00036 #ifdef QT_VISIBILITY_AVAILABLE
00037 # define LIBQUTIM_NO_EXPORT __attribute__ ((visibility("hidden")))
00038 #else
00039 # define LIBQUTIM_NO_EXPORT
00040 #endif
00041 
00042 #if defined(LIBQUTIM_LIBRARY)
00043 #  define LIBQUTIM_EXPORT Q_DECL_EXPORT
00044 #else
00045 #  define LIBQUTIM_EXPORT Q_DECL_IMPORT
00046 #endif
00047 
00048 #if defined(Q_OS_SYMBIAN) || defined(Q_WS_SIMULATOR) || defined(Q_WS_MAEMO_5)
00049 #   ifndef QUTIM_MOBILE_UI
00050 #       define QUTIM_MOBILE_UI
00051 #   endif
00052 #endif
00053 
00054 namespace qutim_sdk_0_3
00055 {
00056     LIBQUTIM_EXPORT void centerizeWidget(QWidget *widget); //move widget to center of current screen
00057 }
00058 
00059 #endif // LIBQUTIM_GLOBAL_H
00060