• Main Page
  • Related Pages
  • Classes
  • Files
  • File List

libsignoncommon.h

00001 /*
00002  * This file is part of signon
00003  *
00004  * Copyright (C) 2009-2010 Nokia Corporation.
00005  *
00006  * Contact: Aurel Popirtac <ext-aurel.popirtac@nokia.com>
00007  * Contact: Alberto Mardegan <alberto.mardegan@nokia.com>
00008  *
00009  * This library is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU Lesser General Public License
00011  * version 2.1 as published by the Free Software Foundation.
00012  *
00013  * This library is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00021  * 02110-1301 USA
00022  */
00028 #ifndef LIBSIGNONCOMMON_H
00029 #define LIBSIGNONCOMMON_H
00030 
00031 #ifdef LIBSIGNON_TRACE
00032     #include <QDebug>
00033 
00034     #ifdef DEBUG_ENABLED
00035         #ifdef TRACE
00036             #undef TRACE
00037         #endif
00038 
00039         #ifdef BLAME
00040             #undef BLAME
00041         #endif
00042 
00043         #define TRACE() qDebug() << __FILE__ << __LINE__ << __func__
00044         #define BLAME() qCritical() << __FILE__ << __LINE__ << __func__
00045     #else
00046         #define TRACE() while (0) qDebug()
00047         #define BLAME() while (0) qCritical()
00048     #endif
00049 #endif
00050 
00051 #ifdef SIGNON_EXPORT
00052     #undef SIGNON_EXPORT
00053 #endif
00054 
00055 #if __GNUC__ >= 4
00056     #define SIGNON_EXPORT __attribute__ ((visibility("default")))
00057 #endif
00058 
00059 #ifndef SIGNON_EXPORT
00060     #define SIGNON_EXPORT
00061 #endif
00062 
00063 /*
00064    TODO - Add here a common data container for IdentityInfo,
00065           dbus register it and use it as qt dbus type
00066           for the signond <--> libsignon communication
00067 */
00068 
00069 #endif // LIBSIGNONCOMMON_H

Generated on Wed Jul 13 2011 22:08:28 by  doxygen 1.7.1