Easemob Windows SDK
emvoicemessagebody.h
1 /************************************************************
2  * * EaseMob CONFIDENTIAL
3  * __________________
4  * Copyright (C) 2015 EaseMob Technologies. All rights reserved.
5  *
6  * NOTICE: All information contained herein is, and remains
7  * the property of EaseMob Technologies.
8  * Dissemination of this information or reproduction of this material
9  * is strictly forbidden unless prior written permission is obtained
10  * from EaseMob Technologies.
11  */
12 //
13 // EMVoiceMessageBody.h
14 //
15 // Copyright (c) 2015 EaseMob Inc. All rights reserved.
16 //
17 
18 #ifndef __easemob__EMVoiceMessageBody__
19 #define __easemob__EMVoiceMessageBody__
20 
21 #include <string>
22 #include <vector>
23 #include "emfilemessagebody.h"
24 
25 namespace easemob {
26 
27 class EASEMOB_API EMVoiceMessageBody : public EMFileMessageBody
28 {
29 public:
37 
45  EMVoiceMessageBody(const std::string &localPath, int duration);
46 
53  virtual ~EMVoiceMessageBody();
54 
61  int duration() const;
62 
69  void setDuration(int);
70 
71 private:
78  void init();
79 
80 private:
82  EMVoiceMessageBody& operator=(const EMVoiceMessageBody&);
83 
84  int mDuration;
85 };
86 typedef std::shared_ptr<EMVoiceMessageBody> EMVoiceMessageBodyPtr;
87 }
88 
89 
90 #endif /* defined(__easemob__EMVoiceMessageBody__) */
Definition: emvoicemessagebody.h:27
Definition: emfilemessagebody.h:26
Definition: emattributevalue.h:28