BluezQt 5.109.0
|
OBEX transfer. More...
#include <BluezQt/ObexTransfer>
Public Types | |
enum | Status { Queued , Active , Suspended , Complete , Error , Unknown } |
Status of transfer. More... | |
Properties | |
QString | fileName |
QString | name |
quint64 | size |
Status | status |
bool | suspendable |
quint64 | time |
quint64 | transferred |
QString | type |
Signals | |
void | fileNameChanged (const QString &fileName) |
Indicates that the name of transferred file have changed. | |
void | statusChanged (Status status) |
Indicates that the status of transfer have changed. | |
void | transferredChanged (quint64 transferred) |
Indicates that the number of transferred bytes have changed. | |
Public Member Functions | |
~ObexTransfer () override | |
Destroys an ObexTransfer object. | |
PendingCall * | cancel () |
Stops the current transfer. | |
QString | fileName () const |
Returns the full name of the transferred file. | |
bool | isSuspendable () const |
Returns whether the transfer is suspendable. | |
QString | name () const |
Returns the name of the transferred object. | |
QDBusObjectPath | objectPath () const |
D-Bus object path of the transfer. | |
PendingCall * | resume () |
Resumes the current transfer. | |
quint64 | size () const |
Returns the total size of the transferred object. | |
Status | status () const |
Returns the status of the transfer. | |
PendingCall * | suspend () |
Suspends the current transfer. | |
quint64 | time () const |
Returns the time of the transferred object. | |
ObexTransferPtr | toSharedPtr () const |
Returns a shared pointer from this. | |
quint64 | transferred () const |
Returns the number of bytes transferred. | |
QString | type () const |
Returns the type of the transferred object. | |
OBEX transfer.
This class represents transfer of one file.
Status of transfer.
|
override |
Destroys an ObexTransfer object.
PendingCall * BluezQt::ObexTransfer::cancel | ( | ) |
Stops the current transfer.
Possible errors: PendingCall::NotAuthorized, PendingCall::InProgress PendingCall::Failed
QString BluezQt::ObexTransfer::fileName | ( | ) | const |
Returns the full name of the transferred file.
|
signal |
Indicates that the name of transferred file have changed.
bool BluezQt::ObexTransfer::isSuspendable | ( | ) | const |
Returns whether the transfer is suspendable.
QString BluezQt::ObexTransfer::name | ( | ) | const |
Returns the name of the transferred object.
QDBusObjectPath BluezQt::ObexTransfer::objectPath | ( | ) | const |
D-Bus object path of the transfer.
PendingCall * BluezQt::ObexTransfer::resume | ( | ) |
Resumes the current transfer.
Possible errors: PendingCall::NotAuthorized, PendingCall::NotInProgress
quint64 BluezQt::ObexTransfer::size | ( | ) | const |
Returns the total size of the transferred object.
Status BluezQt::ObexTransfer::status | ( | ) | const |
Returns the status of the transfer.
|
signal |
Indicates that the status of transfer have changed.
PendingCall * BluezQt::ObexTransfer::suspend | ( | ) |
Suspends the current transfer.
Only suspendable transfers can be suspended.
Possible errors: PendingCall::NotAuthorized, PendingCall::NotInProgress
quint64 BluezQt::ObexTransfer::time | ( | ) | const |
Returns the time of the transferred object.
ObexTransferPtr BluezQt::ObexTransfer::toSharedPtr | ( | ) | const |
Returns a shared pointer from this.
quint64 BluezQt::ObexTransfer::transferred | ( | ) | const |
Returns the number of bytes transferred.
|
signal |
Indicates that the number of transferred bytes have changed.
QString BluezQt::ObexTransfer::type | ( | ) | const |
Returns the type of the transferred object.