Qt 4.8
qdeclarativeinfo.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the QtDeclarative module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia. For licensing terms and
14 ** conditions see http://qt.digia.com/licensing. For further information
15 ** use the contact form at http://qt.digia.com/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 **
25 ** In addition, as a special exception, Digia gives you certain additional
26 ** rights. These rights are described in the Digia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 **
29 ** GNU General Public License Usage
30 ** Alternatively, this file may be used under the terms of the GNU
31 ** General Public License version 3.0 as published by the Free Software
32 ** Foundation and appearing in the file LICENSE.GPL included in the
33 ** packaging of this file. Please review the following information to
34 ** ensure the GNU General Public License version 3.0 requirements will be
35 ** met: http://www.gnu.org/copyleft/gpl.html.
36 **
37 **
38 ** $QT_END_LICENSE$
39 **
40 ****************************************************************************/
41 
42 #ifndef QDECLARATIVEINFO_H
43 #define QDECLARATIVEINFO_H
44 
45 #include <QtCore/qdebug.h>
46 #include <QtCore/qurl.h>
47 #include <QtDeclarative/qdeclarativeerror.h>
48 
50 
52 
53 QT_MODULE(Declarative)
54 
57 {
58 public:
61 
62  inline QDeclarativeInfo &operator<<(QChar t) { QDebug::operator<<(t); return *this; }
63  inline QDeclarativeInfo &operator<<(QBool t) { QDebug::operator<<(t); return *this; }
64  inline QDeclarativeInfo &operator<<(bool t) { QDebug::operator<<(t); return *this; }
65  inline QDeclarativeInfo &operator<<(char t) { QDebug::operator<<(t); return *this; }
66  inline QDeclarativeInfo &operator<<(signed short t) { QDebug::operator<<(t); return *this; }
67  inline QDeclarativeInfo &operator<<(unsigned short t) { QDebug::operator<<(t); return *this; }
68  inline QDeclarativeInfo &operator<<(signed int t) { QDebug::operator<<(t); return *this; }
69  inline QDeclarativeInfo &operator<<(unsigned int t) { QDebug::operator<<(t); return *this; }
70  inline QDeclarativeInfo &operator<<(signed long t) { QDebug::operator<<(t); return *this; }
71  inline QDeclarativeInfo &operator<<(unsigned long t) { QDebug::operator<<(t); return *this; }
72  inline QDeclarativeInfo &operator<<(qint64 t) { QDebug::operator<<(t); return *this; }
73  inline QDeclarativeInfo &operator<<(quint64 t) { QDebug::operator<<(t); return *this; }
74  inline QDeclarativeInfo &operator<<(float t) { QDebug::operator<<(t); return *this; }
75  inline QDeclarativeInfo &operator<<(double t) { QDebug::operator<<(t); return *this; }
76  inline QDeclarativeInfo &operator<<(const char* t) { QDebug::operator<<(t); return *this; }
77  inline QDeclarativeInfo &operator<<(const QString & t) { QDebug::operator<<(t.toLocal8Bit().constData()); return *this; }
78  inline QDeclarativeInfo &operator<<(const QStringRef & t) { return operator<<(t.toString()); }
79  inline QDeclarativeInfo &operator<<(const QLatin1String &t) { QDebug::operator<<(t.latin1()); return *this; }
80  inline QDeclarativeInfo &operator<<(const QByteArray & t) { QDebug::operator<<(t); return *this; }
81  inline QDeclarativeInfo &operator<<(const void * t) { QDebug::operator<<(t); return *this; }
84 #ifndef QT_NO_DEBUG_STREAM
85  inline QDeclarativeInfo &operator<<(const QUrl &t) { static_cast<QDebug &>(*this) << t; return *this; }
86 #endif
87 
88 private:
92 
95 };
96 
100 
102 
104 
105 #endif // QDECLARATIVEINFO_H
The QDebug class provides an output stream for debugging information.
Definition: qdebug.h:62
QString toString() const
Returns a copy of the string reference as a QString object.
Definition: qstring.cpp:8653
QDeclarativeInfo & operator<<(unsigned int t)
#define QT_END_NAMESPACE
This macro expands to.
Definition: qglobal.h:90
QDeclarativeInfo & operator<<(unsigned short t)
#define QT_MODULE(x)
Definition: qglobal.h:2783
QDeclarativeInfo & operator<<(bool t)
#define QT_BEGIN_HEADER
Definition: qglobal.h:136
QDeclarativeInfo & operator<<(QTextStreamManipulator m)
QDeclarativeInfo & operator<<(const QLatin1String &t)
QDeclarativeInfo & operator<<(const char *t)
#define error(msg)
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
QDeclarativeInfo & operator<<(QBool t)
QDeclarativeInfo & operator<<(double t)
The QUrl class provides a convenient interface for working with URLs.
Definition: qurl.h:61
The QString class provides a Unicode character string.
Definition: qstring.h:83
QDebug & operator<<(QChar t)
Writes the character, t, to the stream and returns a reference to the stream.
Definition: qdebug.h:95
The QObject class is the base class of all Qt objects.
Definition: qobject.h:111
QDeclarativeInfo & operator<<(const QStringRef &t)
The QChar class provides a 16-bit Unicode character.
Definition: qchar.h:72
Q_DECLARATIVE_EXPORT QDeclarativeInfo qmlInfo(const QObject *me)
QDeclarativeInfo & operator<<(QChar t)
#define QT_BEGIN_NAMESPACE
This macro expands to.
Definition: qglobal.h:89
const char * latin1() const
Returns the Latin-1 string stored in this object.
Definition: qstring.h:661
QDeclarativeInfo & operator<<(const QByteArray &t)
unsigned __int64 quint64
Definition: qglobal.h:943
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
Definition: qstring.h:654
QDeclarativeInfo & operator<<(char t)
The QDeclarativeError class encapsulates a QML error.
QDeclarativeInfo & operator<<(quint64 t)
__int64 qint64
Definition: qglobal.h:942
QByteArray toLocal8Bit() const Q_REQUIRED_RESULT
Returns the local 8-bit representation of the string as a QByteArray.
Definition: qstring.cpp:4049
The QStringRef class provides a thin wrapper around QString substrings.
Definition: qstring.h:1099
QTextStream &(* QTextStreamFunction)(QTextStream &)
Definition: qtextstream.h:270
const char * constData() const
Returns a pointer to the data stored in the byte array.
Definition: qbytearray.h:433
#define Q_DECLARATIVE_EXPORT
Definition: qglobal.h:1454
QDeclarativeInfo & operator<<(const QUrl &t)
QDeclarativeInfo & operator<<(const void *t)
QDeclarativeInfo & operator<<(signed int t)
QDeclarativeInfo & operator<<(qint64 t)
QDeclarativeInfo & operator<<(signed short t)
QDeclarativeInfo & operator<<(float t)
QDeclarativeInfo & operator<<(unsigned long t)
QDeclarativeInfoPrivate * d
#define QT_END_HEADER
Definition: qglobal.h:137
QDeclarativeInfo & operator<<(signed long t)
QDeclarativeInfo & operator<<(const QString &t)
QDeclarativeInfo & operator<<(QTextStreamFunction f)