summaryrefslogtreecommitdiff
path: root/src/preview/Comment.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/preview/Comment.h')
-rw-r--r--src/preview/Comment.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/preview/Comment.h b/src/preview/Comment.h
new file mode 100644
index 0000000..bf4b8d4
--- /dev/null
+++ b/src/preview/Comment.h
@@ -0,0 +1,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_ */