summaryrefslogtreecommitdiff
path: root/src/gui/preview/Comment.h
blob: 1d84042d0eba038f6e24bcb98e863eb63c3d4aa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef COMMENT_H_
#define COMMENT_H_

#include <string>

class SaveComment
{
public:
	int authorID;
	std::string authorName;
	std::string authorNameFormatted;
	std::string comment;
	SaveComment(int userID, std::string username, std::string usernameFormatted, std::string commentText):
			authorID(userID), authorName(username), authorNameFormatted(usernameFormatted), comment(commentText)
	{
	}
	SaveComment(const SaveComment & comment):
			authorID(comment.authorID), authorName(comment.authorName), authorNameFormatted(comment.authorNameFormatted), comment(comment.comment)
	{
	}
	SaveComment(const SaveComment * comment):
			authorID(comment->authorID), authorName(comment->authorName), authorNameFormatted(comment->authorNameFormatted), comment(comment->comment)
	{
	}
};


#endif /* COMMENT_H_ */