Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The ObexPushRequestSender class provides convenience methods for sending a variety of OBEX Push requests and also provides updates regarding the progress of each request. More...
#include <ObexPushRequestSender>
Inherits QObject.
The ObexPushRequestSender class provides convenience methods for sending a variety of OBEX Push requests and also provides updates regarding the progress of each request.
ObexPushRequestSender sends files that are commonly transferred using the OBEX Object Push Profile, including business cards (vCards), calendars and ordinary files.
A unique ID is generated for each request and is used to provide request updates through the requestStarted(), requestProgress() and requestFinished() signals. Requests can be canceled using abortRequest().
This class uses SessionedObexClient to send each OBEX request inside of a device session for a particular hardware device. This ensures the Qt Extended device manager will try to keep the device open while a request is in progress.
This class enables the BluetoothFileSendService and the IrFileSendService.
This class is part of the Qt Extended server and cannot be used by other Qt Extended applications.
Constructs a sender with parent object parent.
Aborts the request identified by id.
If the request is successfully aborted, requestFinished() is emitted with aborted set to true. Due to timing issues, it is possible that the request has already finished. In this case, the request is not aborted, and requestFinished() will be emitted as normal.
Returns true if id references a request that is in progress; that is, requestFinished() has not yet been emitted for the request. Otherwise, this method does nothing, and returns false.
Returns an opened QIODevice that can read from the contents of the resource identified by contentId. Returns 0 if there was an error.
The default implementation displays an error message if the resource is not accessible for reading.
This sender takes ownership of the returned device and deletes it when the request is finshed.
This is an overloaded member function, provided for convenience.
Returns an opened QIODevice that can read the raw vCard data for the business card specified by contact. Returns 0 if there was an error.
The default implementation displays an error message if the contact data cannot be processed.
This sender takes ownership of the returned device and deletes it when the request is finshed.
Returns an opened file that can read from the contents of the file at filePath. Returns 0 if there was an error.
The default implementation displays an error message if the file does not exist or cannot be opened.
This sender takes ownership of the returned file and deletes it when the request is finshed.
Returns a QContact object that contains the details of the owner's business card. hasBusinessCard is set to true if the owner's business card is available, otherwise it is set to false.
The default implementation returns the result of QContactModel::personalDetails(). The owner's business card is determined to be available if QContactModel::hasPersonalDetails() returns true.
Returns the QContent ID for the request identified by id if the request was started by a call to sendContent(). Otherwise, returns QContent::InvalidId.
This signal is emitted when the request identified by id is finished. error is true if the request has failed, and aborted is true if the request was aborted following a call to abortRequest().
This signal is emitted to indicate the progress of the request 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.
This signal is emitted when an OBEX request begins. The id uniquely identifies the request for this sender. The name, mimeType and description are respectively set to the Name, Type and Description metadata values that will be sent in the request.
Sends the business card represented by contact using client.
The specified id will be used to emit the requestStarted(), requestProgress() and requestFinished() signals for this request.
This sender takes ownership of client and deletes it when the request is finished.
See also sendPersonalBusinessCard().
This is an overloaded member function, provided for convenience.
Sends the business card represented by actionRequest using client. The request object should contain raw serialized QContact data.
The specified id will be used to emit the requestStarted(), requestProgress() and requestFinished() signals for this request.
This sender takes ownership of client and deletes it when the request is finished.
See also sendPersonalBusinessCard().
Sends the vCalendar object represented by actionRequest using client. The request object should contain raw serialized QTask or QAppointment data.
The specified id will be used to emit the requestStarted(), requestProgress() and requestFinished() signals for this request.
This sender takes ownership of client and deletes it when the request is finished.
Sends the document identified by contentId using client.
The specified id will be used to emit the requestStarted(), requestProgress() and requestFinished() signals for this request.
This sender takes ownership of client and deletes it when the request is finished.
See also createDevice().
Sends the file stored at filePath using client. The specified mimeType and description (both optional) will be sent in the request to provide additional metadata for the file. Set autoDeleteFile to true if the file stores at filePath should be deleted after it has been sent.
The specified id will be used to emit the requestStarted(), requestProgress() and requestFinished() signals for this request.
This sender takes ownership of client and deletes it when the request is finished.
See also createFile().
Sends the user's personal business card using client. If the user has not set a personal business card, the user will be notified appropriately.
The specified id will be used to emit the requestStarted(), requestProgress() and requestFinished() signals for this request.
This sender takes ownership of client and deletes it when the request is finished.
See also sendBusinessCard() and ownerBusinessCard().
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |