54 qWarning(
"QDBusMarshaller: type '%s' produces invalid D-Bus signature '%s' "
55 "(Did you forget to call beginStructure() ?)",
56 QMetaType(
id).
name(), signature.isEmpty() ?
"<empty>" : signature.constData());
61 qWarning(
"QDBusMarshaller: type '%s' attempts to redefine basic D-Bus type '%s' (%s) "
62 "(Did you forget to call beginStructure() ?)",
75 if (!
d->marshaller()->ok)
78 if (
d->message &&
d->ref.loadRelaxed() != 1) {
80 dd->
message = q_dbus_message_copy(
d->message);
91 qFatal(
"QDBusArgument: write from a read-only object");
93 qWarning(
"QDBusArgument: write from a read-only object");
106 qFatal(
"QDBusArgument: read from a write-only object");
108 qWarning(
"QDBusArgument: read from a write-only object");
119 if (
d->ref.loadRelaxed() == 1)
123 dd->
message = q_dbus_message_ref(
d->message);
1112#ifndef QDBUS_NO_SPECIALTYPES
1120 if (
y != 0 &&
m != 0 &&
d != 0)
1142 a >>
h >>
m >>
s >> ms;
1158 a << -1 << -1 << -1 << -1;
1175 qWarning(
"Restoring zoned date-time without zone info");
1181 qWarning(
"Restoring date-time without its offset");
1194 qWarning() <<
"Serializing a date-time with unsupported time-spec" << dt.
timeSpec();
1240 a << double(
rect.x()) << double(
rect.y()) << double(
rect.width()) << double(
rect.height());
1279 a << double(
size.width()) << double(
size.height());
1288 a >> pt.
rx() >> pt.
ry();
1297 a << pt.
x() << pt.
y();
1318 a << double(pt.
x()) << double(pt.
y());
QDBusDemarshaller * demarshaller()
static bool checkReadAndDetach(QDBusArgumentPrivate *&d)
static QByteArray createSignature(int id)
enum QDBusArgumentPrivate::Direction direction
QDBusMarshaller * marshaller()
static bool checkRead(QDBusArgumentPrivate *d)
static bool checkWrite(QDBusArgumentPrivate *&d)
QDBusArgument()
Constructs an empty QDBusArgument argument.
void appendVariant(const QVariant &v)
QDBusArgument & operator=(QDBusArgument &&other) noexcept
QDBusArgument & operator<<(uchar arg)
Appends the primitive value arg of type {BYTE} to the D-Bus stream.
void beginMapEntry()
Opens a D-Bus map entry suitable for appending the key and value entries.
void endArray()
Closes a D-Bus array opened with beginArray().
void beginMap() const
Recurses into the D-Bus map to allow extraction of the map's elements.
QVariant asVariant() const
void endMapEntry()
Closes a D-Bus map entry opened with beginMapEntry().
~QDBusArgument()
Disposes of the resources associated with this QDBusArgument object.
void beginArray() const
Recurses into the D-Bus array to allow extraction of the array elements.
void beginStructure()
Opens a new D-Bus structure suitable for appending new arguments.
void endMap()
Closes a D-Bus map opened with beginMap().
const QDBusArgument & operator>>(uchar &arg) const
Extracts one D-Bus primitive argument of type {BYTE} from the D-Bus stream and puts it into arg.
bool atEnd() const
Returns true if there are no more elements to be extracted from this QDBusArgument.
QString currentSignature() const
void endStructure()
Closes a D-Bus structure opened with beginStructure().
ElementType currentType() const
QDBusDemarshaller * beginArray()
QDBusDemarshaller * endArray()
QDBusDemarshaller * endStructure()
QDBusDemarshaller * endMapEntry()
QDBusSignature toSignature()
QDBusUnixFileDescriptor toUnixFileDescriptor()
QDBusObjectPath toObjectPath()
QDBusDemarshaller * beginStructure()
QVariant toVariantInternal()
QDBusDemarshaller * beginMapEntry()
QString currentSignature()
QDBusDemarshaller * endMap()
QDBusDemarshaller * beginMap()
QStringList toStringList()
QDBusArgument::ElementType currentType()
QDBusMarshaller * endMapEntry()
QDBusMarshaller * endStructure()
QString currentSignature()
bool appendVariantInternal(const QVariant &arg)
QDBusMarshaller * beginMap(QMetaType kid, QMetaType vid)
QDBusMarshaller * endMap()
QDBusMarshaller * beginMapEntry()
QDBusMarshaller * beginStructure()
QDBusMarshaller * beginArray(QMetaType id)
QDBusMarshaller * endArray()
QVariant variant() const
Returns this D-Bus variant as a QVariant object.
\inmodule QtCore\reentrant
QDateTime toUTC() const
Returns a copy of this datetime converted to UTC.
QTime time() const
Returns the time part of the datetime.
QDateTime toLocalTime() const
Returns a copy of this datetime converted to local time.
Qt::TimeSpec timeSpec() const
Returns the time specification of the datetime.
QDate date() const
Returns the date part of the datetime.
\inmodule QtCore \reentrant
constexpr bool isValid() const
Returns true if this date is valid; otherwise returns false.
int month() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
int day() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
int year() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool setDate(int year, int month, int day)
\inmodule QtCore\reentrant
constexpr qreal x() const noexcept
Returns the x coordinate of this point.
constexpr qreal y() const noexcept
Returns the y coordinate of this point.
constexpr void setY(qreal y) noexcept
Sets the y coordinate of this point to the given finite y coordinate.
constexpr void setX(qreal x) noexcept
Sets the x coordinate of this point to the given finite x coordinate.
\inmodule QtCore\reentrant
constexpr int & ry() noexcept
Returns a reference to the y coordinate of this point.
constexpr int & rx() noexcept
Returns a reference to the x coordinate of this point.
constexpr int x() const noexcept
Returns the x coordinate of this point.
constexpr int y() const noexcept
Returns the y coordinate of this point.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
\inmodule QtCore \reentrant
int hour() const
Returns the hour part (0 to 23) of the time.
int minute() const
Returns the minute part (0 to 59) of the time.
bool isValid() const
Returns true if the time is valid; otherwise returns false.
int msec() const
Returns the millisecond part (0 to 999) of the time.
bool setHMS(int h, int m, int s, int ms=0)
Sets the time to hour h, minute m, seconds s and milliseconds ms.
int second() const
Returns the second part (0 to 59) of the time.
#define DBUS_MESSAGE_TYPE_METHOD_CALL
#define DBUS_STRUCT_BEGIN_CHAR
bool isValidSingleSignature(const QString &signature)
Returns true if signature is a valid D-Bus type signature for exactly one full type.
Combined button and popup list for selecting options.
QT_WARNING_POP void qAtomicAssign(T *&d, T *x)
This is a helper for the assignment operators of implicitly shared classes.
QT_END_NAMESPACE QT_BEGIN_NAMESPACE const QDBusArgument & operator>>(const QDBusArgument &a, QVariant &v)
QDBusArgument & operator<<(QDBusArgument &a, const QDate &date)
GLsizei const GLfloat * v
[13]
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLuint GLsizei const GLchar * message
GLfloat GLfloat GLfloat GLfloat h