Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

IrObexPushService Class Reference
[QtInfraredModule]

The IrObexPushService class runs an Infrared OBEX Object Push server and provides notifications of received requests and their status. More...

    #include <IrObexPushService>

Inherits FileTransferTask.

Public Functions

Signals

Additional Inherited Members


Detailed Description

The IrObexPushService class runs an Infrared OBEX Object Push server and provides notifications of received requests and their status.

A unique ID is generated for each received request and is used to provide request updates through the requestStarted(), requestProgress() and requestFinished() signals.

Note: This class is part of the Qt Extended server and cannot be used by other Qt Extended applications.


Member Function Documentation

IrObexPushService::IrObexPushService ( QObject * parent = 0 )

Creates a service with parent object parent.

void IrObexPushService::incomingTransferStarted ( int id, const QString & name, const QString & type, const QString & description )   [signal]

This signal is emitted when the service responds to an OBEX Put request. The id uniquely identifies the transfer, as provided by FileTransferTask::nextTransferId(). The name, type and description are set to the Name, Type and Description metadata values received in the request.

void IrObexPushService::outgoingTransferStarted ( int id, const QString & name, const QString & type, const QString & description )   [signal]

This signal is emitted when the service responds to an OBEX Get request. (The request will be for the owner's business card, as OBEX Push servers cannot respond to any other types of Get requests.) The id uniquely identifies the transfer, as provided by FileTransferTask::nextTransferId().

The name, type and description arguments are provided as a convenience for consistency with incomingTransferStarted(). name is set to an empty string, type is set to "text/x-vcard" and description is set to a user-friendly description of the business card request.

void IrObexPushService::transferFinished ( int id, bool error, bool aborted )   [signal]

This signal is emitted when the transfer identified by id is finished. error is true if the transfer failed, and aborted is true if the transfer was aborted by a call to abortRequest().

void IrObexPushService::transferProgress ( int id, qint64 done, qint64 total )   [signal]

This signal is emitted to indicate the progress of the transfer identified by id. done is the amount of data that has already been sent, and total is the total amount of data to be sent. If the total amount cannot be determined, total is set to 0.


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3