signonplugincommon.h
00001 /*
00002  * This file is part of signon
00003  *
00004  * Copyright (C) 2009-2010 Nokia Corporation.
00005  * Copyright (C) 2012-2016 Canonical Ltd.
00006  *
00007  * Contact: Alberto Mardegan <alberto.mardegan@canonical.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 SIGNONPLUGIN_H
00029 #define SIGNONPLUGIN_H
00030 
00031 #include <QtCore/qobject.h>
00032 #include <QtCore/qpointer.h>
00033 #include <QtCore/qplugin.h>
00034 
00035 #include <QVariantMap>
00036 #include "SignOn/sessiondata.h"
00037 #include "SignOn/uisessiondata.h"
00038 
00039 #ifdef SIGNON_PLUGIN_TRACE
00040     #include <QDebug>
00041 
00042     #ifdef DEBUG_ENABLED
00043         #ifdef TRACE
00044             #undef TRACE
00045         #endif
00046 
00047         #ifdef BLAME
00048             #undef BLAME
00049         #endif
00050 
00051         #define TRACE() qDebug() << __FILE__ << __LINE__ << __func__
00052         #define BLAME() qCritical() << __FILE__ << __LINE__ << __func__
00053     #else
00054         #define TRACE() while (0) qDebug()
00055         #define BLAME() while (0) qCritical()
00056     #endif
00057 #endif
00058 
00059 #endif // SIGNONPLUGIN_H