- Main Page
- Classes
- Files

- File List

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