My Project
signonplugincommon.h
1/*
2 * This file is part of signon
3 *
4 * Copyright (C) 2009-2010 Nokia Corporation.
5 * Copyright (C) 2012-2016 Canonical Ltd.
6 *
7 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public License
11 * version 2.1 as published by the Free Software Foundation.
12 *
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21 * 02110-1301 USA
22 */
28#ifndef SIGNONPLUGIN_H
29#define SIGNONPLUGIN_H
30
31#include <QtCore/qobject.h>
32#include <QtCore/qpointer.h>
33#include <QtCore/qplugin.h>
34
35#include <QVariantMap>
36#include "SignOn/sessiondata.h"
37#include "SignOn/uisessiondata.h"
38
39#ifdef SIGNON_PLUGIN_TRACE
40 #include <QDebug>
41
42 #ifdef DEBUG_ENABLED
43 #ifdef TRACE
44 #undef TRACE
45 #endif
46
47 #ifdef BLAME
48 #undef BLAME
49 #endif
50
51 #define TRACE() qDebug() << __FILE__ << __LINE__ << __func__
52 #define BLAME() qCritical() << __FILE__ << __LINE__ << __func__
53 #else
54 #define TRACE() while (0) qDebug()
55 #define BLAME() while (0) qCritical()
56 #endif
57#endif
58
59#endif // SIGNONPLUGIN_H