Home · Modules · All Classes · All Namespaces |
The OutgoingFileTransferChannel class represents a Telepathy channel of type FileTransfer for outgoing file transfers. More...
#include <TelepathyQt/OutgoingFileTransferChannel>
Inherits Tp::FileTransferChannel.
Public Member Functions | |
virtual | ~OutgoingFileTransferChannel () |
PendingOperation * | provideFile (QIODevice *input) |
![]() | |
virtual | ~FileTransferChannel () |
FileTransferState | state () const |
FileTransferStateChangeReason | stateReason () const |
QString | fileName () const |
QString | contentType () const |
qulonglong | size () const |
QString | uri () const |
FileHashType | contentHashType () const |
QString | contentHash () const |
QString | description () const |
QDateTime | lastModificationTime () const |
qulonglong | initialOffset () const |
qulonglong | transferredBytes () const |
PendingOperation * | cancel () |
![]() | |
virtual | ~Channel () |
ConnectionPtr | connection () const |
QVariantMap | immutableProperties () const |
QString | channelType () const |
HandleType | targetHandleType () const |
uint | targetHandle () const |
QString | targetId () const |
ContactPtr | targetContact () const |
bool | isRequested () const |
ContactPtr | initiatorContact () const |
PendingOperation * | requestClose () |
PendingOperation * | requestLeave (const QString &message=QString(), ChannelGroupChangeReason reason=ChannelGroupChangeReasonNone) |
bool | isConference () const |
Contacts | conferenceInitialInviteeContacts () const |
QList< ChannelPtr > | conferenceChannels () const |
QList< ChannelPtr > | conferenceInitialChannels () const |
QHash< uint, ChannelPtr > | conferenceOriginalChannels () const |
bool | supportsConferenceMerging () const |
PendingOperation * | conferenceMergeChannel (const ChannelPtr &channel) |
bool | supportsConferenceSplitting () const |
PendingOperation * | conferenceSplitChannel () |
ChannelGroupFlags | groupFlags () const |
bool | groupCanAddContacts () const |
bool | groupCanAddContactsWithMessage () const |
bool | groupCanAcceptContactsWithMessage () const |
PendingOperation * | groupAddContacts (const QList< ContactPtr > &contacts, const QString &message=QString()) |
bool | groupCanRescindContacts () const |
bool | groupCanRescindContactsWithMessage () const |
bool | groupCanRemoveContacts () const |
bool | groupCanRemoveContactsWithMessage () const |
bool | groupCanRejectContactsWithMessage () const |
bool | groupCanDepartWithMessage () const |
PendingOperation * | groupRemoveContacts (const QList< ContactPtr > &contacts, const QString &message=QString(), ChannelGroupChangeReason reason=ChannelGroupChangeReasonNone) |
Contacts | groupContacts (bool includeSelfContact=true) const |
Contacts | groupLocalPendingContacts (bool includeSelfContact=true) const |
Contacts | groupRemotePendingContacts (bool includeSelfContact=true) const |
GroupMemberChangeDetails | groupLocalPendingContactChangeInfo (const ContactPtr &contact) const |
GroupMemberChangeDetails | groupSelfContactRemoveInfo () const |
bool | groupAreHandleOwnersAvailable () const |
HandleOwnerMap | groupHandleOwners () const |
bool | groupIsSelfContactTracked () const |
ContactPtr | groupSelfContact () const |
![]() | |
StatefulDBusProxy (const QDBusConnection &dbusConnection, const QString &busName, const QString &objectPath, const Feature &featureCore) | |
virtual | ~StatefulDBusProxy () |
![]() | |
DBusProxy (const QDBusConnection &dbusConnection, const QString &busName, const QString &objectPath, const Feature &featureCore) | |
virtual | ~DBusProxy () |
QDBusConnection | dbusConnection () const |
QString | busName () const |
QString | objectPath () const |
bool | isValid () const |
QString | invalidationReason () const |
QString | invalidationMessage () const |
![]() | |
virtual | ~Object () |
![]() | |
RefCounted () | |
virtual | ~RefCounted () |
![]() | |
ReadyObject (RefCounted *object, const Feature &featureCore) | |
ReadyObject (DBusProxy *proxy, const Feature &featureCore) | |
virtual | ~ReadyObject () |
virtual bool | isReady (const Features &features=Features()) const |
virtual PendingReady * | becomeReady (const Features &requestedFeatures=Features()) |
virtual Features | requestedFeatures () const |
virtual Features | actualFeatures () const |
virtual Features | missingFeatures () const |
![]() | |
OptionalInterfaceFactory (Channel *this_) | |
~OptionalInterfaceFactory () | |
QStringList | interfaces () const |
bool | hasInterface (const QString &name) const |
Interface * | optionalInterface (InterfaceSupportedChecking check=CheckInterfaceSupported) const |
Interface * | interface () const |
Static Public Member Functions | |
static OutgoingFileTransferChannelPtr | create (const ConnectionPtr &connection, const QString &objectPath, const QVariantMap &immutableProperties) |
![]() | |
static FileTransferChannelPtr | create (const ConnectionPtr &connection, const QString &objectPath, const QVariantMap &immutableProperties) |
![]() | |
static ChannelPtr | create (const ConnectionPtr &connection, const QString &objectPath, const QVariantMap &immutableProperties) |
![]() | |
static QString | uniqueNameFrom (const QDBusConnection &bus, const QString &wellKnownOrUnique) |
static QString | uniqueNameFrom (const QDBusConnection &bus, const QString &wellKnownOrUnique, QString &error, QString &message) |
Static Public Attributes | |
static const Feature | FeatureCore |
![]() | |
static const Feature | FeatureCore |
![]() | |
static const Feature | FeatureCore |
static const Feature | FeatureConferenceInitialInviteeContacts |
Protected Member Functions | |
OutgoingFileTransferChannel (const ConnectionPtr &connection, const QString &objectPath, const QVariantMap &immutableProperties, const Feature &coreFeature=OutgoingFileTransferChannel::FeatureCore) | |
![]() | |
FileTransferChannel (const ConnectionPtr &connection, const QString &objectPath, const QVariantMap &immutableProperties, const Feature &coreFeature=FileTransferChannel::FeatureCore) | |
SupportedSocketMap | availableSocketTypes () const |
bool | isConnected () const |
void | setConnected () |
bool | isFinished () const |
![]() | |
Channel (const ConnectionPtr &connection, const QString &objectPath, const QVariantMap &immutableProperties, const Feature &coreFeature) | |
Client::ChannelInterface * | baseInterface () const |
bool | groupSelfHandleIsLocalPending () const |
![]() | |
void | setBusName (const QString &busName) |
void | invalidate (const QString &reason, const QString &message) |
void | invalidate (const QDBusError &error) |
![]() | |
Object () | |
void | notify (const char *propertyName) |
![]() | |
ReadinessHelper * | readinessHelper () const |
![]() | |
void | setInterfaces (const QStringList &interfaces) |
Additional Inherited Members | |
![]() | |
enum | InterfaceSupportedChecking |
![]() | |
void | stateChanged (Tp::FileTransferState state, Tp::FileTransferStateChangeReason reason) |
void | initialOffsetDefined (qulonglong initialOffset) |
void | transferredBytesChanged (qulonglong count) |
![]() | |
void | groupFlagsChanged (Tp::ChannelGroupFlags flags, Tp::ChannelGroupFlags added, Tp::ChannelGroupFlags removed) |
void | groupCanAddContactsChanged (bool canAddContacts) |
void | groupCanRemoveContactsChanged (bool canRemoveContacts) |
void | groupCanRescindContactsChanged (bool canRescindContacts) |
void | groupMembersChanged (const Tp::Contacts &groupMembersAdded, const Tp::Contacts &groupLocalPendingMembersAdded, const Tp::Contacts &groupRemotePendingMembersAdded, const Tp::Contacts &groupMembersRemoved, const Tp::Channel::GroupMemberChangeDetails &details) |
void | groupHandleOwnersChanged (const Tp::HandleOwnerMap &owners, const Tp::UIntList &added, const Tp::UIntList &removed) |
void | groupSelfContactChanged () |
void | conferenceChannelMerged (const Tp::ChannelPtr &channel) |
void | conferenceChannelRemoved (const Tp::ChannelPtr &channel, const Tp::Channel::GroupMemberChangeDetails &details) |
![]() | |
void | invalidated (Tp::DBusProxy *proxy, const QString &errorName, const QString &errorMessage) |
![]() | |
void | propertyChanged (const QString &propertyName) |
![]() | |
void | onUriDefined (const QString &uri) |
![]() | |
PendingOperation * | groupAddSelfHandle () |
The OutgoingFileTransferChannel class represents a Telepathy channel of type FileTransfer for outgoing file transfers.
For more details, please refer to Telepathy specification.
|
virtual |
Class destructor.
|
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. |
|
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. |
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. |
|
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.
TelepathyQt 0.9.8 |
Generated by
![]() |