QXmppTransferFileInfo Class
The QXmppTransferFileInfo class holds metadata about a file being transferred. More...
| Header: | #include <QXmppTransferManager.h> |
Public Functions
| QXmppTransferFileInfo(const QXmppTransferFileInfo &other) | |
| QDateTime | date() const |
| QString | description() const |
| QByteArray | hash() const |
| bool | isNull() const |
| QString | name() const |
| void | setDate(const QDateTime &date) |
| void | setDescription(const QString &description) |
| void | setHash(const QByteArray &hash) |
| void | setName(const QString &name) |
| void | setSize(qint64 size) |
| qint64 | size() const |
| QXmppTransferFileInfo & | operator=(const QXmppTransferFileInfo &other) |
| bool | operator==(const QXmppTransferFileInfo &other) const |
Detailed Description
Contains information about a file that is transferred using QXmppTransferJob.
Member Function Documentation
QXmppTransferFileInfo::QXmppTransferFileInfo(const QXmppTransferFileInfo &other)
Default copy-constructor
QDateTime QXmppTransferFileInfo::date() const
Returns the last modification timestamp of the file.
See also setDate().
QString QXmppTransferFileInfo::description() const
Returns a description of the file.
See also setDescription().
QByteArray QXmppTransferFileInfo::hash() const
Returns the checksum of the file.
See also setHash().
bool QXmppTransferFileInfo::isNull() const
Returns true if the file info has no valid data set.
QString QXmppTransferFileInfo::name() const
Returns the name of the file.
See also setName().
void QXmppTransferFileInfo::setDate(const QDateTime &date)
Sets the last modification timestamp of the file.
date.
See also date().
void QXmppTransferFileInfo::setDescription(const QString &description)
Sets a description of the file.
See also description().
void QXmppTransferFileInfo::setHash(const QByteArray &hash)
Sets the checksum of the file.
hash.
See also hash().
void QXmppTransferFileInfo::setName(const QString &name)
Sets the name of the file.
See also name().
void QXmppTransferFileInfo::setSize(qint64 size)
Sets the size of the file in bytes.
See also size().
qint64 QXmppTransferFileInfo::size() const
Returns the size of the file in bytes.
See also setSize().
QXmppTransferFileInfo &QXmppTransferFileInfo::operator=(const QXmppTransferFileInfo &other)
Default assignment operator, copying other.
bool QXmppTransferFileInfo::operator==(const QXmppTransferFileInfo &other) const
Returns true if the content (size, hash and name) of this file info object and other are equal.