summaryrefslogtreecommitdiff
path: root/src/preview/Comment.h
blob: bf4b8d441f6a5b20cb4a38c41e15a308ce609a51 (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
29
30
31
32
33
34
/*
 * Comment.h
 *
 *  Created on: Feb 11, 2012
 *      Author: Simon
 */

#ifndef COMMENT_H_
#define COMMENT_H_

#include <string>

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


#endif /* COMMENT_H_ */