Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QAndroidParcel Class Reference

\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
 

Detailed Description

\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

Since
6.2

Definition at line 67 of file qandroidextras_p.h.

Constructor & Destructor Documentation

◆ QAndroidParcel() [1/2]

QAndroidParcel::QAndroidParcel ( )

Creates a new object.

Definition at line 137 of file qandroidextras.cpp.

◆ QAndroidParcel() [2/2]

QAndroidParcel::QAndroidParcel ( const QJniObject & parcel)
explicit

Wraps the parcel object.

Definition at line 145 of file qandroidextras.cpp.

◆ ~QAndroidParcel()

QAndroidParcel::~QAndroidParcel ( )
virtual

Definition at line 151 of file qandroidextras.cpp.

Member Function Documentation

◆ handle()

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.

◆ readBinder()

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:

◆ readData()

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:

◆ readFileDescriptor()

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:

◆ readVariant()

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:

◆ writeBinder()

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:

◆ writeData()

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:

◆ writeFileDescriptor()

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:

◆ writeVariant()

void QAndroidParcel::writeVariant ( const QVariant & value) const

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:

Friends And Related Symbol Documentation

◆ QAndroidBinder

friend class QAndroidBinder
friend

Definition at line 88 of file qandroidextras_p.h.

◆ QAndroidParcelPrivate

friend class QAndroidParcelPrivate
friend

Definition at line 87 of file qandroidextras_p.h.


The documentation for this class was generated from the following files: