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.
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 outgoing file transfer channel associated with the given objectPath on the same service as the given connection.
connection | Connection owning this channel, and specifying the service. | |
objectPath | Path to the object on the service. | |
immutableProperties | The immutable properties of the channel. | |
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 object path of this channel. | |
immutableProperties | The immutable properties of this channel. |
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 we know when to stop reading.
Only the primary handler of a file transfer channel may call this method.
This method requires FileTransferChannel::FeatureCore to be enabled.
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.1 |