Home · All Classes · All Namespaces · Modules · Functions · Files |
The OutgoingFileTransferChannel class represents a Telepathy channel of type FileTransfer for outgoing file transfers. More...
#include <TelepathyQt4/OutgoingFileTransferChannel>
Inherits Tp::FileTransferChannel.
The OutgoingFileTransferChannel class represents a Telepathy channel of type FileTransfer for outgoing file transfers.
For more details, please refer to Telepathy specification.
See Asynchronous Object Model, Shared Pointer Usage
Tp::OutgoingFileTransferChannel::~OutgoingFileTransferChannel | ( | ) | [virtual] |
Class destructor.
Tp::OutgoingFileTransferChannel::OutgoingFileTransferChannel | ( | const ConnectionPtr & | connection, | |
const QString & | objectPath, | |||
const QVariantMap & | immutableProperties, | |||
const Feature & | coreFeature = OutgoingFileTransferChannel::FeatureCore |
|||
) | [protected] |
Construct a new OutgoingFileTransferChannel object.
connection | Connection owning this channel, and specifying the service. | |
objectPath | The channel object path. | |
immutableProperties | The channel immutable properties. | |
coreFeature | The core feature of the channel type, if any. The corresponding introspectable should depend on OutgoingFileTransferChannel::FeatureCore. |
OutgoingFileTransferChannelPtr Tp::OutgoingFileTransferChannel::create | ( | const ConnectionPtr & | connection, | |
const QString & | objectPath, | |||
const QVariantMap & | immutableProperties | |||
) | [static] |
Create a new OutgoingFileTransferChannel object.
connection | Connection owning this channel, and specifying the service. | |
objectPath | The channel object path. | |
immutableProperties | The channel immutable properties. |
Reimplemented from Tp::FileTransferChannel.
PendingOperation * Tp::OutgoingFileTransferChannel::provideFile | ( | QIODevice * | input | ) |
Provide the file for an outgoing file transfer which has been offered.
The state will change to FileTransferStateOpen as soon as the transfer starts. The given input device should not be destroyed until the state() changes to FileTransferStateCompleted or FileTransferStateCancelled. If input is a sequential device QIODevice::isSequential(), it should be closed when no more data is available, so that it's known when to stop reading.
Only the primary handler of a file transfer channel may call this method.
This method requires FileTransferChannel::FeatureCore to be ready.
input | A QIODevice object where the data will be read from. |
const Feature Tp::OutgoingFileTransferChannel::FeatureCore [static] |
Feature representing the core that needs to become ready to make the OutgoingFileTransferChannel object usable.
This is currently the same as FileTransferChannel::FeatureCore, but may change to include more.
When calling isReady(), becomeReady(), this feature is implicitly added to the requested features.
Reimplemented from Tp::FileTransferChannel.
Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation |
Telepathy-Qt4 0.6.5
|