Easemob Windows SDK
emtextmessagebody.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 // EMTextMessageBody.h
14 //
15 // Copyright (c) 2015 EaseMob Inc. All rights reserved.
16 //
17 
18 #ifndef __easemob__EMTextMessageBody__
19 #define __easemob__EMTextMessageBody__
20 
21 #include <string>
22 #include "emmessagebody.h"
23 
24 namespace easemob {
25 
26 class EASEMOB_API EMTextMessageBody : public EMMessageBody
27 {
28 public:
35  EMTextMessageBody(const std::string& = "");
36 
43  virtual ~EMTextMessageBody();
44 
51  const std::string& text() const;
52 
53 private:
55  EMTextMessageBody& operator=(const EMTextMessageBody&);
56  virtual void dummy() const{}
57  std::string mText;
58  friend class EMTextMessageBodyPrivate;
59 };
60 
61 typedef std::shared_ptr<EMTextMessageBody> EMTextMessageBodyPtr;
62 
63 }
64 #endif /* defined(__easemob__EMTextMessageBody__) */
Definition: emtextmessagebody.h:26
Definition: emmessagebody.h:31
Definition: emattributevalue.h:28