The FileTransferChannelCreationProperties class represents the properties of a file transfer channel request. More...
#include <TelepathyQt4/FileTransferChannelCreationProperties>
List of all members.
Public Member Functions
Detailed Description
The FileTransferChannelCreationProperties class represents the properties of a file transfer channel request.
Constructor & Destructor Documentation
Tp::FileTransferChannelCreationProperties::FileTransferChannelCreationProperties |
( |
|
) |
|
Tp::FileTransferChannelCreationProperties::FileTransferChannelCreationProperties |
( |
const QString & |
suggestedFileName, |
|
|
const QString & |
contentType, |
|
|
qulonglong |
size |
|
|
) |
|
|
|
Create a FileTransferChannelCreationProperties.
If suggestedFileName or contentType are empty or if size is equal to zero, the channel request will fail. suggestedFileName will be cleaned of any path.
- Parameters:
-
|
suggestedFileName |
The name of the file on the sender's side. This is therefore given as a suggested filename for the receiver. |
|
contentType |
The content type (MIME) of the file. |
|
size |
The size of the content of the file. |
- See also:
- setUri()
Tp::FileTransferChannelCreationProperties::FileTransferChannelCreationProperties |
( |
const QString & |
path, |
|
|
const QString & |
contentType |
|
|
) |
|
|
|
Tp::FileTransferChannelCreationProperties::~FileTransferChannelCreationProperties |
( |
|
) |
|
Member Function Documentation
bool Tp::FileTransferChannelCreationProperties::isValid |
( |
|
) |
const [inline] |
QString Tp::FileTransferChannelCreationProperties::suggestedFileName |
( |
|
) |
const |
Return the suggested file name for the request. If the suggested file name is empty, the channel request will fail.
- Returns:
- The suggested file name for the request.
QString Tp::FileTransferChannelCreationProperties::contentType |
( |
|
) |
const |
Return the content type (MIME) of the file for the request. If the content type is empty, the channel request will fail.
- Returns:
- The content type of the file.
qulonglong Tp::FileTransferChannelCreationProperties::size |
( |
|
) |
const |
Return the size of the contents of the file for the request. If size is zero, the channel request will fail.
- Returns:
- The size of the contents of file.
bool Tp::FileTransferChannelCreationProperties::hasContentHash |
( |
|
) |
const |
FileHashType Tp::FileTransferChannelCreationProperties::contentHashType |
( |
|
) |
const |
QString Tp::FileTransferChannelCreationProperties::contentHash |
( |
|
) |
const |
bool Tp::FileTransferChannelCreationProperties::hasDescription |
( |
|
) |
const |
Return whether the request will have a descriprion.
- Returns:
true
whether it will have description, false
otherwise.
- See also:
- description(), setDescription()
QString Tp::FileTransferChannelCreationProperties::description |
( |
|
) |
const |
bool Tp::FileTransferChannelCreationProperties::hasLastModificationTime |
( |
|
) |
const |
QDateTime Tp::FileTransferChannelCreationProperties::lastModificationTime |
( |
|
) |
const |
bool Tp::FileTransferChannelCreationProperties::hasUri |
( |
|
) |
const |
Return whether the request will have an URI.
- Returns:
true
whether it will have URI, false
otherwise.
- See also:
- uri(), setUri()
QString Tp::FileTransferChannelCreationProperties::uri |
( |
|
) |
const |
Return the URI of the file for the request. If the URI property is empty and the file transfer is handled by an handler that is not this process, then it won't be able to initiate the file transfer.
- Returns:
- The URI of the file.
- See also:
- setUri()
Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation |
Telepathy-Qt4 0.6.5
|