Easemob Windows SDK
|
Classes | |
struct | Size |
Public Member Functions | |
EMImageMessageBody () | |
Image message body constructor. More... | |
EMImageMessageBody (const std::string &localPath, const std::string &thumbnailLocalPath) | |
Image message body constructor. More... | |
virtual | ~EMImageMessageBody () |
Class destructor. More... | |
void | setThumbnailDisplayName (const std::string &) |
Set display name of the thumbnail. More... | |
const std::string & | thumbnailDisplayName () const |
Get display name of the thumbnail. More... | |
void | setThumbnailLocalPath (const std::string &) |
Set local path of the thumbnail. More... | |
const std::string & | thumbnailLocalPath () const |
Get local path of the thumbnail. More... | |
void | setThumbnailRemotePath (const std::string &) |
Set remote path of the thumbnail. More... | |
const std::string & | thumbnailRemotePath () const |
Get remote path of the thumbnail. More... | |
void | setThumbnailSecretKey (const std::string &) |
Set secret key of the thumbnail. More... | |
const std::string & | thumbnailSecretKey () const |
Get secret key of the thumbnail. More... | |
void | setThumbnailSize (const Size &) |
Set size of the thumbnail. More... | |
const Size & | thumbnailSize () const |
Get size of the thumbnail. More... | |
void | setThumbnailFileLength (int64_t) |
Set file length of the thumbnail. More... | |
int64_t | thumbnailFileLength () const |
Get file length of the thumbnail. More... | |
void | setThumbnailDownloadStatus (EMDownloadStatus) |
Set download status of the thumbnail. More... | |
EMDownloadStatus | thumbnailDownloadStatus () const |
Get download status of the thumbnail. More... | |
void | setSize (const Size &) |
Set size of the image. More... | |
const Size & | size () const |
Get size of the image. More... | |
![]() | |
EMFileMessageBody (EMMessageBodyType=FILE) | |
File message body constructor. More... | |
EMFileMessageBody (const std::string &localPath, EMMessageBodyType=FILE) | |
File message body constructor. More... | |
virtual | ~EMFileMessageBody () |
Class destructor. More... | |
std::string | displayName () const |
Get display name of the attachment. More... | |
void | setDisplayName (const std::string &) |
Set display name of the attachment. More... | |
const std::string & | localPath () const |
Get local path of the attachment. More... | |
void | setLocalPath (const std::string &) |
Set local path of the attachment. More... | |
const std::string & | remotePath () const |
Get remote path of the attachment. More... | |
void | setRemotePath (const std::string &) |
Set remote path of the attachment. More... | |
const std::string & | secretKey () const |
Get secret key of the attachment, it's used to download attachment from server. More... | |
void | setSecretKey (const std::string &) |
Set secret key of the attachment. More... | |
int64_t | fileLength () const |
Get file length of the attachment. More... | |
void | setFileLength (int64_t) |
Set file length of the attachment. More... | |
EMDownloadStatus | downloadStatus () const |
Get file download status of the attachment. More... | |
void | setDownloadStatus (EMDownloadStatus) |
Set download status of the attachment. More... | |
![]() | |
EMMessageBody (EMMessageBodyType=TEXT) | |
Message body constructor. More... | |
virtual | ~EMMessageBody () |
Class destructor. More... | |
EMMessageBodyType | type () const |
Get message body type. More... | |
![]() | |
template<typename T > | |
T * | cast () |
Additional Inherited Members | |
![]() | |
enum | EMDownloadStatus { DOWNLOADING, SUCCESSED, FAILED, PENDING } |
![]() | |
enum | EMMessageBodyType { TEXT, IMAGE, VIDEO, LOCATION, VOICE, FILE, COMMAND } |
![]() | |
EMMessageBodyPrivate * | mBodyPrivate |
EMMessageBodyType | mType |
easemob::EMImageMessageBody::EMImageMessageBody | ( | ) |
Image message body constructor.
NA |
easemob::EMImageMessageBody::EMImageMessageBody | ( | const std::string & | localPath, |
const std::string & | thumbnailLocalPath | ||
) |
Image message body constructor.
Image | attachment local path. |
Image | thumbnail local path. |
|
virtual |
Class destructor.
NA |
void easemob::EMImageMessageBody::setSize | ( | const Size & | ) |
Set size of the image.
The | image's size. |
void easemob::EMImageMessageBody::setThumbnailDisplayName | ( | const std::string & | ) |
Set display name of the thumbnail.
The | display name. |
void easemob::EMImageMessageBody::setThumbnailDownloadStatus | ( | EMDownloadStatus | ) |
Set download status of the thumbnail.
Note: Usually, user should NOT call this method directly.
The | download status. |
void easemob::EMImageMessageBody::setThumbnailFileLength | ( | int64_t | ) |
Set file length of the thumbnail.
Note: It's usually not necessary to call this method, will calculate file length automatically when setting local path.
The | file length. |
void easemob::EMImageMessageBody::setThumbnailLocalPath | ( | const std::string & | ) |
Set local path of the thumbnail.
The | local path. |
void easemob::EMImageMessageBody::setThumbnailRemotePath | ( | const std::string & | ) |
Set remote path of the thumbnail.
Note: It's internal used, user should never need to call this method.
The | remote path. |
void easemob::EMImageMessageBody::setThumbnailSecretKey | ( | const std::string & | ) |
Set secret key of the thumbnail.
Note: It's internal used, user should never need to call this method.
The | secret key. |
void easemob::EMImageMessageBody::setThumbnailSize | ( | const Size & | ) |
Set size of the thumbnail.
The | thumbnail size. |
const Size& easemob::EMImageMessageBody::size | ( | ) | const |
Get size of the image.
NA |
const std::string& easemob::EMImageMessageBody::thumbnailDisplayName | ( | ) | const |
Get display name of the thumbnail.
NA |
EMDownloadStatus easemob::EMImageMessageBody::thumbnailDownloadStatus | ( | ) | const |
Get download status of the thumbnail.
NA |
int64_t easemob::EMImageMessageBody::thumbnailFileLength | ( | ) | const |
Get file length of the thumbnail.
NA |
const std::string& easemob::EMImageMessageBody::thumbnailLocalPath | ( | ) | const |
Get local path of the thumbnail.
NA |
const std::string& easemob::EMImageMessageBody::thumbnailRemotePath | ( | ) | const |
Get remote path of the thumbnail.
NA |
const std::string& easemob::EMImageMessageBody::thumbnailSecretKey | ( | ) | const |
Get secret key of the thumbnail.
NA |
const Size& easemob::EMImageMessageBody::thumbnailSize | ( | ) | const |
Get size of the thumbnail.
NA |