23 #ifndef _TelepathyQt_file_transfer_channel_h_HEADER_GUARD_ 24 #define _TelepathyQt_file_transfer_channel_h_HEADER_GUARD_ 26 #ifndef IN_TP_QT_HEADER 27 #error IN_TP_QT_HEADER 30 #include <TelepathyQt/Channel> 43 static FileTransferChannelPtr create(
const ConnectionPtr &connection,
44 const QString &objectPath,
const QVariantMap &immutableProperties);
51 QString fileName()
const;
52 QString contentType()
const;
53 qulonglong size()
const;
57 QString contentHash()
const;
59 QString description()
const;
61 QDateTime lastModificationTime()
const;
63 qulonglong initialOffset()
const;
65 qulonglong transferredBytes()
const;
72 void initialOffsetDefined(qulonglong initialOffset);
73 void transferredBytesChanged(qulonglong count);
77 const QVariantMap &immutableProperties,
82 virtual void connectToHost();
83 bool isConnected()
const;
86 bool isFinished()
const;
87 virtual void setFinished();
90 TP_QT_NO_EXPORT
void gotProperties(QDBusPendingCallWatcher *watcher);
92 TP_QT_NO_EXPORT
void changeState();
93 TP_QT_NO_EXPORT
void onStateChanged(uint state, uint stateReason);
94 TP_QT_NO_EXPORT
void onInitialOffsetDefined(qulonglong initialOffset);
95 TP_QT_NO_EXPORT
void onTransferredBytesChanged(qulonglong count);
98 TP_QT_NO_EXPORT
void onUriDefined(
const QString &uri);
102 friend struct Private;
FileTransferStateChangeReason
Definition: build/TelepathyQt/_gen/constants.h:2630
FileTransferState
Definition: build/TelepathyQt/_gen/constants.h:2577
The Channel class represents a Telepathy channel.
Definition: channel.h:51
static const Feature FeatureCore
Definition: file-transfer-channel.h:41
The Feature class represents a feature that can be enabled on demand.
Definition: feature.h:41
The FileTransferChannel class represents a Telepathy channel of type FileTransfer.
Definition: file-transfer-channel.h:35
Definition: build/TelepathyQt/_gen/types.h:3146
Definition: abstract-adaptor.cpp:31
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
FileHashType
Definition: build/TelepathyQt/_gen/constants.h:2678