Home · All Classes · All Namespaces · Modules · Functions · Files
outgoing-file-transfer-channel.h
1 
23 #ifndef _TelepathyQt_outgoing_file_transfer_channel_h_HEADER_GUARD_
24 #define _TelepathyQt_outgoing_file_transfer_channel_h_HEADER_GUARD_
25 
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29 
30 #include <TelepathyQt/FileTransferChannel>
31 
32 #include <QAbstractSocket>
33 
34 namespace Tp
35 {
36 
38 {
39  Q_OBJECT
40  Q_DISABLE_COPY(OutgoingFileTransferChannel)
41 
42 public:
43  static const Feature FeatureCore;
44 
45  static OutgoingFileTransferChannelPtr create(const ConnectionPtr &connection,
46  const QString &objectPath, const QVariantMap &immutableProperties);
47 
48  virtual ~OutgoingFileTransferChannel();
49 
50  PendingOperation *provideFile(QIODevice *input);
51 
52 protected:
53  OutgoingFileTransferChannel(const ConnectionPtr &connection,
54  const QString &objectPath,
55  const QVariantMap &immutableProperties,
57 
58 private Q_SLOTS:
59  TP_QT_NO_EXPORT void onProvideFileFinished(Tp::PendingOperation *op);
60 
61  TP_QT_NO_EXPORT void onSocketConnected();
62  TP_QT_NO_EXPORT void onSocketDisconnected();
63  TP_QT_NO_EXPORT void onSocketError(QAbstractSocket::SocketError error);
64  TP_QT_NO_EXPORT void onInputAboutToClose();
65  TP_QT_NO_EXPORT void doTransfer();
66 
67 private:
68  TP_QT_NO_EXPORT void connectToHost();
69  TP_QT_NO_EXPORT void setFinished();
70 
71  struct Private;
72  friend struct Private;
73  Private *mPriv;
74 };
75 
76 } // Tp
77 
78 #endif
static const Feature FeatureCore
Definition: outgoing-file-transfer-channel.h:43
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
The OutgoingFileTransferChannel class represents a Telepathy channel of type FileTransfer for outgoin...
Definition: outgoing-file-transfer-channel.h:37
Definition: abstract-adaptor.cpp:31
The FileTransferChannel class represents a Telepathy channel of type FileTransfer.
Definition: file-transfer-channel.h:35
The Feature class represents a feature that can be enabled on demand.
Definition: feature.h:41


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt 0.9.7