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

BluetoothFileSendService Class Reference
[QtBluetoothModule]

The BluetoothFileSendService class runs a BluetoothPush service and provides updates regarding the progress of each file transfer request that is sent through the service. More...

    #include <BluetoothFileSendService>

Inherits FileTransferTask.

Public Functions

Signals

Additional Inherited Members


Detailed Description

The BluetoothFileSendService class runs a BluetoothPush service and provides updates regarding the progress of each file transfer request that is sent through the service.

A unique ID is generated for each request that is sent through the BluetoothPush service. This ID is used to provide transfer updates through the outgoingTransferStarted(), transferProgress() and transferFinished() signals. The ID can also be used to cancel transfers using abortTransfer().

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


Member Function Documentation

BluetoothFileSendService::BluetoothFileSendService ( QObject * parent = 0 )

Creates a service with parent object parent.

BluetoothFileSendService::~BluetoothFileSendService ()

Destroys the service.

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

This signal is emitted when a transfer request begins. The id uniquely identifies the transfer, as provided by FileTransferTask::BluetoothFileSendService::nextTransferId(). The name, mimeType and description are respectively set to the Name, Type and Description metadata values that will be sent in the request.

void BluetoothFileSendService::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 following a call to abortRequest().

void BluetoothFileSendService::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 Trolltech Trademarks
Qt Extended 4.4.3