#ifndef __COMMENTVIEW_H__ #define __COMMENTVIEW_H__ #include #include class BlogSession; class Comment; class CommentView : public Wt::WTemplate { public: CommentView(BlogSession &session, long long parentId); CommentView(BlogSession& session, Wt::Dbo::ptr comment); protected: void edit(); void save(); void cancel(); void renderView(); bool isNew() const; void reply(); void rm(); private: BlogSession &session_; Wt::Dbo::ptr comment_; Wt::WTextArea *editArea_; }; #endif // __COMMENTVIEW_H__