![]() |
Qt 6.x
The Qt SDK
|
\inheaderfile QtCore/private/qandroidextras_p.h \preliminary \inmodule QtCorePrivate More...
#include <qandroidextras_p.h>
Collaboration diagram for QAndroidParcel:Public Member Functions | |
| QAndroidParcel () | |
| Creates a new object. | |
| QAndroidParcel (const QJniObject &parcel) | |
| Wraps the parcel object. | |
| virtual | ~QAndroidParcel () |
| void | writeData (const QByteArray &data) const |
| Writes the provided data as a byte array. | |
| void | writeVariant (const QVariant &value) const |
| Writes the provided value. | |
| void | writeBinder (const QAndroidBinder &binder) const |
| Writes a binder object. | |
| void | writeFileDescriptor (int fd) const |
| Writes the provided fd. | |
| QByteArray | readData () const |
| Returns the data as a QByteArray. | |
| QVariant | readVariant () const |
| Returns the data as a QVariant. | |
| QAndroidBinder | readBinder () const |
| Returns the binder as a QAndroidBinder. | |
| int | readFileDescriptor () const |
| Returns the file descriptor. | |
| QJniObject | handle () const |
| The return value is useful to call other Java API which are not covered by this wrapper. | |
Friends | |
| class | QAndroidParcelPrivate |
| class | QAndroidBinder |
\inheaderfile QtCore/private/qandroidextras_p.h \preliminary \inmodule QtCorePrivate
Wraps the most important methods of Android Parcel class.
The QAndroidParcel is a convenience class that wraps the most important \l {https://developer.android.com/reference/android/os/Parcel.html}{Android Parcel} methods.
qtcoreprivate-usage
Definition at line 67 of file qandroidextras_p.h.
| QAndroidParcel::QAndroidParcel | ( | ) |
Creates a new object.
Definition at line 137 of file qandroidextras.cpp.
|
explicit |
Wraps the parcel object.
Definition at line 145 of file qandroidextras.cpp.
|
virtual |
Definition at line 151 of file qandroidextras.cpp.
| QJniObject QAndroidParcel::handle | ( | ) | const |
The return value is useful to call other Java API which are not covered by this wrapper.
Definition at line 230 of file qandroidextras.cpp.
| QAndroidBinder QAndroidParcel::readBinder | ( | ) | const |
Returns the binder as a QAndroidBinder.
Definition at line 214 of file qandroidextras.cpp.
References QAndroidParcelPrivate::readBinder().
Here is the call graph for this function:| QByteArray QAndroidParcel::readData | ( | ) | const |
Returns the data as a QByteArray.
Definition at line 195 of file qandroidextras.cpp.
References QAndroidParcelPrivate::readData().
Here is the call graph for this function:| int QAndroidParcel::readFileDescriptor | ( | ) | const |
Returns the file descriptor.
Definition at line 222 of file qandroidextras.cpp.
References QAndroidParcelPrivate::readFileDescriptor().
Here is the call graph for this function:| QVariant QAndroidParcel::readVariant | ( | ) | const |
Returns the data as a QVariant.
Definition at line 203 of file qandroidextras.cpp.
References QAndroidParcelPrivate::readData().
Here is the call graph for this function:| void QAndroidParcel::writeBinder | ( | const QAndroidBinder & | binder | ) | const |
Writes a binder object.
This is useful for a client to send to a server a binder which can be used by the server callback the client.
Definition at line 179 of file qandroidextras.cpp.
References QAndroidParcelPrivate::writeBinder().
Here is the call graph for this function:| void QAndroidParcel::writeData | ( | const QByteArray & | data | ) | const |
Writes the provided data as a byte array.
Definition at line 158 of file qandroidextras.cpp.
References QAndroidParcelPrivate::writeData().
Here is the call graph for this function:| void QAndroidParcel::writeFileDescriptor | ( | int | fd | ) | const |
Writes the provided fd.
Definition at line 187 of file qandroidextras.cpp.
References QAndroidParcelPrivate::writeFileDescriptor().
Here is the call graph for this function:Writes the provided value.
The value is converted into a QByteArray before is written.
Definition at line 167 of file qandroidextras.cpp.
References QAndroidParcelPrivate::writeData(), and QIODeviceBase::WriteOnly.
Here is the call graph for this function:
|
friend |
Definition at line 88 of file qandroidextras_p.h.
|
friend |
Definition at line 87 of file qandroidextras_p.h.