diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-07-19 12:57:24 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-07-19 12:57:24 +0000 |
| commit | 12dae9a8f4bb86498b99500b36b9ef6eb605ce12 (patch) | |
| tree | 17250d6dcb54b574ad3df020702a6d42bb88a479 /example/example_3_transferHandling | |
| parent | 5f0463edc23df644c2f764d84b91b969ca3b02cf (diff) | |
| download | qxmpp-12dae9a8f4bb86498b99500b36b9ef6eb605ce12.tar.gz | |
document the fact you don't NEED to use IBB
Diffstat (limited to 'example/example_3_transferHandling')
| -rw-r--r-- | example/example_3_transferHandling/xmppClient.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/example/example_3_transferHandling/xmppClient.cpp b/example/example_3_transferHandling/xmppClient.cpp index 45566503..23eed959 100644 --- a/example/example_3_transferHandling/xmppClient.cpp +++ b/example/example_3_transferHandling/xmppClient.cpp @@ -33,6 +33,9 @@ xmppClient::xmppClient(QObject *parent) : QXmppClient(parent) { + // comment the following to use all available methods (highly recommended) + transferManager().setSupportedMethods(QXmppTransferJob::InBandMethod); + bool check = connect(this, SIGNAL(connected()), this, SLOT(slotConnected()) ); Q_ASSERT(check); @@ -61,7 +64,6 @@ void xmppClient::slotConnected() if (getConfiguration().jid() == recipient) return; - transferManager().setSupportedMethods(QXmppTransferJob::InBandMethod); QXmppTransferJob *job = transferManager().sendFile(recipient, "xmppClient.cpp"); bool check = connect( job, SIGNAL(error(QXmppTransferJob::Error)), |
