Easemob Windows SDK
Public Member Functions | List of all members
easemob::EMVoiceMessageBody Class Reference
Inheritance diagram for easemob::EMVoiceMessageBody:
Inheritance graph
Collaboration diagram for easemob::EMVoiceMessageBody:
Collaboration graph

Public Member Functions

 EMVoiceMessageBody ()
 Voice message body constructor. More...
 
 EMVoiceMessageBody (const std::string &localPath, int duration)
 Voice message body constructor. More...
 
virtual ~EMVoiceMessageBody ()
 Class destructor. More...
 
int duration () const
 Get voice playing duration. More...
 
void setDuration (int)
 Set voice playing duration. More...
 
- Public Member Functions inherited from easemob::EMFileMessageBody
 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...
 
- Public Member Functions inherited from easemob::EMMessageBody
 EMMessageBody (EMMessageBodyType=TEXT)
 Message body constructor. More...
 
virtual ~EMMessageBody ()
 Class destructor. More...
 
EMMessageBodyType type () const
 Get message body type. More...
 
- Public Member Functions inherited from easemob::EMBaseObject
template<typename T >
T * cast ()
 

Additional Inherited Members

- Public Types inherited from easemob::EMFileMessageBody
enum  EMDownloadStatus { DOWNLOADING, SUCCESSED, FAILED, PENDING }
 
- Public Types inherited from easemob::EMMessageBody
enum  EMMessageBodyType {
  TEXT, IMAGE, VIDEO, LOCATION,
  VOICE, FILE, COMMAND
}
 
- Protected Attributes inherited from easemob::EMMessageBody
EMMessageBodyPrivate * mBodyPrivate
 
EMMessageBodyType mType
 

Constructor & Destructor Documentation

§ EMVoiceMessageBody() [1/2]

easemob::EMVoiceMessageBody::EMVoiceMessageBody ( )

Voice message body constructor.

Parameters
NA
Returns
NA

§ EMVoiceMessageBody() [2/2]

easemob::EMVoiceMessageBody::EMVoiceMessageBody ( const std::string &  localPath,
int  duration 
)

Voice message body constructor.

Parameters
Voiceattachment local path.
Voiceplaying duration.
Returns
NA

§ ~EMVoiceMessageBody()

virtual easemob::EMVoiceMessageBody::~EMVoiceMessageBody ( )
virtual

Class destructor.

Parameters
NA
Returns
NA

Member Function Documentation

§ duration()

int easemob::EMVoiceMessageBody::duration ( ) const

Get voice playing duration.

Parameters
NA
Returns
The voice playing duration.

§ setDuration()

void easemob::EMVoiceMessageBody::setDuration ( int  )

Set voice playing duration.

Parameters
Thevoice playing duration.
Returns
NA

The documentation for this class was generated from the following file: