Home · All Classes · Grouped Classes · Annotated · Functions

ObexServiceManager Class Reference

The ObexServiceManager class is responsible for managing OBEX related services over Bluetooth and Infrared. More...

    #include <ObexServiceManager>

Inherits QObject.

Public Functions

Public Slots

Signals

Additional Inherited Members


Detailed Description

The ObexServiceManager class is responsible for managing OBEX related services over Bluetooth and Infrared.

ObexServiceManager provides and manages the Bluetooth OBEX Push service and the Infrared IrXfer server. It also provides a common infrastructure for these services, including user notification of files transferred and received.

This class is part of the Qtopia server and cannot be used by other Qtopia applications.


Member Function Documentation

ObexServiceManager::ObexServiceManager ( QObject * parent = 0 )

Constructs an ObexServiceManager. The parent argument contains the QObject parent.

ObexServiceManager::~ObexServiceManager ()

Destructor.

void ObexServiceManager::abortTransfer ( int id )   [slot]

Aborts the request identified by id if the request is currently in progress. Otherwise, this method does nothing.

void ObexServiceManager::completed ( int id, bool error )   [signal]

This signal is emitted to report the completion of an operation. The id parameter contains the unique id of the request completed. The error parameter is set to true if the operation finished due to an error, and false otherwise.

void ObexServiceManager::progress ( int id, qint64 bytes, qint64 total )   [signal]

This signal is emitted to report progress of an operation. The id parameter contains the unique id of the request. The bytes parameter contains the number of bytes sent. The total contains the total number of bytes. If the total is not known, it will be set to 0.

void ObexServiceManager::receiveInitiated ( int id, const QString & fileName, const QString & mimeType, const QString & description )   [signal]

This signal is sent whenever an object is being received. The id parameter contains a unique id of the request. The fileName parameter contains the fileName of the object being received. This file name will be in an incoming directory (the inbox.) The mimeType contains the MIME type of the object being received. The description contains the description of the object.

One can track the progress of the request by using the completed() and progress() signals.

See also completed() and progress().

void ObexServiceManager::sendInitiated ( int id, const QString & fileName, const QString & mimeType, const QString & description )   [signal]

This signal is emitted whenever an object is being sent by the local device. The id parameter contains a unique id of the request. The fileName parameter contains the file name of the object being send. The mimeType contains the MIME type of the object being received. The description is a user-friendly name for the file (for example, if the file has another name under Qtopia's content system).

One can track the progress of the request by using the completed() and progress() signals.

See also completed() and progress().


Copyright © 2008 Nokia Trademarks
Qtopia 4.3.3