aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppTransferManager.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-03-06 14:06:29 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-03-06 14:06:29 +0000
commitac1831936f7858d7f2197ef11dff226ce08d5bb1 (patch)
tree685870e9df8fb9358635760019630c4998d0b8b9 /source/QXmppTransferManager.cpp
parent172d03f23cfb9e7b7d1c0d231f02903c289840aa (diff)
downloadqxmpp-ac1831936f7858d7f2197ef11dff226ce08d5bb1.tar.gz
improve code documentation
Diffstat (limited to 'source/QXmppTransferManager.cpp')
-rw-r--r--source/QXmppTransferManager.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/source/QXmppTransferManager.cpp b/source/QXmppTransferManager.cpp
index 93b3634e..8b32f732 100644
--- a/source/QXmppTransferManager.cpp
+++ b/source/QXmppTransferManager.cpp
@@ -95,7 +95,7 @@ void QXmppTransferJob::checkData()
/// Returns the job's data for a given role.
///
-/// You can associate arbitrary data with the role using setData.
+/// You can associate arbitrary data with the role using setData().
QVariant QXmppTransferJob::data(int role) const
{
@@ -112,11 +112,17 @@ void QXmppTransferJob::setData(int role, const QVariant &value)
m_data.insert(role, value);
}
+/// Returns the job's transfer direction.
+///
+
QXmppTransferJob::Direction QXmppTransferJob::direction() const
{
return m_direction;
}
+/// Returns the last error that was encoutered.
+///
+
QXmppTransferJob::Error QXmppTransferJob::error() const
{
return m_error;
@@ -702,6 +708,10 @@ void QXmppTransferManager::jobStateChanged(QXmppTransferJob::State state)
m_client->sendPacket(response);
}
+/// Send file to a remote party.
+///
+/// The remote party will be given the choice to accept or refuse the transfer.
+///
QXmppTransferJob *QXmppTransferManager::sendFile(const QString &jid, const QString &fileName)
{
QFileInfo info(fileName);
@@ -1130,6 +1140,8 @@ void QXmppTransferManager::setProxy(const QString &proxyJid)
/// Return the supported stream methods.
///
+/// The methods are a combination of zero or more QXmppTransferJob::Method.
+///
int QXmppTransferManager::supportedMethods() const
{